Skip to content

Commit 91fc200

Browse files
follesoejp-pino
andcommitted
Add message definitions for removable storage
Co-Authored-By: Juan Pablo Pino Bravo <[email protected]>
1 parent 3e0ba70 commit 91fc200

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

protobuf_definitions/control.proto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,3 +215,12 @@ message StartDiveCtrl {
215215
// at which point the user exited the dive view.
216216
message EndDiveCtrl {
217217
}
218+
219+
// Message sent when the user wants to format a connected removable storage device.
220+
//
221+
// The app will receive a RemovableStorageTel message with information about the newly formatted drive.
222+
//
223+
// Warning: The drone will delete any partitions and format the drive with a single exFat partition.
224+
// Any data on the drive will be lost.
225+
message FormatRemovableStorageDeviceCtrl {
226+
}

protobuf_definitions/message_formats.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,8 @@ message StorageSpace {
583583
int64 free_space = 2; // Available bytes of storage space (B).
584584
}
585585

586+
bool wrong_file_system_found = 4; // The wrong file system is found.
587+
bool device_is_read_only = 5; // The device is in read-only mode.
586588
// Compass calibration state.
587589
message CalibrationState {
588590

protobuf_definitions/telemetry.proto

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,13 @@ message CanisterBottomHumidityTel {
148148

149149
// Video storage info.
150150
message VideoStorageSpaceTel {
151-
StorageSpace storage_space = 1; // Video storage information.
151+
StorageSpace storage_space = 1; // Internal Video storage information.
152+
StorageSpace removable_space = 2; // Removable Video storage information. Can be empty.
153+
}
154+
155+
// Information about removable storage device.
156+
message RemovableStorageTel {
157+
RemovableStorageDevice storage_device = 1; // Information about the storage device (such as partitions)
152158
}
153159

154160
// Data storage info.

0 commit comments

Comments
 (0)