Skip to content

Commit

Permalink
Merge pull request #2170 from Jaeyoung-Lim/pr-fix-do-reposition
Browse files Browse the repository at this point in the history
Request mode change for action MAV_CMD_DO_REPOSITION
  • Loading branch information
julianoes authored Nov 2, 2023
2 parents b29239d + 4366b0c commit b545332
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mavsdk/plugins/action/action_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +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 = 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 b545332

Please sign in to comment.