Skip to content
Draft
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
41 changes: 41 additions & 0 deletions protos/camera_server/camera_server.proto
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,18 @@ service CameraServerService {

// Respond to an incoming tracking off command.
rpc RespondTrackingOffCommand(RespondTrackingOffCommandRequest) returns(RespondTrackingOffCommandResponse) { option (mavsdk.options.async_type) = SYNC; }

// Set the camera's GPS position.
rpc SetPosition(SetPositionRequest) returns(SetPositionResponse) { option (mavsdk.options.async_type) = SYNC; }

// Set the camera's attitude quaternion.
rpc SetAttitudeQuaternion(SetAttitudeQuaternionRequest) returns(SetAttitudeQuaternionResponse) { option (mavsdk.options.async_type) = SYNC; }

// Set the camera's zoom factor for CAMERA_FOV_STATUS reporting.
rpc SetZoomFactor(SetZoomFactorRequest) returns(SetZoomFactorResponse) { option (mavsdk.options.async_type) = SYNC; }

// Set the field of view explicitly, for cameras that do not report a zoom factor.
rpc SetFieldOfView(SetFieldOfViewRequest) returns(SetFieldOfViewResponse) { option (mavsdk.options.async_type) = SYNC; }
}


Expand Down Expand Up @@ -520,6 +532,35 @@ message RespondTrackingOffCommandResponse {
CameraServerResult camera_server_result = 1; // The result of sending the response.
}

message SetPositionRequest {
Position position = 1; // The camera's current GPS position
}
message SetPositionResponse {
CameraServerResult camera_server_result = 1;
}

message SetAttitudeQuaternionRequest {
Quaternion attitude_quaternion = 1; // The camera's current attitude
}
message SetAttitudeQuaternionResponse {
CameraServerResult camera_server_result = 1;
}

message SetZoomFactorRequest {
float zoom_factor = 1; // The camera's current zoom factor, starting at 1x.
}
message SetZoomFactorResponse {
CameraServerResult camera_server_result = 1;
}

message SetFieldOfViewRequest {
float horizontal_fov_deg = 1; // The camera's current horizontal field of view in degrees
float vertical_fov_deg = 2; // The camera's current vertical field of view in degrees
}
message SetFieldOfViewResponse {
CameraServerResult camera_server_result = 1;
}

// Point description type
message TrackPoint {
float point_x = 1; // Point to track x value (normalized 0..1, 0 is left, 1 is right).
Expand Down
Loading