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/mavlink/orb_listener.c | |
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/mavlink/orb_listener.c')
-rw-r--r-- | src/modules/mavlink/orb_listener.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/mavlink/orb_listener.c b/src/modules/mavlink/orb_listener.c index 96888f06a..17978615f 100644 --- a/src/modules/mavlink/orb_listener.c +++ b/src/modules/mavlink/orb_listener.c @@ -416,8 +416,8 @@ l_global_position_setpoint(const struct listener *l) if (gcs_link) mavlink_msg_global_position_setpoint_int_send(MAVLINK_COMM_0, coordinate_frame, - (int32_t)(triplet.current.lat * 1e7f), - (int32_t)(triplet.current.lon * 1e7f), + (int32_t)(triplet.current.lat * 1e7d), + (int32_t)(triplet.current.lon * 1e7d), (int32_t)(triplet.current.altitude * 1e3f), (int16_t)(triplet.current.yaw * M_RAD_TO_DEG_F * 1e2f)); } |