Copter: Drift uses throttle_zero flag

This commit is contained in:
Randy Mackay 2015-01-05 17:58:58 +09:00
parent 02d0b05926
commit 74ac79ba10

View File

@ -47,7 +47,7 @@ static void drift_run()
int16_t pilot_throttle_scaled;
// if not armed or landed and throttle at zero, set throttle to zero and exit immediately
if(!motors.armed() || (ap.land_complete && g.rc_3.control_in <= 0)) {
if(!motors.armed() || (ap.land_complete && ap.throttle_zero)) {
attitude_control.relax_bf_rate_controller();
attitude_control.set_yaw_target_to_current_heading();
attitude_control.set_throttle_out(0, false);