Prevent some warnings for lat/lon double conversions

This commit is contained in:
Julian Oes
2013-12-27 11:14:08 +01:00
parent 32c7aea2a6
commit effa62937f
5 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -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));
}