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

Added new vehicle action into MissionItem message template #226

Merged
merged 4 commits into from
May 28, 2021
Merged
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
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
}

rligocki marked this conversation as resolved.
Show resolved Hide resolved
// 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