Skip to content

Commit

Permalink
Update src/mavsdk/plugins/action/action_impl.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Jonas Vautherin <[email protected]>
  • Loading branch information
Jaeyoung-Lim and JonasVautherin authored Nov 2, 2023
1 parent 5e98e88 commit 4366b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mavsdk/plugins/action/action_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ void ActionImpl::goto_location_async(
command.params.x = int32_t(std::round(latitude_deg * 1e7));
command.params.y = int32_t(std::round(longitude_deg * 1e7));
command.params.maybe_z = altitude_amsl_m;
command.params.maybe_param2 = MAV_DO_REPOSITION_FLAGS_CHANGE_MODE;
command.params.maybe_param2 = static_cast<float>(MAV_DO_REPOSITION_FLAGS_CHANGE_MODE);

_system_impl->send_command_async(
command, [this, callback](MavlinkCommandSender::Result result, float) {
Expand Down

0 comments on commit 4366b0c

Please sign in to comment.