diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2014-03-17 23:58:00 +0400 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2014-03-17 23:58:00 +0400 |
commit | c266124099fe67dcff5d5f3deeef37acebdc1695 (patch) | |
tree | 70abb548532ca6c02ba8111bbd265fde0963095e /src/modules/sdlog2/sdlog2.c | |
parent | 2f7303f2ddebedacaa92b287ee70ecea0e2d5baf (diff) | |
download | px4-firmware-c266124099fe67dcff5d5f3deeef37acebdc1695.tar.gz px4-firmware-c266124099fe67dcff5d5f3deeef37acebdc1695.tar.bz2 px4-firmware-c266124099fe67dcff5d5f3deeef37acebdc1695.zip |
vehicle_local_position: use double for ref_lat and ref_lon instead of int32, fix related apps
Diffstat (limited to 'src/modules/sdlog2/sdlog2.c')
-rw-r--r-- | src/modules/sdlog2/sdlog2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/sdlog2/sdlog2.c b/src/modules/sdlog2/sdlog2.c index 2514bafee..24eed228b 100644 --- a/src/modules/sdlog2/sdlog2.c +++ b/src/modules/sdlog2/sdlog2.c @@ -1085,8 +1085,8 @@ int sdlog2_thread_main(int argc, char *argv[]) log_msg.body.log_LPOS.vx = buf.local_pos.vx; log_msg.body.log_LPOS.vy = buf.local_pos.vy; log_msg.body.log_LPOS.vz = buf.local_pos.vz; - log_msg.body.log_LPOS.ref_lat = buf.local_pos.ref_lat; - log_msg.body.log_LPOS.ref_lon = buf.local_pos.ref_lon; + log_msg.body.log_LPOS.ref_lat = buf.local_pos.ref_lat * 1e7; + log_msg.body.log_LPOS.ref_lon = buf.local_pos.ref_lon * 1e7; log_msg.body.log_LPOS.ref_alt = buf.local_pos.ref_alt; log_msg.body.log_LPOS.xy_flags = (buf.local_pos.xy_valid ? 1 : 0) | (buf.local_pos.v_xy_valid ? 2 : 0) | (buf.local_pos.xy_global ? 8 : 0); log_msg.body.log_LPOS.z_flags = (buf.local_pos.z_valid ? 1 : 0) | (buf.local_pos.v_z_valid ? 2 : 0) | (buf.local_pos.z_global ? 8 : 0); |