fw_pos_control_l1: fix for vehicle status refactor

This commit is contained in:
Julian Oes
2016-03-03 14:22:07 +01:00
parent f21f82223c
commit 03a0788207
@@ -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;
}