resetting alt hold I

This commit is contained in:
Jason Short 2011-11-01 09:27:49 -07:00
parent 09fa260883
commit 65acc1ae5b

View File

@ -512,6 +512,7 @@ init_throttle_cruise()
// are we moving from manual throttle to auto_throttle?
if((old_control_mode <= STABILIZE) && (g.rc_3.control_in > MINIMUM_THROTTLE)){
g.pi_throttle.reset_I();
g.pi_alt_hold.reset_I();
#if FRAME_CONFIG == HELI_FRAME
g.throttle_cruise.set_and_save(heli_get_scaled_throttle(g.rc_3.control_in));
#else