NAV - Reset altitude and position setpoint when ALTHOLD/POSHOLD is activated before arming
The throttle management is a bit strange when
- taking off with GPS-HOLD + ALT-HOLD mode enabled. Full throttle is needed for a while and the machine goes up very slowly. With the time, the throttle management improve and the altitude hold is around 50% of the stick. A video is available on https://www.youtube.com/watch?v=Ucc2pPwoOeA
- When in flight switching to GPS-HOLD + ALT-HOLD ; the machine drops and if enabled to low, basically you finish on the ground. here below is the graph showing the logs

It seems that with set nav_use_midrc_for_althold = ON it's better but I need more testing.
I'm pretty new to INAV and I'm running the original gains. My feeling is that the integral term fro the gain for alt-hold takes too much time to stabilize.
Yes, taking off in altitude hold mode needs improving.
Try upping your vel I and let us know of your findings. Thanks!
Prior the test, I did change to 0.015 the Vel I gain following advise from Konstantin Sharlaimov . The take off is better and the drone "JUMP" to 50 cm eight quickly and then slowly goes up. after around 20 seconds the throttle management become normal. The other thing, I noticed is that at arming, the motors spin quickly for a short period. that's probably the differential gain which is taking effect.
I have to say that I do not know how the code is made for the differential and integral term computation but I suspect that the integral term is fill in with 0 up to the arming and for the differential n-1 signal also. If I'm right, filling in with throttle min value prior arming and throttle value prior inflight switch should decrease the take off issue and the inflight ALT-HOLD swith ON drop
@Mathotg Is this issue still present in latest "master"?
@Konstantin,
I did not dare to download the master so far. I was not sure that it could be downloaded any time without having the risk of having an imcomplete package. So I'm flying the stable version with the modification for the PID gains that I did incoporate following the github issue.
Was there any change in the master concerning the arming and throttle management? I yes I will download and compile for the SP3racing and test this weekend or next week depending on the wheather.
Let me know and I will do it
regards
Mathot Gilles (Alias EQ45 on Rcgroups)
2016-03-18 1:42 GMT+01:00 Konstantin Sharlaimov [email protected]:
@Mathotg https://github.com/Mathotg Is this issue still present in latest "master"?
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/iNavFlight/inav/issues/87#issuecomment-198146211
Just came to me that this is still an issue - if you switch althold before arming, altitude setpoint does not reset and with baro drift the error grows - this in turn leads to jumps at arming.
Stay tuned for a fix.
Thanks for the info
Is the work around to arm and then switch to alt hold before take off?
Mathot Gilles
2016-03-18 13:02 GMT+01:00 Konstantin Sharlaimov [email protected]:
Just came to me that this is still an issue - if you switch althold before arming, altitude setpoint does not reset and with baro drift the error grows - this in turn leads to jumps at arming.
Stay tuned for a fix.
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/iNavFlight/inav/issues/87#issuecomment-198324778
Yes, exactly. Please check it if you have the time.
Hello Konstantin,
The work around does not seems to work... Here his what I tested:
- connect the battery and wait for satellites
- arm the motor but no take off
- switch to pos+alt mode : there the motor spin dangerously for a few seconds. The quad is nearly taking off himself
- full throttle to take off
Hope this helps
Regards
Gilles Le 18 mars 2016 13:14, "Konstantin Sharlaimov" [email protected] a écrit :
Yes, exactly. Please check it if you have the time.
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/iNavFlight/inav/issues/87#issuecomment-198326806