Skip to content

Commit f308367

Browse files
committed
Add parameter to specify storage location
Allows the client to specify if a media file should be stored on internal or external storage (if available).
1 parent bb5ffe7 commit f308367

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

protobuf_definitions/control.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@ message WatchdogCtrl {
5050
// Issue a command to start video recording.
5151
message RecordCtrl {
5252
RecordOn record_on = 1; // Message specifying which cameras to record.
53+
StorageLocation storage_location = 2; // Storage location to use for the recordings.
5354
}
5455

5556
// Issue a command to take a picture.
5657
message TakePictureCtrl {
58+
StorageLocation storage_location = 1; // Storage location to use for the picture.
5759
}
5860

5961
// Issue a command to start compass calibration.

protobuf_definitions/message_formats.proto

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,15 @@ message RecordOn {
599599
bool multibeam = 3; // Record multibeam.
600600
}
601601

602+
// Storage location.
603+
//
604+
// Used to specify which storage location to use for recording photos and videos.
605+
enum StorageLocation {
606+
STORAGE_LOCATION_UNSPECIFIED = 0; // Unspecified.
607+
STORAGE_LOCATION_INTERNAL = 1; // Internal storage of the drone.
608+
STORAGE_LOCATION_REMOVABLE = 2; // Removable storage device.
609+
}
610+
602611
// Storage space.
603612
message StorageSpace {
604613
int64 total_space = 1; // Total bytes of storage space (B).
@@ -814,7 +823,6 @@ enum StreamingProtocol {
814823
STREAMING_PROTOCOL_RTSP_MJPEG = 2; // RTSP streaming protocol using MJPEG codec.
815824
}
816825

817-
818826
// Camera parameters.
819827
message CameraParameters {
820828
int32 h264_bitrate = 1; // Bitrate of the h264 stream (bit/sec).

0 commit comments

Comments
 (0)