mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 06:00:34 +08:00
reset hover thrust value in controllers when disarmed
During landing, hover thrust value can be very incorrect so it should be reset before taking off
This commit is contained in:
committed by
Mathieu Bresciani
parent
ba1b7f3a07
commit
ba66f8a1e2
@@ -394,6 +394,8 @@ void MulticopterPositionControl::Run()
|
||||
// make sure takeoff ramp is not amended by acceleration feed-forward
|
||||
if (!flying) {
|
||||
_setpoint.acceleration[2] = NAN;
|
||||
// hover_thrust maybe reset on takeoff
|
||||
_control.setHoverThrust(_param_mpc_thr_hover.get());
|
||||
}
|
||||
|
||||
const bool not_taken_off = (_takeoff.getTakeoffState() < TakeoffState::rampup);
|
||||
|
||||
Reference in New Issue
Block a user