diff options
author | tumbili <bapstr@ethz.ch> | 2015-04-02 17:42:14 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-04-04 10:21:46 +0200 |
commit | a530f16518333384295920e56cde636e39ba6809 (patch) | |
tree | 821992b31b23d28aa8d52c2d98d3d17878fdc98c /src/modules/sdlog2/sdlog2.c | |
parent | a4bece7595c13579fda2a822fd867e374d27219e (diff) | |
download | px4-firmware-a530f16518333384295920e56cde636e39ba6809.tar.gz px4-firmware-a530f16518333384295920e56cde636e39ba6809.tar.bz2 px4-firmware-a530f16518333384295920e56cde636e39ba6809.zip |
log quaternion setpoint
Diffstat (limited to 'src/modules/sdlog2/sdlog2.c')
-rw-r--r-- | src/modules/sdlog2/sdlog2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/sdlog2/sdlog2.c b/src/modules/sdlog2/sdlog2.c index 1c8cdd4be..0bfd356a1 100644 --- a/src/modules/sdlog2/sdlog2.c +++ b/src/modules/sdlog2/sdlog2.c @@ -1495,6 +1495,10 @@ int sdlog2_thread_main(int argc, char *argv[]) log_msg.body.log_ATSP.pitch_sp = buf.att_sp.pitch_body; log_msg.body.log_ATSP.yaw_sp = buf.att_sp.yaw_body; log_msg.body.log_ATSP.thrust_sp = buf.att_sp.thrust; + log_msg.body.log_ATSP.q_w = buf.att_sp.q_d[0]; + log_msg.body.log_ATSP.q_x = buf.att_sp.q_d[1]; + log_msg.body.log_ATSP.q_y = buf.att_sp.q_d[2]; + log_msg.body.log_ATSP.q_z = buf.att_sp.q_d[3]; LOGBUFFER_WRITE_AND_COUNT(ATSP); } |