diff options
author | philipoe <philipp.oettershagen@mavt.ethz.ch> | 2014-10-20 15:55:45 +0200 |
---|---|---|
committer | philipoe <philipp.oettershagen@mavt.ethz.ch> | 2014-10-20 16:42:53 +0200 |
commit | 5c77fc0012eaaad5b92e1b31cedf8bf5b035b988 (patch) | |
tree | 101c7e163733a36217e718ead162f9eea7c21b30 | |
parent | 74b401c8283a16393bbfd96361496f191f2075c0 (diff) | |
download | px4-firmware-5c77fc0012eaaad5b92e1b31cedf8bf5b035b988.tar.gz px4-firmware-5c77fc0012eaaad5b92e1b31cedf8bf5b035b988.tar.bz2 px4-firmware-5c77fc0012eaaad5b92e1b31cedf8bf5b035b988.zip |
commander: Added time of RC-loss/gain to the mavlink_log_critical message to better inform the user
-rw-r--r-- | src/modules/commander/commander.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/commander/commander.cpp b/src/modules/commander/commander.cpp index 616b855df..23fdcb414 100644 --- a/src/modules/commander/commander.cpp +++ b/src/modules/commander/commander.cpp @@ -1499,7 +1499,7 @@ int commander_thread_main(int argc, char *argv[]) } else { if (status.rc_signal_lost) { - mavlink_log_critical(mavlink_fd, "RC signal regained"); + mavlink_log_critical(mavlink_fd, "RC SIGNAL REGAINED (at t=%.3fs)",(double)(hrt_absolute_time())/1.0e6); status_changed = true; } } @@ -1592,7 +1592,7 @@ int commander_thread_main(int argc, char *argv[]) } else { if (!status.rc_signal_lost) { - mavlink_log_critical(mavlink_fd, "RC SIGNAL LOST"); + mavlink_log_critical(mavlink_fd, "RC SIGNAL LOST (at t=%.3fs)",(double)(hrt_absolute_time())/1.0e6); status.rc_signal_lost = true; status_changed = true; } |