TradHeli - small change to make throttle_cruise in terms of radio input instead of servo output

This commit is contained in:
unknown 2011-11-06 17:40:17 +08:00
parent c76e1097e3
commit b30387bc5b

View File

@ -527,11 +527,7 @@ init_throttle_cruise()
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
g.throttle_cruise.set_and_save(g.rc_3.control_in);
#endif
g.throttle_cruise.set_and_save(g.rc_3.control_in);
}
}