Skip to content
Draft
Changes from all 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
15 changes: 15 additions & 0 deletions protos/action/action.proto
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,12 @@ 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.
*/
rpc SetGpsGlobalOrigin(SetGpsGlobalOriginRequest) returns(SetGpsGlobalOriginResponse) { option (mavsdk.options.async_type) = SYNC; }
}

message ArmRequest {}
Expand Down Expand Up @@ -312,6 +318,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