mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 07:33:35 +08:00
commander: enhance the failsafe verbose output
This commit is contained in:
@@ -1851,7 +1851,11 @@ int commander_thread_main(int argc, char *argv[])
|
|||||||
|
|
||||||
if (status.failsafe != failsafe_old) {
|
if (status.failsafe != failsafe_old) {
|
||||||
status_changed = true;
|
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;
|
failsafe_old = status.failsafe;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user