pusher_assist: turn off pusher completely if not used

This commit is contained in:
Balduin 2026-02-18 13:42:19 +01:00
parent 189bdf05f7
commit 6032cf16ca

View File

@ -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;
}