Skip to content

Action: add set_home#2884

Closed
bansiesta wants to merge 1 commit into
mainfrom
feature/action-set-home
Closed

Action: add set_home#2884
bansiesta wants to merge 1 commit into
mainfrom
feature/action-set-home

Conversation

@bansiesta

Copy link
Copy Markdown
Collaborator

Implements set_home action as requested in #2799.

What it does

Adds Action::set_home(use_current_location, latitude_deg, longitude_deg, absolute_altitude_m) which sends MAV_CMD_DO_SET_HOME (179).

  • Uses CommandInt (not CommandLong) for full int32 lat/lon precision, following the do_orbit/goto_location pattern
  • When use_current_location=true, only param1=1 is sent (no coordinates needed)
  • When use_current_location=false, lat/lon are encoded as int32 ×1e7

Files changed

  • Generated (from updated proto): action.hpp, action.cpp, action_service_impl.hpp, action.pb.h/.cc, action.grpc.pb.h/.cc
  • Handwritten: action_impl.hpp (declaration), action_impl.cpp (implementation)

Dependencies

Depends on MAVSDK-Proto PR mavlink/MAVSDK-Proto#397 (submodule updated to that commit).

Closes #2799

Implements set_home (MAV_CMD_DO_SET_HOME) as requested in #2799.
Uses CommandInt for coordinate precision.

Depends on MAVSDK-Proto PR #397 (submodule pointed at that branch).
Note: MAVSDK-Proto PR #397 needs to be rebased on main before this can pass style check.
@bansiesta bansiesta force-pushed the feature/action-set-home branch from 36cd2ad to 63ddd67 Compare May 22, 2026 08:26
@bansiesta

Copy link
Copy Markdown
Collaborator Author

Closing in favor of #2886 which is based on current main and includes updated generated files for all plugins.

@bansiesta bansiesta closed this May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add action to be able to set the home

1 participant