Browse Source

AP_Vehicle: add instructions for config_error loop

zr-v5.1
Mark Whitehorn 4 years ago committed by Peter Barker
parent
commit
5f8b4968ec
  1. 4
      libraries/AP_Vehicle/AP_Vehicle.cpp

4
libraries/AP_Vehicle/AP_Vehicle.cpp

@ -206,8 +206,12 @@ void AP_Vehicle::scheduler_delay_callback()
} }
if (tnow - last_5s > 5000) { if (tnow - last_5s > 5000) {
last_5s = tnow; last_5s = tnow;
if (AP_BoardConfig::in_config_error()) {
gcs().send_text(MAV_SEVERITY_CRITICAL, "Config Error: fix problem then reboot");
} else {
gcs().send_text(MAV_SEVERITY_INFO, "Initialising ArduPilot"); gcs().send_text(MAV_SEVERITY_INFO, "Initialising ArduPilot");
} }
}
logger.EnableWrites(true); logger.EnableWrites(true);
} }

Loading…
Cancel
Save