diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2013-08-28 21:41:52 +0200 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2013-08-28 21:41:52 +0200 |
commit | 53813d44a0c6322e46e72c0439e0265ddea76e9e (patch) | |
tree | 5cf6d0002c8247a302e8e4436ccfc0983aeeef9d /src/modules/sdlog2/sdlog2.c | |
parent | 007f4d79cbd7edec6fb69e4556f35bac8dce72f2 (diff) | |
download | px4-firmware-53813d44a0c6322e46e72c0439e0265ddea76e9e.tar.gz px4-firmware-53813d44a0c6322e46e72c0439e0265ddea76e9e.tar.bz2 px4-firmware-53813d44a0c6322e46e72c0439e0265ddea76e9e.zip |
sdlog2: "landed" flag logging
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 2b21bb5a5..e83fb7dd3 100644 --- a/src/modules/sdlog2/sdlog2.c +++ b/src/modules/sdlog2/sdlog2.c @@ -890,13 +890,14 @@ int sdlog2_thread_main(int argc, char *argv[]) if (fds[ifds++].revents & POLLIN) { // Don't orb_copy, it's already done few lines above log_msg.msg_type = LOG_STAT_MSG; - log_msg.body.log_STAT.main_state = (unsigned char) buf_status.main_state; - log_msg.body.log_STAT.navigation_state = (unsigned char) buf_status.navigation_state; - log_msg.body.log_STAT.arming_state = (unsigned char) buf_status.arming_state; + log_msg.body.log_STAT.main_state = (uint8_t) buf_status.main_state; + log_msg.body.log_STAT.navigation_state = (uint8_t) buf_status.navigation_state; + log_msg.body.log_STAT.arming_state = (uint8_t) buf_status.arming_state; log_msg.body.log_STAT.battery_voltage = buf_status.battery_voltage; log_msg.body.log_STAT.battery_current = buf_status.battery_current; log_msg.body.log_STAT.battery_remaining = buf_status.battery_remaining; - log_msg.body.log_STAT.battery_warning = (unsigned char) buf_status.battery_warning; + log_msg.body.log_STAT.battery_warning = (uint8_t) buf_status.battery_warning; + log_msg.body.log_STAT.landed = (uint8_t) buf_status.condition_landed; LOGBUFFER_WRITE_AND_COUNT(STAT); } |