Skip to content
Open
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
24 changes: 24 additions & 0 deletions protos/action/action.proto
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,19 @@ service ActionService {
* The yaw angle is in degrees (frame is NED, 0 is North, positive is clockwise).
*/
rpc GotoLocation(GotoLocationRequest) returns(GotoLocationResponse) {}
/*
* Send command to the drone to fly to a location for fixed-wing aircraft.
*
* This sends a MAV_CMD_DO_REPOSITION command with a loiter radius.
*
* The latitude and longitude are given in degrees (WGS84 frame) and the altitude
* in meters AMSL (above mean sea level).
*
* The loiter radius defines the radius of the loiter circle in meters, and its sign
* controls the direction: positive is clockwise, negative is counter-clockwise.
* A value of 0 is ignored by the autopilot.
*/
rpc GotoLocationFixedwing(GotoLocationFixedwingRequest) returns(GotoLocationFixedwingResponse) {}
/*
* Send command do orbit to the drone.
*
Expand Down Expand Up @@ -233,6 +246,16 @@ message GotoLocationResponse {
ActionResult action_result = 1;
}

message GotoLocationFixedwingRequest {
double latitude_deg = 1; // Latitude (in degrees)
double longitude_deg = 2; // Longitude (in degrees)
float absolute_altitude_m = 3; // Altitude AMSL (in meters)
float loiter_radius_m = 4; // Loiter radius (in meters). Positive: clockwise, negative: counter-clockwise, 0: ignored.
}
message GotoLocationFixedwingResponse {
ActionResult action_result = 1;
}

// Yaw behaviour during orbit flight.
enum OrbitYawBehavior {
ORBIT_YAW_BEHAVIOR_HOLD_FRONT_TO_CIRCLE_CENTER = 0; // Vehicle front points to the center (default)
Expand Down Expand Up @@ -366,3 +389,4 @@ message ActionResult {
Result result = 1; // Result enum value
string result_str = 2; // Human-readable English string describing the result
}

Loading