mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 15:53:34 +08:00
pusher_assist: turn off pusher completely if not used
This commit is contained in:
@@ -533,6 +533,12 @@ float VtolType::pusher_assist()
|
|||||||
q_sp.copyTo(_v_att_sp->q_d);
|
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;
|
return forward_thrust;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user