aboutsummaryrefslogtreecommitdiff
path: root/src/modules/sdlog2/sdlog2.c
diff options
context:
space:
mode:
authorAnton Babushkin <anton.babushkin@me.com>2014-04-22 11:36:25 +0200
committerAnton Babushkin <anton.babushkin@me.com>2014-04-22 11:36:25 +0200
commita1cf8801bb000e38d11b4573d7cde452f02abbc3 (patch)
tree283e319d78bec0209cf602311370a7888ee264b0 /src/modules/sdlog2/sdlog2.c
parent302233a34f23a57b67d4ebb8ba3e553ad9d8c445 (diff)
downloadpx4-firmware-a1cf8801bb000e38d11b4573d7cde452f02abbc3.tar.gz
px4-firmware-a1cf8801bb000e38d11b4573d7cde452f02abbc3.tar.bz2
px4-firmware-a1cf8801bb000e38d11b4573d7cde452f02abbc3.zip
sdlog2: add failsafe state logging
Diffstat (limited to 'src/modules/sdlog2/sdlog2.c')
-rw-r--r--src/modules/sdlog2/sdlog2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/sdlog2/sdlog2.c b/src/modules/sdlog2/sdlog2.c
index e026753dc..1ca8cf8c5 100644
--- a/src/modules/sdlog2/sdlog2.c
+++ b/src/modules/sdlog2/sdlog2.c
@@ -960,6 +960,7 @@ int sdlog2_thread_main(int argc, char *argv[])
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_state;
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.landed = (uint8_t) buf_status.condition_landed;