mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
pusher_assist: turn off pusher completely if not used
This commit is contained in:
parent
189bdf05f7
commit
6032cf16ca
@ -533,6 +533,12 @@ float VtolType::pusher_assist()
|
||||
q_sp.copyTo(_v_att_sp->q_d);
|
||||
}
|
||||
|
||||
// Stop motor by sending NAN (see VehicleThrustSetpoint.msg) if setpoint
|
||||
// below 2%. This value was determined empirically (RC stick inaccuracy)
|
||||
if (forward_thrust < 0.02f) {
|
||||
forward_thrust = NAN;
|
||||
}
|
||||
|
||||
return forward_thrust;
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user