From ef233d29f0642685ed24a3b96c12f37479918826 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 1 Aug 2017 12:46:21 +0200 Subject: [PATCH] VMount: use correct doube interface --- src/drivers/vmount/input_mavlink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/vmount/input_mavlink.cpp b/src/drivers/vmount/input_mavlink.cpp index cd44cca7d3..cbfcc59c64 100644 --- a/src/drivers/vmount/input_mavlink.cpp +++ b/src/drivers/vmount/input_mavlink.cpp @@ -259,7 +259,7 @@ int InputMavlinkCmdMount::update_impl(unsigned int timeout_ms, ControlData **con break; case vehicle_command_s::VEHICLE_MOUNT_MODE_GPS_POINT: - control_data_set_lon_lat(vehicle_command.param2, vehicle_command.param1, vehicle_command.param3); + control_data_set_lon_lat((double)vehicle_command.param2, (double)vehicle_command.param1, vehicle_command.param3); *control_data = &_control_data; break;