commander: enhance the failsafe verbose output

This commit is contained in:
Julian Oes 2014-11-10 21:38:46 +10:00
parent d253c8ba7d
commit f7db91ac32
1 changed files with 5 additions and 1 deletions

View File

@ -1851,7 +1851,11 @@ int commander_thread_main(int argc, char *argv[])
if (status.failsafe != failsafe_old) {
status_changed = true;
mavlink_log_info(mavlink_fd, "[cmd] failsafe state: %i", status.failsafe);
if (status.failsafe) {
mavlink_log_info(mavlink_fd, "[cmd] failsafe on");
} else {
mavlink_log_info(mavlink_fd, "[cmd] failsafe off");
}
failsafe_old = status.failsafe;
}