diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-22 09:27:03 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-22 09:27:03 +0200 |
commit | 5e584c2942a3087b5250003d05917db8769f7789 (patch) | |
tree | 7ab0cc0715db1b82c09c9108329774101a2f5488 /src | |
parent | b3e74175bc0c21161de445a61b9f00e2b0d23920 (diff) | |
download | px4-firmware-5e584c2942a3087b5250003d05917db8769f7789.tar.gz px4-firmware-5e584c2942a3087b5250003d05917db8769f7789.tar.bz2 px4-firmware-5e584c2942a3087b5250003d05917db8769f7789.zip |
commander: Better low battery failure feedback
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/commander/commander.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp index 948543714..e0634bb34 100644 --- a/src/modules/commander/commander.cpp +++ b/src/modules/commander/commander.cpp @@ -1602,7 +1602,11 @@ int commander_thread_main(int argc, char *argv[]) if (arming_ret == TRANSITION_CHANGED) { arming_state_changed = true; + mavlink_and_console_log_critical(mavlink_fd, "LOW BATTERY, LOCKING ARMING DOWN"); } + + } else { + mavlink_and_console_log_emergency(mavlink_fd, "CRITICAL BATTERY, LAND IMMEDIATELY"); } status_changed = true; |