diff options
author | philipoe <philipp.oettershagen@mavt.ethz.ch> | 2014-11-20 17:25:30 +0100 |
---|---|---|
committer | philipoe <philipp.oettershagen@mavt.ethz.ch> | 2014-11-20 17:25:30 +0100 |
commit | 5c34f03c4ef1d0b928c8ad32f8038bb15dba7c11 (patch) | |
tree | 450c45e7f1cb123a2ed244a935ef982d852f7a67 /src/modules | |
parent | 4afa8645832c71ea1c35dc73d9424df80fac531a (diff) | |
download | px4-firmware-5c34f03c4ef1d0b928c8ad32f8038bb15dba7c11.tar.gz px4-firmware-5c34f03c4ef1d0b928c8ad32f8038bb15dba7c11.tar.bz2 px4-firmware-5c34f03c4ef1d0b928c8ad32f8038bb15dba7c11.zip |
commander: Change printing in RC-loss message to integers
Diffstat (limited to 'src/modules')
-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 d8ebee4b6..1f13aaec4 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 after %.3fs (at t=%.3fs)",(double)(hrt_absolute_time()-status.rc_signal_lost_timestamp)/1.0e6,(double)(hrt_absolute_time())/1.0e6); + mavlink_log_critical(mavlink_fd, "RC SIGNAL REGAINED after %llums (at t=%llums)",(hrt_absolute_time()-status.rc_signal_lost_timestamp)/1000,hrt_absolute_time()/1000); 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 (at t=%.3fs)",(double)(hrt_absolute_time())/1.0e6); + mavlink_log_critical(mavlink_fd, "RC SIGNAL LOST (at t=%llums)",hrt_absolute_time()/1000); status.rc_signal_lost = true; status.rc_signal_lost_timestamp=sp_man.timestamp; status_changed = true; |