Skip to content

Commit

Permalink
Added new vehicle action into MissionItem message template
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Ligocki committed Apr 29, 2021
1 parent 8246091 commit de84032
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions protos/mission/mission.proto
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ message MissionItem {
CameraAction camera_action = 8; // Camera action to trigger at this mission item
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)
VehicleAction vehicle_action = 11; // Plane action to trigger at this mission item. Same idea as CameraAction but for plane

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

enum PlaneAction {
VEHICLE_ACTION_NONE = 0;
VEHICLE_ACTION_ARM = 1;
VEHICLE_ACTION_DISARM = 2;
VEHICLE_ACTION_TAKEOFF = 3;
VEHICLE_ACTION_LAND = 4;
VEHICLE_ACTION_TRANSITION_TO_FW = 5;
VEHICLE_ACTION_TRANSITION_TO_MC = 6;
}
}

// Mission plan type
Expand Down

0 comments on commit de84032

Please sign in to comment.