Skip to content
Snippets Groups Projects
Commit 03a07882 authored by Julian Oes's avatar Julian Oes
Browse files

fw_pos_control_l1: fix for vehicle status refactor

parent f21f8222
No related branches found
No related tags found
No related merge requests found
......@@ -1832,7 +1832,7 @@ FixedwingPositionControl::control_position(const math::Vector<2> &current_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> &current_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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment