Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

action: add set_gps_origin #342

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions protos/action/action.proto
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,16 @@ service ActionService {
* It is ephemeral, so not stored on the drone and does not survive a reboot.
*/
rpc SetCurrentSpeed(SetCurrentSpeedRequest) returns(SetCurrentSpeedResponse) {}
/*
* Set GPS Global Origin.
*
* Sets the GPS coordinates of the vehicle local origin (0,0,0) position.
*/
<<<<<<< HEAD
rpc SetGpsGlobalOrigin(SetGpsGlobalOriginRequest) returns(SetGpsGlobalOriginResponse) {}
=======
rpc SetGpsGlobalOrigin(SetGpsGlobalOriginRequest) returns(SetGpsGlobalOriginResponse) { option (mavsdk.options.async_type) = SYNC; }
>>>>>>> action: add set_gps_origin
}

message ArmRequest {}
Expand Down Expand Up @@ -312,6 +322,15 @@ message SetCurrentSpeedResponse {
ActionResult action_result = 1;
}

message SetGpsGlobalOriginRequest {
double latitude_deg = 1; // Latitude (in degrees)
double longitude_deg = 2; // Longitude (in degrees)
float absolute_altitude_m = 3; // Altitude AMSL (in meters)
}
message SetGpsGlobalOriginResponse {
ActionResult action_result = 1;
}

// Result type.
message ActionResult {
// Possible results returned for action requests.
Expand Down