From be26988b935334ec679a3e7c5bd65bfcc4a1622b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 4 Jun 2016 19:20:45 +1000 Subject: [PATCH] AP_Tuning: don't warn of controller errors when disarmed --- libraries/AP_Tuning/AP_Tuning.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Tuning/AP_Tuning.cpp b/libraries/AP_Tuning/AP_Tuning.cpp index c269962c37..1ff6b2755d 100644 --- a/libraries/AP_Tuning/AP_Tuning.cpp +++ b/libraries/AP_Tuning/AP_Tuning.cpp @@ -331,7 +331,7 @@ void AP_Tuning::check_controller_error(void) float err = controller_error(current_parm); if (err > error_threshold) { uint32_t now = AP_HAL::millis(); - if (now - last_controller_error_ms > 2000) { + if (now - last_controller_error_ms > 2000 && hal.util->get_soft_armed()) { AP_Notify::events.tune_error = 1; GCS_MAVLINK::send_statustext_all(MAV_SEVERITY_INFO, "Tuning: error %.2f", (double)err); last_controller_error_ms = now;