We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b4d03cc + f80a64f commit 7f82f17Copy full SHA for 7f82f17
src/mavsdk/plugins/action/action_impl.cpp
@@ -477,7 +477,7 @@ void ActionImpl::goto_location_async(
477
command.command = MAV_CMD_DO_REPOSITION;
478
command.target_component_id = _system_impl->get_autopilot_id();
479
command.frame = MAV_FRAME_GLOBAL_INT;
480
- command.params.maybe_param4 = yaw_deg;
+ command.params.maybe_param4 = static_cast<float>(to_rad_from_deg(yaw_deg));
481
command.params.x = int32_t(std::round(latitude_deg * 1e7));
482
command.params.y = int32_t(std::round(longitude_deg * 1e7));
483
command.params.maybe_z = altitude_amsl_m;
0 commit comments