Skip to content

Commit ca3d2a9

Browse files
Merge pull request #156 from BluEye-Robotics/js/datawritesettings
Add DataWriteSettings
2 parents fbf7fd0 + dc7560b commit ca3d2a9

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

protobuf_definitions/message_formats.proto

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,3 +1019,19 @@ message MultibeamDiscovery {
10191019
string connected_ip = 6; // IP address of the connected device
10201020
GuestPortDeviceID device_id = 7; // Device ID of the sonar
10211021
}
1022+
1023+
// PersistentStorageSettings defines settings for writing various types of data in the persistent storage on the drone
1024+
//
1025+
// Some of the data is written during factory calibration (acc calibration), while other data is written during user
1026+
// calubration or during normal operation.
1027+
message PersistentStorageSettings {
1028+
bool videos = 1; // Indicates if videos should be written to the video partition.
1029+
bool images = 2; // Indicates if images should be written to the video partition.
1030+
bool binlog = 3; // Indicates if binary logs with telemetry data should be written to the data partition.
1031+
bool multibeam = 4; // Indicates if multibeam data should be written to the video partition.
1032+
bool webserver_log = 5; // Indicates if webserver logs should be written to the data partition.
1033+
bool control_system_log = 6; // Indicates if control system logs should be written to the data partition.
1034+
bool gyro_calibration = 7; // Indicates if gyro calibration data should be written to the data partition.
1035+
bool compass_calibration = 8; // Indicates if compass calibration data should be written to the data partition.
1036+
bool acc_calibration = 9; // Indicates if accelerometer calibration data should be written to the data partition.
1037+
}

protobuf_definitions/req_rep.proto

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,22 @@ message GetTelemetryReq {
168168
// Response with latest telemetry
169169
message GetTelemetryRep {
170170
google.protobuf.Any payload = 1; // The latest telemetry data, empty if no data available.
171+
}
172+
173+
// Request to set persistent storage settings.
174+
message SetPersistentStorageSettingsReq {
175+
PersistentStorageSettings persistent_storage_settings = 1; // The persistent storage settings to apply.
176+
}
177+
178+
// Response after setting persistent storage settings.
179+
message SetPersistentStorageSettingsRep {
180+
}
181+
182+
// Request to get currently set persistent storage settings.
183+
message GetPersistentStorageSettingsReq {
184+
}
185+
186+
// Response with the currently set persistent storage settings.
187+
message GetPersistentStorageSettingsRep {
188+
PersistentStorageSettings persistent_storage_settings = 1; // The currently set persistent storage settings.
171189
}

0 commit comments

Comments
 (0)