diff options
author | Mark Whitehorn <kd0aij@gmail.com> | 2015-03-17 15:19:45 -0600 |
---|---|---|
committer | Mark Whitehorn <kd0aij@gmail.com> | 2015-03-17 16:35:51 -0600 |
commit | 1cc8b6eefc3fa3526b017aad9d9c37a25e69165a (patch) | |
tree | 437eec6458c2703699e6a6703351edd52f0e7495 /src/modules/sdlog2/sdlog2.c | |
parent | 0cecb45d4e9d7b4a35e20d731d43239fc1942a76 (diff) | |
download | px4-firmware-1cc8b6eefc3fa3526b017aad9d9c37a25e69165a.tar.gz px4-firmware-1cc8b6eefc3fa3526b017aad9d9c37a25e69165a.tar.bz2 px4-firmware-1cc8b6eefc3fa3526b017aad9d9c37a25e69165a.zip |
add cpu load to STAT log message
Diffstat (limited to 'src/modules/sdlog2/sdlog2.c')
-rw-r--r-- | src/modules/sdlog2/sdlog2.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/modules/sdlog2/sdlog2.c b/src/modules/sdlog2/sdlog2.c index 7017a65ad..04bf71c17 100644 --- a/src/modules/sdlog2/sdlog2.c +++ b/src/modules/sdlog2/sdlog2.c @@ -1216,12 +1216,13 @@ int sdlog2_thread_main(int argc, char *argv[]) /* --- VEHICLE STATUS --- */ if (status_updated) { log_msg.msg_type = LOG_STAT_MSG; - log_msg.body.log_STAT.main_state = (uint8_t) buf_status.main_state; - log_msg.body.log_STAT.arming_state = (uint8_t) buf_status.arming_state; - log_msg.body.log_STAT.failsafe_state = (uint8_t) buf_status.failsafe; + log_msg.body.log_STAT.main_state = buf_status.main_state; + log_msg.body.log_STAT.arming_state = buf_status.arming_state; + log_msg.body.log_STAT.failsafe = (uint8_t) buf_status.failsafe; log_msg.body.log_STAT.battery_remaining = buf_status.battery_remaining; - log_msg.body.log_STAT.battery_warning = (uint8_t) buf_status.battery_warning; + log_msg.body.log_STAT.battery_warning = buf_status.battery_warning; log_msg.body.log_STAT.landed = (uint8_t) buf_status.condition_landed; + log_msg.body.log_STAT.load = buf_status.load; LOGBUFFER_WRITE_AND_COUNT(STAT); } |