diff --git a/ArduCopter/land_detector.cpp b/ArduCopter/land_detector.cpp index b1e3694d5c..04820cac89 100644 --- a/ArduCopter/land_detector.cpp +++ b/ArduCopter/land_detector.cpp @@ -106,6 +106,9 @@ void Copter::set_land_complete(bool b) g2.stats.set_flying(!b); + // tell AHRS flying state + ahrs.set_likely_flying(!b); + // trigger disarm-on-land if configured bool disarm_on_land_configured = (g.throttle_behavior & THR_BEHAVE_DISARM_ON_LAND_DETECT) != 0; bool mode_disarms_on_land = mode_allows_arming(control_mode,false) && !mode_has_manual_throttle(control_mode);