mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-06 11:08:54 +08:00
vmount: fix implicit double promotion
This commit is contained in:
@@ -80,8 +80,8 @@ int OutputMavlink::update(const ControlData *control_data)
|
||||
vehicle_command.param3 = 0.0f;
|
||||
vehicle_command.param4 = 0.0f;
|
||||
|
||||
vehicle_command.param5 = static_cast<float>(control_data->type_data.angle.frames[0]);
|
||||
vehicle_command.param6 = static_cast<float>(control_data->type_data.angle.frames[1]);
|
||||
vehicle_command.param5 = static_cast<double>(control_data->type_data.angle.frames[0]);
|
||||
vehicle_command.param6 = static_cast<double>(control_data->type_data.angle.frames[1]);
|
||||
vehicle_command.param7 = static_cast<float>(control_data->type_data.angle.frames[2]);
|
||||
|
||||
_vehicle_command_pub.publish(vehicle_command);
|
||||
|
||||
Reference in New Issue
Block a user