mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 22:53:34 +08:00
FW ALTCTL/POSCTL remove 0 throttle threshold when not landed
This commit is contained in:
committed by
Lorenz Meier
parent
9ab0674107
commit
0cbb2c7f23
@@ -1804,7 +1804,7 @@ FixedwingPositionControl::control_position(const math::Vector<2> ¤t_positi
|
||||
/* throttle limiting */
|
||||
throttle_max = _parameters.throttle_max;
|
||||
|
||||
if (fabsf(_manual.z) < THROTTLE_THRESH) {
|
||||
if (_vehicle_status.condition_landed && (fabsf(_manual.z) < THROTTLE_THRESH)) {
|
||||
throttle_max = 0.0f;
|
||||
}
|
||||
|
||||
@@ -1919,7 +1919,7 @@ FixedwingPositionControl::control_position(const math::Vector<2> ¤t_positi
|
||||
/* throttle limiting */
|
||||
throttle_max = _parameters.throttle_max;
|
||||
|
||||
if (fabsf(_manual.z) < THROTTLE_THRESH) {
|
||||
if (_vehicle_status.condition_landed && (fabsf(_manual.z) < THROTTLE_THRESH)) {
|
||||
throttle_max = 0.0f;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user