mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-05 05:00:34 +08:00
position control: fix failsafe thrust
invert direction to point upwards and increase to 70% of throttle range between min and hover
This commit is contained in:
committed by
Lorenz Meier
parent
7cc85885a4
commit
9362f844f4
@@ -206,8 +206,8 @@ void PositionControl::_interfaceMapping()
|
||||
// point the thrust upwards
|
||||
_thr_sp(0) = _thr_sp(1) = 0.0f;
|
||||
// throttle down such that vehicle goes down with
|
||||
// 30% of throttle range between min and hover
|
||||
_thr_sp(2) = MPC_THR_MIN.get() + (MPC_THR_HOVER.get() - MPC_THR_MIN.get()) * 0.3f;
|
||||
// 70% of throttle range between min and hover
|
||||
_thr_sp(2) = -(MPC_THR_MIN.get() + (MPC_THR_HOVER.get() - MPC_THR_MIN.get()) * 0.7f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user