Skip to content

Commit

Permalink
Merge pull request #286 from mavlink/pr-camera-server-fixup
Browse files Browse the repository at this point in the history
camera_server: add missing comments
  • Loading branch information
julianoes authored May 6, 2022
2 parents 8f5d889 + 5b3e947 commit b9a1c1a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions protos/camera_server/camera_server.proto
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,17 @@ message TakePhotoResponse {
int32 index = 1;
}

// Possible results when taking a photo.
enum TakePhotoFeedback {
TAKE_PHOTO_FEEDBACK_UNKNOWN = 0;
TAKE_PHOTO_FEEDBACK_OK = 1;
TAKE_PHOTO_FEEDBACK_BUSY = 2;
TAKE_PHOTO_FEEDBACK_FAILED = 3;
TAKE_PHOTO_FEEDBACK_UNKNOWN = 0; // Unknown
TAKE_PHOTO_FEEDBACK_OK = 1; // Ok
TAKE_PHOTO_FEEDBACK_BUSY = 2; // Busy
TAKE_PHOTO_FEEDBACK_FAILED = 3; // Failed
}

message RespondTakePhotoRequest {
TakePhotoFeedback take_photo_feedback = 1;
CaptureInfo capture_info = 2;
TakePhotoFeedback take_photo_feedback = 1; // The feedback
CaptureInfo capture_info = 2; // The capture information
}

message RespondTakePhotoResponse {
Expand All @@ -63,7 +64,7 @@ message RespondTakePhotoResponse {
message Information {
string vendor_name = 1; // Name of the camera vendor
string model_name = 2; // Name of the camera model
string firmware_version = 3; // Camera firmware version in <major>[.<minor>[.<patch>[.<dev>]]] format
string firmware_version = 3; // Camera firmware version in major[.minor[.patch[.dev]]] format
float focal_length_mm = 4; // Focal length
float horizontal_sensor_size_mm = 5; // Horizontal sensor size
float vertical_sensor_size_mm = 6; // Vertical sensor size
Expand Down

0 comments on commit b9a1c1a

Please sign in to comment.