mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 16:48:29 -04:00
Copter: Drift uses throttle_zero flag
This commit is contained in:
parent
02d0b05926
commit
74ac79ba10
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user