Welcome to Multi-Rotor UK. Please login or sign up.

Friday,April 26, 2024, 14:56:02

Login with username, password and session length

Shoutbox

Gaza07:
23 Apr 2024 08:09:45
The Domain expires for the forum in 60 days, I'm not going to renew it this time unless I see any activity  :beer2:
Gaza07:
20 Apr 2024 18:02:50
Is there anyone who would like to see this forum stay open ? :shrug:
hoverfly:
17 Apr 2024 17:15:13
 :rolleyes:
Bad Raven:
26 Mar 2024 08:41:05
 :(
Andy7:
25 Mar 2024 14:49:21
An excess of work and rain.  :thumbdown:
Bad Raven:
23 Mar 2024 18:12:38
Almost a personal Blog, it would seem. LOTS of members, but NO posts.  :-/   :shrug:
Gaza07:
06 Mar 2024 16:59:49
Anyone still here  :shrug:
ched:
24 Dec 2023 11:48:48
Hope you all have a Great Christmas and a happy New Year.
Bad Raven:
20 Dec 2023 06:17:47
 ~~   :beer2: 
Gaza07:
19 Dec 2023 22:20:27
Merry Christmas All  :beer2:
Members
  • Total Members: 8,195
  • Latest: lokloks
Stats
  • Total Posts: 201,427
  • Total Topics: 20,261
  • Online today: 24
  • Online ever: 530
  • (Tuesday,June 26, 2012, 08:34:46 )
Users Online
Users: 0
Guests: 23
Total: 23

Theme Changer





3d - Printworx

Tuning Altitude hold in Multiwii

Started by teslahed, Tuesday,November 12, 2013, 10:52:50

Previous topic - Next topic

teslahed

The Barometer sensor is used to detect the altitude of your multirotor aircraft and is used for altitude hold mode. As the barometer sensor is not very precise and is quite noisy, detection of small up and down movements is impossible.

So small up and down movements are detected by the accelerometer Z axis. Combination of these two sensors gives good altitude hold.
PID settings for ALT works like this:

P - Is how much the multirotor should rely on the barometer sensor. The higher the value is the stronger the multirotor relys on the Barometer reading.
I - Is used to compensate for drift caused by battery voltage drop during the flight. The higher the value is more the multirotor will react to voltage drops ( or other varying factors over time).
D - Is how strong the multirotor should react to data from the accelerometer Z axis. It is used to react to small up and down movements that the barometer cannot accurately sense. The higher the value is the stronger the multirotor will react to small altitude changes.

Tuning:

We need to start from settings the Accelerometer.

1. So set the P and I to 0

2. Start to play with D value only. To high D may cause yoyo effect (up and down oscillations). With to low D copter will be not able to react strong/fast enough to hold altitude. Your goal here is to set D to the value when copter don';t oscillate up and down and also holds altitude quite well for a not very long period of time. Copter will not hold altitude perfectly at this point during long periods. It will slowly drift up or down, but altitude should be quite stable in short periods.

3. Start to increase P to the point where copter holds altitude over long time period. If the value is to small the copter will drift slowly up and down. If the value is to high yoyo effect may appear. Goal here is to set it to the point where copter holds altitude for quite some time. Copter will still go slowly down due to battery voltage drop over time.

4. "I" is used to compensate the voltage drop. So start to increase the "I" value slowly until you get a perfect position hold during a very long time.
Now your altitude hold should be good enough.
One circlip short of a quadcopter.
 1 lobe short of an antenna.

teslahed

One circlip short of a quadcopter.
 1 lobe short of an antenna.

shazzy

Hi teslahed.  Was wondering if you have any input to my problem.

My quad is tuned in well in Angle and Horizon mode but in Alt Hold my pitch and roll is incredibly sloppy in reacting to stick inputs. What parameter do I need to change so that the pid values pitch and roll in  angle and Horizon mode are used in Alt Hold?

Thanks

Sent from my GT-I9300 using Tapatalk

Frames: Daya 550, TBS Discovery & BAH Nemesis 250 Mini H Quad
FC: Naze 32 Acro. Pixhawk
Motors: Emax 600Kv, Sunnysky 980Kv, Sunnysky 2206 2300Kv
FrSky Taranis with TBS Crossfire Modules
Dominator FPV Goggles FG58U VRx, TS5823 VTx, TS5800 VTx

handsomejackuk

interesting reading... want to comment so i can remember this post

Commando

#4
Hey, thanks for the useful post and well explained
I try to set my ALT today and the settings are on limits!!!!! All settings.
It hovers much better but never had yoyo effect (as I thing yoyo effects is like occilations right? 60cm up down)
The set did indoors.
Does weight matters? or should set outside. ?
I have very havy quad!
Cheers   :wack0

quads500

My quad hold altitude is quite well (when hover). But is it normal to loose altitude when doing pitch and roll. (It gains height after stablind the quad)
S500 quad frame, Rctimer Crius AIOP 2.0, Rctimer 2212,  30A, 9443 prop.