Skip to content

Commit

Permalink
Merge pull request #226 from rligocki/feature-extension-mission-item
Browse files Browse the repository at this point in the history
Added new vehicle action into MissionItem message template
  • Loading branch information
JonasVautherin authored May 28, 2021
2 parents a60b937 + 80a32ed commit b035e48
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions protos/mission/mission.proto
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ message MissionItem {
float loiter_time_s = 9 [(mavsdk.options.default_value)="NaN"]; // Loiter time (in seconds)
double camera_photo_interval_s = 10 [(mavsdk.options.default_value)="1.0"]; // Camera photo interval to use after this mission item (in seconds)
float acceptance_radius_m = 11 [(mavsdk.options.default_value)="NaN"]; // Radius for completing a mission item (in metres)
VehicleAction vehicle_action = 12; // Vehicle action to trigger at this mission item.

// Possible camera actions at a mission item.
enum CameraAction {
Expand All @@ -183,6 +184,15 @@ message MissionItem {
CAMERA_ACTION_START_VIDEO = 4; // Start capturing video
CAMERA_ACTION_STOP_VIDEO = 5; // Stop capturing video
}

// Possible vehicle actions at a mission item
enum VehicleAction {
VEHICLE_ACTION_NONE = 0; // No action
VEHICLE_ACTION_TAKEOFF = 1; // Vehicle will takeoff and go to defined waypoint
VEHICLE_ACTION_LAND = 2; // When a waypoint is reached vehicle will land at current position
VEHICLE_ACTION_TRANSITION_TO_FW = 3; // When a waypoint is reached vehicle will transition to fixed-wing mode
VEHICLE_ACTION_TRANSITION_TO_MC = 4; // When a waypoint is reached vehicle will transition to multi-copter mode
}
}

// Mission plan type
Expand Down

0 comments on commit b035e48

Please sign in to comment.