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

Camera trigger server #262

Closed
wants to merge 1 commit into from
Closed
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
40 changes: 40 additions & 0 deletions protos/camera_trigger_server/camera_trigger_server.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
syntax = "proto3";

package mavsdk.rpc.camera_trigger_server;

import "mavsdk_options.proto";

option java_package = "io.mavsdk.camera_trigger_server";
option java_outer_classname = "CameraTriggerServerProto";

// Provides handling of camera trigger commands.
service CameraTriggerServerService {
// Subscribe to single-capture MAV_CMD_IMAGE_START_CAPTURE commands
rpc SubscribeCapture(SubscribeCaptureRequest) returns(stream CaptureResponse) { option (mavsdk.options.async_type) = ASYNC; }
}

message SubscribeCaptureRequest {
}

message CaptureResponse {
CameraTriggerServerResult camera_trigger_server_result = 1;
uint32 sequence_number = 2;
}

// Result type.
message CameraTriggerServerResult {
// Possible results returned for action requests.
enum Result {
RESULT_UNKNOWN = 0; // Unknown result
RESULT_SUCCESS = 1; // Success: the telemetry command was accepted by the vehicle
RESULT_NO_SYSTEM = 2; // No system connected
RESULT_CONNECTION_ERROR = 3; // Connection error
RESULT_BUSY = 4; // Vehicle is busy
RESULT_COMMAND_DENIED = 5; // Command refused by vehicle
RESULT_TIMEOUT = 6; // Request timed out
RESULT_UNSUPPORTED = 7; // Request not supported
}

Result result = 1; // Result enum value
string result_str = 2; // Human-readable English string describing the result
}