From d2b7749af3755481f9dbe242823846269098354d Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 13 Oct 2016 21:40:13 +1100 Subject: [PATCH] Copter: AP_Stats flighttime --- ArduCopter/land_detector.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduCopter/land_detector.cpp b/ArduCopter/land_detector.cpp index 3c347ea19a..7c116b31ef 100644 --- a/ArduCopter/land_detector.cpp +++ b/ArduCopter/land_detector.cpp @@ -104,6 +104,8 @@ void Copter::set_land_complete(bool b) } ap.land_complete = b; + g2.stats.set_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);