aboutsummaryrefslogtreecommitdiff
path: root/src/modules/fw_pos_control_l1
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-02-19 22:55:40 +0100
committerThomas Gubler <thomasgubler@gmail.com>2014-02-19 22:55:40 +0100
commit9830f668c548ed63131722cdbba4753e1c06f647 (patch)
treed55bf24c5317668fe63bd0ce0cadf6de59813678 /src/modules/fw_pos_control_l1
parentb7488da441cf945ec1e5f0a1a4c4b6295707a8b0 (diff)
downloadpx4-firmware-9830f668c548ed63131722cdbba4753e1c06f647.tar.gz
px4-firmware-9830f668c548ed63131722cdbba4753e1c06f647.tar.bz2
px4-firmware-9830f668c548ed63131722cdbba4753e1c06f647.zip
fw autoland: fix warning
Diffstat (limited to 'src/modules/fw_pos_control_l1')
-rw-r--r--src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp b/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp
index e1869328a..b0d2bcbc6 100644
--- a/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp
+++ b/src/modules/fw_pos_control_l1/fw_pos_control_l1_main.cpp
@@ -912,7 +912,7 @@ FixedwingPositionControl::control_position(const math::Vector<2> &current_positi
float flare_curve_alt = landingslope.getFlareCurveAltitudeSave(wp_distance, bearing_lastwp_currwp, bearing_airplane_currwp, _pos_sp_triplet.current.alt);
/* avoid climbout */
- if (flare_curve_alt_last < flare_curve_alt && land_noreturn_vertical || land_stayonground)
+ if ((flare_curve_alt_last < flare_curve_alt && land_noreturn_vertical) || land_stayonground)
{
flare_curve_alt = pos_sp_triplet.current.alt;
land_stayonground = true;