Commander: Improved preflight check routines. Running checks on all connected sensors. Re-run checks once GCS is connected.

This commit is contained in:
Lorenz Meier
2015-04-19 13:57:07 +02:00
parent 5c44146c1b
commit 7dbb6c4fa8
4 changed files with 284 additions and 206 deletions
+2 -1
View File
@@ -1302,7 +1302,8 @@ int commander_thread_main(int argc, char *argv[])
telemetry.heartbeat_time > 0 &&
hrt_elapsed_time(&telemetry.heartbeat_time) < datalink_loss_timeout * 1e6) {
(void)rc_calibration_check(mavlink_fd);
/* provide RC and sensor status feedback to the user */
(void)Commander::preflightCheck(mavlink_fd, true, true, true, true, true);
}
telemetry_last_heartbeat[i] = telemetry.heartbeat_time;