AP_Tuning: don't warn of controller errors when disarmed

This commit is contained in:
Andrew Tridgell 2016-06-04 19:20:45 +10:00
parent 8d3a58f0a2
commit be26988b93
1 changed files with 1 additions and 1 deletions

View File

@ -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;