MAVLink params: Eventually time out to make QGC happy, but let the user know that the boot failed.

This commit is contained in:
Lorenz Meier
2015-08-06 00:13:09 +02:00
parent 9918ff9bd4
commit e2c657ede0
@@ -215,6 +215,10 @@ MavlinkParametersManager::send(const hrt_abstime t)
if ((p == PARAM_INVALID) || (_send_all_index >= (int) param_count())) {
_send_all_index = -1;
}
} else if (_send_all_index == 0 && hrt_absolute_time() > 20 * 1000 * 1000) {
/* the boot did not seem to ever complete, warn user and set boot complete */
_mavlink->send_statustext_critical("WARNING: SYSTEM BOOT INCOMPLETE. CHECK CONFIG.");
_mavlink->set_boot_complete();
}
}