diff options
author | Nuno Marques <n.marques21@hotmail.com> | 2014-08-25 15:07:14 +0100 |
---|---|---|
committer | Nuno Marques <n.marques21@hotmail.com> | 2014-08-25 15:07:14 +0100 |
commit | ebd56aa2c12c3c55e4eb349429a765355afe6360 (patch) | |
tree | 97ec92c3cdb47e5a0890c41a3f7b2babcdb48ee7 /src/modules/sdlog2/sdlog2.c | |
parent | 3ef374c4264969928ce958ff3053f6238909479b (diff) | |
download | px4-firmware-ebd56aa2c12c3c55e4eb349429a765355afe6360.tar.gz px4-firmware-ebd56aa2c12c3c55e4eb349429a765355afe6360.tar.bz2 px4-firmware-ebd56aa2c12c3c55e4eb349429a765355afe6360.zip |
sdlog2: minor corrections
Diffstat (limited to 'src/modules/sdlog2/sdlog2.c')
-rw-r--r-- | src/modules/sdlog2/sdlog2.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/modules/sdlog2/sdlog2.c b/src/modules/sdlog2/sdlog2.c index 02cc39dfc..07655808c 100644 --- a/src/modules/sdlog2/sdlog2.c +++ b/src/modules/sdlog2/sdlog2.c @@ -935,7 +935,7 @@ int sdlog2_thread_main(int argc, char *argv[]) struct vehicle_global_position_s global_pos; struct position_setpoint_triplet_s triplet; struct vehicle_vicon_position_s vicon_pos; - struct vision_position_estimate_s vision_pos; + struct vision_position_estimate vision_pos; struct optical_flow_s flow; struct rc_channels_s rc; struct differential_pressure_s diff_pres; @@ -1587,13 +1587,13 @@ int sdlog2_thread_main(int argc, char *argv[]) } /* --- BOTTOM DISTANCE --- */ -- if (copy_if_updated(ORB_ID(sensor_range_finder), subs.range_finder_sub, &buf.range_finder)) { -- log_msg.msg_type = LOG_DIST_MSG; -- log_msg.body.log_DIST.bottom = buf.range_finder.distance; -- log_msg.body.log_DIST.bottom_rate = 0.0f; -- log_msg.body.log_DIST.flags = (buf.range_finder.valid ? 1 : 0); -- LOGBUFFER_WRITE_AND_COUNT(DIST); -- } + if (copy_if_updated(ORB_ID(sensor_range_finder), subs.range_finder_sub, &buf.range_finder)) { + log_msg.msg_type = LOG_DIST_MSG; + log_msg.body.log_DIST.bottom = buf.range_finder.distance; + log_msg.body.log_DIST.bottom_rate = 0.0f; + log_msg.body.log_DIST.flags = (buf.range_finder.valid ? 1 : 0); + LOGBUFFER_WRITE_AND_COUNT(DIST); + } /* --- ESTIMATOR STATUS --- */ if (copy_if_updated(ORB_ID(estimator_status), subs.estimator_status_sub, &buf.estimator_status)) { |