diff options
author | Julian Oes <julian@oes.ch> | 2013-12-27 11:14:08 +0100 |
---|---|---|
committer | Julian Oes <julian@oes.ch> | 2013-12-27 11:14:08 +0100 |
commit | effa62937fbaab0e446a95ac1ac9447a2895594e (patch) | |
tree | 68d31700e15a804cb90f2d6331740e81d16ac8f4 /src/modules/sdlog2 | |
parent | 32c7aea2a6a0c355d2cae362884e40e4f3573311 (diff) | |
download | px4-firmware-effa62937fbaab0e446a95ac1ac9447a2895594e.tar.gz px4-firmware-effa62937fbaab0e446a95ac1ac9447a2895594e.tar.bz2 px4-firmware-effa62937fbaab0e446a95ac1ac9447a2895594e.zip |
Prevent some warnings for lat/lon double conversions
Diffstat (limited to 'src/modules/sdlog2')
-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 5dc325a05..9f634d9e4 100644 --- a/src/modules/sdlog2/sdlog2.c +++ b/src/modules/sdlog2/sdlog2.c @@ -1153,8 +1153,8 @@ int sdlog2_thread_main(int argc, char *argv[]) orb_copy(ORB_ID(mission_item_triplet), subs.triplet_sub, &buf.triplet); log_msg.msg_type = LOG_GPSP_MSG; log_msg.body.log_GPSP.altitude_is_relative = buf.triplet.current.altitude_is_relative; - log_msg.body.log_GPSP.lat = (int32_t)(buf.triplet.current.lat * 1e7); - log_msg.body.log_GPSP.lon = (int32_t)(buf.triplet.current.lon * 1e7); + log_msg.body.log_GPSP.lat = (int32_t)(buf.triplet.current.lat * 1e7d); + log_msg.body.log_GPSP.lon = (int32_t)(buf.triplet.current.lon * 1e7d); log_msg.body.log_GPSP.altitude = buf.triplet.current.altitude; log_msg.body.log_GPSP.yaw = buf.triplet.current.yaw; log_msg.body.log_GPSP.nav_cmd = buf.triplet.current.nav_cmd; |