From c926d7d41ffc0712fec56b199f51d838a5aeeb27 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 8 Jul 2016 18:38:43 +1000 Subject: [PATCH] Plane: fixed typo in quadplane landing detector thanks to Paul for spotting this! --- ArduPlane/quadplane.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduPlane/quadplane.cpp b/ArduPlane/quadplane.cpp index 8b3432c0e6..b0262e8e19 100644 --- a/ArduPlane/quadplane.cpp +++ b/ArduPlane/quadplane.cpp @@ -1615,7 +1615,7 @@ void QuadPlane::check_land_complete(void) // we only consider the vehicle landed when the motors have been // at minimum for 5s and the vertical position estimate has not // changed by more than 20cm for 4s - if (fabsf(height - landing_detect.vpos_start_m > 0.2)) { + if (fabsf(height - landing_detect.vpos_start_m) > 0.2) { // height has changed, call off landing detection landing_detect.land_start_ms = 0; return;