mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 09:27:34 +08:00
fw_pos_control_l1: fix for vehicle status refactor
This commit is contained in:
@@ -1832,7 +1832,7 @@ FixedwingPositionControl::control_position(const math::Vector<2> ¤t_positi
|
||||
/* throttle limiting */
|
||||
throttle_max = _parameters.throttle_max;
|
||||
|
||||
if (_vehicle_status.condition_landed && (fabsf(_manual.z) < THROTTLE_THRESH)) {
|
||||
if (_vehicle_land_detected.landed && (fabsf(_manual.z) < THROTTLE_THRESH)) {
|
||||
throttle_max = 0.0f;
|
||||
}
|
||||
|
||||
@@ -1947,7 +1947,7 @@ FixedwingPositionControl::control_position(const math::Vector<2> ¤t_positi
|
||||
/* throttle limiting */
|
||||
throttle_max = _parameters.throttle_max;
|
||||
|
||||
if (_vehicle_status.condition_landed && (fabsf(_manual.z) < THROTTLE_THRESH)) {
|
||||
if (_vehicle_land_detected.landed && (fabsf(_manual.z) < THROTTLE_THRESH)) {
|
||||
throttle_max = 0.0f;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user