@blueyerobotics/protocol-definitions 3.2.0-8a0f8e61 → 3.2.0-8c2492a3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,40 @@
1
+ # @blueyerobotics/protocol-definitions
2
+
3
+ TypeScript protobuf definitions for Blueye Robotics protocols generated using [ts-proto](https://github.com/stephenh/ts-proto).
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @blueyerobotics/protocol-definitions
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```ts
14
+ import { blueye } from "@blueyerobotics/protocol-definitions";
15
+
16
+ // Create a new GetBatteryReq message
17
+ const request = blueye.protocol.GetBatteryReq.create();
18
+
19
+ // Serialize the message to a Uint8Array (binary)
20
+ const binary = blueye.protocol.GetBatteryReq.encode(request).finish();
21
+
22
+ // ...
23
+
24
+ // For demonstration, we will simulate a response from the device
25
+ const response = blueye.protocol.GetBatteryRep.create({
26
+ battery: {
27
+ level: 85,
28
+ voltage: 12.5,
29
+ temperature: 25,
30
+ },
31
+ });
32
+
33
+ const binaryResponse = blueye.protocol.GetBatteryRep.encode(response).finish();
34
+
35
+ // Decode a binary response back into a message
36
+ const decoded = blueye.protocol.GetBatteryRep.decode(binaryResponse);
37
+
38
+ // Access fields
39
+ console.log(decoded.battery?.level);
40
+ ```
@@ -424,18 +424,12 @@ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefi
424
424
  type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
425
425
  [K in keyof T]?: DeepPartial<T[K]>;
426
426
  } : Partial<T>;
427
- type KeysOfUnion<T> = T extends T ? keyof T : never;
428
- type Exact<P, I extends P> = P extends Builtin ? P : P & {
429
- [K in keyof P]: Exact<P[K], I[K]>;
430
- } & {
431
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
432
- };
433
427
  interface MessageFns<T> {
434
428
  encode(message: T, writer?: BinaryWriter): BinaryWriter;
435
429
  decode(input: BinaryReader | Uint8Array, length?: number): T;
436
430
  fromJSON(object: any): T;
437
431
  toJSON(message: T): unknown;
438
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
439
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
432
+ create(base?: DeepPartial<T>): T;
433
+ fromPartial(object: DeepPartial<T>): T;
440
434
  }
441
435
  export {};
package/dist/aquatroll.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.5
4
+ // protoc-gen-ts_proto v2.7.7
5
5
  // protoc v3.21.12
6
6
  // source: aquatroll.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
package/dist/control.d.ts CHANGED
@@ -205,6 +205,16 @@ export interface StartDiveCtrl {
205
205
  */
206
206
  export interface EndDiveCtrl {
207
207
  }
208
+ /**
209
+ * Message sent when the user wants to format a connected removable storage device.
210
+ *
211
+ * The app will receive a RemovableStorageTel message with information about the newly formatted drive.
212
+ *
213
+ * Warning: The drone will delete any partitions and format the drive with a single exFat partition.
214
+ * Any data on the drive will be lost.
215
+ */
216
+ export interface FormatRemovableStorageDeviceCtrl {
217
+ }
208
218
  export declare const MotionInputCtrl: MessageFns<MotionInputCtrl>;
209
219
  export declare const TiltVelocityCtrl: MessageFns<TiltVelocityCtrl>;
210
220
  export declare const LightsCtrl: MessageFns<LightsCtrl>;
@@ -247,22 +257,17 @@ export declare const ActivateMultibeamCtrl: MessageFns<ActivateMultibeamCtrl>;
247
257
  export declare const DeactivateMultibeamCtrl: MessageFns<DeactivateMultibeamCtrl>;
248
258
  export declare const StartDiveCtrl: MessageFns<StartDiveCtrl>;
249
259
  export declare const EndDiveCtrl: MessageFns<EndDiveCtrl>;
260
+ export declare const FormatRemovableStorageDeviceCtrl: MessageFns<FormatRemovableStorageDeviceCtrl>;
250
261
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
251
262
  type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
252
263
  [K in keyof T]?: DeepPartial<T[K]>;
253
264
  } : Partial<T>;
254
- type KeysOfUnion<T> = T extends T ? keyof T : never;
255
- type Exact<P, I extends P> = P extends Builtin ? P : P & {
256
- [K in keyof P]: Exact<P[K], I[K]>;
257
- } & {
258
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
259
- };
260
265
  interface MessageFns<T> {
261
266
  encode(message: T, writer?: BinaryWriter): BinaryWriter;
262
267
  decode(input: BinaryReader | Uint8Array, length?: number): T;
263
268
  fromJSON(object: any): T;
264
269
  toJSON(message: T): unknown;
265
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
266
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
270
+ create(base?: DeepPartial<T>): T;
271
+ fromPartial(object: DeepPartial<T>): T;
267
272
  }
268
273
  export {};
package/dist/control.js CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.5
4
+ // protoc-gen-ts_proto v2.7.7
5
5
  // protoc v3.21.12
6
6
  // source: control.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.EndDiveCtrl = exports.StartDiveCtrl = exports.DeactivateMultibeamCtrl = exports.ActivateMultibeamCtrl = exports.SetMultibeamConfigCtrl = exports.SetAquaTrollConnectionStatusCtrl = exports.SetAquaTrollParameterUnitCtrl = exports.RestartGuestPortsCtrl = exports.ActivateGuestPortsCtrl = exports.DeactivateGuestPortsCtrl = exports.MultibeamServoCtrl = exports.GenericServoCtrl = exports.GripperCtrl = exports.SystemTimeCtrl = exports.PingerConfigurationCtrl = exports.WaterDensityCtrl = exports.TiltStabilizationCtrl = exports.CalibrateDvlGyroCtrl = exports.ResetOdometerCtrl = exports.ResetPositionCtrl = exports.ClearMissionCtrl = exports.PauseMissionCtrl = exports.RunMissionCtrl = exports.AutoPilotHeaveCtrl = exports.AutoPilotSurgeYawCtrl = exports.WeatherVaningCtrl = exports.StationKeepingCtrl = exports.AutoAltitudeCtrl = exports.AutoDepthCtrl = exports.AutoHeadingCtrl = exports.FinishCalibrationCtrl = exports.CancelCalibrationCtrl = exports.StartCalibrationCtrl = exports.TakePictureCtrl = exports.RecordCtrl = exports.WatchdogCtrl = exports.PilotGPSPositionCtrl = exports.LaserCtrl = exports.GuestportLightsCtrl = exports.LightsCtrl = exports.TiltVelocityCtrl = exports.MotionInputCtrl = void 0;
8
+ exports.FormatRemovableStorageDeviceCtrl = exports.EndDiveCtrl = exports.StartDiveCtrl = exports.DeactivateMultibeamCtrl = exports.ActivateMultibeamCtrl = exports.SetMultibeamConfigCtrl = exports.SetAquaTrollConnectionStatusCtrl = exports.SetAquaTrollParameterUnitCtrl = exports.RestartGuestPortsCtrl = exports.ActivateGuestPortsCtrl = exports.DeactivateGuestPortsCtrl = exports.MultibeamServoCtrl = exports.GenericServoCtrl = exports.GripperCtrl = exports.SystemTimeCtrl = exports.PingerConfigurationCtrl = exports.WaterDensityCtrl = exports.TiltStabilizationCtrl = exports.CalibrateDvlGyroCtrl = exports.ResetOdometerCtrl = exports.ResetPositionCtrl = exports.ClearMissionCtrl = exports.PauseMissionCtrl = exports.RunMissionCtrl = exports.AutoPilotHeaveCtrl = exports.AutoPilotSurgeYawCtrl = exports.WeatherVaningCtrl = exports.StationKeepingCtrl = exports.AutoAltitudeCtrl = exports.AutoDepthCtrl = exports.AutoHeadingCtrl = exports.FinishCalibrationCtrl = exports.CancelCalibrationCtrl = exports.StartCalibrationCtrl = exports.TakePictureCtrl = exports.RecordCtrl = exports.WatchdogCtrl = exports.PilotGPSPositionCtrl = exports.LaserCtrl = exports.GuestportLightsCtrl = exports.LightsCtrl = exports.TiltVelocityCtrl = exports.MotionInputCtrl = void 0;
9
9
  /* eslint-disable */
10
10
  const wire_1 = require("@bufbuild/protobuf/wire");
11
11
  const aquatroll_1 = require("./aquatroll");
@@ -2041,6 +2041,43 @@ exports.EndDiveCtrl = {
2041
2041
  return message;
2042
2042
  },
2043
2043
  };
2044
+ function createBaseFormatRemovableStorageDeviceCtrl() {
2045
+ return {};
2046
+ }
2047
+ exports.FormatRemovableStorageDeviceCtrl = {
2048
+ encode(_, writer = new wire_1.BinaryWriter()) {
2049
+ return writer;
2050
+ },
2051
+ decode(input, length) {
2052
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2053
+ const end = length === undefined ? reader.len : reader.pos + length;
2054
+ const message = createBaseFormatRemovableStorageDeviceCtrl();
2055
+ while (reader.pos < end) {
2056
+ const tag = reader.uint32();
2057
+ switch (tag >>> 3) {
2058
+ }
2059
+ if ((tag & 7) === 4 || tag === 0) {
2060
+ break;
2061
+ }
2062
+ reader.skip(tag & 7);
2063
+ }
2064
+ return message;
2065
+ },
2066
+ fromJSON(_) {
2067
+ return {};
2068
+ },
2069
+ toJSON(_) {
2070
+ const obj = {};
2071
+ return obj;
2072
+ },
2073
+ create(base) {
2074
+ return exports.FormatRemovableStorageDeviceCtrl.fromPartial(base ?? {});
2075
+ },
2076
+ fromPartial(_) {
2077
+ const message = createBaseFormatRemovableStorageDeviceCtrl();
2078
+ return message;
2079
+ },
2080
+ };
2044
2081
  const gt = (() => {
2045
2082
  if (typeof globalThis !== "undefined") {
2046
2083
  return globalThis;
@@ -121,18 +121,12 @@ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefi
121
121
  type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
122
122
  [K in keyof T]?: DeepPartial<T[K]>;
123
123
  } : Partial<T>;
124
- type KeysOfUnion<T> = T extends T ? keyof T : never;
125
- type Exact<P, I extends P> = P extends Builtin ? P : P & {
126
- [K in keyof P]: Exact<P[K], I[K]>;
127
- } & {
128
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
129
- };
130
124
  interface MessageFns<T> {
131
125
  encode(message: T, writer?: BinaryWriter): BinaryWriter;
132
126
  decode(input: BinaryReader | Uint8Array, length?: number): T;
133
127
  fromJSON(object: any): T;
134
128
  toJSON(message: T): unknown;
135
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
136
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
129
+ create(base?: DeepPartial<T>): T;
130
+ fromPartial(object: DeepPartial<T>): T;
137
131
  }
138
132
  export {};
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.5
4
+ // protoc-gen-ts_proto v2.7.7
5
5
  // protoc v3.21.12
6
6
  // source: google/protobuf/any.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -81,18 +81,12 @@ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefi
81
81
  type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
82
82
  [K in keyof T]?: DeepPartial<T[K]>;
83
83
  } : Partial<T>;
84
- type KeysOfUnion<T> = T extends T ? keyof T : never;
85
- type Exact<P, I extends P> = P extends Builtin ? P : P & {
86
- [K in keyof P]: Exact<P[K], I[K]>;
87
- } & {
88
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
89
- };
90
84
  interface MessageFns<T> {
91
85
  encode(message: T, writer?: BinaryWriter): BinaryWriter;
92
86
  decode(input: BinaryReader | Uint8Array, length?: number): T;
93
87
  fromJSON(object: any): T;
94
88
  toJSON(message: T): unknown;
95
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
96
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
89
+ create(base?: DeepPartial<T>): T;
90
+ fromPartial(object: DeepPartial<T>): T;
97
91
  }
98
92
  export {};
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.5
4
+ // protoc-gen-ts_proto v2.7.7
5
5
  // protoc v3.21.12
6
6
  // source: google/protobuf/duration.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -110,18 +110,12 @@ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefi
110
110
  type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
111
111
  [K in keyof T]?: DeepPartial<T[K]>;
112
112
  } : Partial<T>;
113
- type KeysOfUnion<T> = T extends T ? keyof T : never;
114
- type Exact<P, I extends P> = P extends Builtin ? P : P & {
115
- [K in keyof P]: Exact<P[K], I[K]>;
116
- } & {
117
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
118
- };
119
113
  interface MessageFns<T> {
120
114
  encode(message: T, writer?: BinaryWriter): BinaryWriter;
121
115
  decode(input: BinaryReader | Uint8Array, length?: number): T;
122
116
  fromJSON(object: any): T;
123
117
  toJSON(message: T): unknown;
124
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
125
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
118
+ create(base?: DeepPartial<T>): T;
119
+ fromPartial(object: DeepPartial<T>): T;
126
120
  }
127
121
  export {};
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.5
4
+ // protoc-gen-ts_proto v2.7.7
5
5
  // protoc v3.21.12
6
6
  // source: google/protobuf/timestamp.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.5
4
+ // protoc-gen-ts_proto v2.7.7
5
5
  // protoc v3.21.12
6
6
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
7
  if (k2 === undefined) k2 = k;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.5
4
+ // protoc-gen-ts_proto v2.7.7
5
5
  // protoc v3.21.12
6
6
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
7
  if (k2 === undefined) k2 = k;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.5
4
+ // protoc-gen-ts_proto v2.7.7
5
5
  // protoc v3.21.12
6
6
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
7
  if (k2 === undefined) k2 = k;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.5
4
+ // protoc-gen-ts_proto v2.7.7
5
5
  // protoc v3.21.12
6
6
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
7
  if (k2 === undefined) k2 = k;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.5
4
+ // protoc-gen-ts_proto v2.7.7
5
5
  // protoc v3.21.12
6
6
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
7
  if (k2 === undefined) k2 = k;
@@ -390,6 +390,8 @@ export declare enum GuestPortDeviceID {
390
390
  GUEST_PORT_DEVICE_ID_WATERLINKED_SONAR_3D15 = 43,
391
391
  /** GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650 - Cerulean Tracker 650. */
392
392
  GUEST_PORT_DEVICE_ID_CERULEAN_TRACKER_650 = 44,
393
+ /** GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE - Blueye External USB Storage */
394
+ GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE = 45,
393
395
  UNRECOGNIZED = -1
394
396
  }
395
397
  export declare function guestPortDeviceIDFromJSON(object: any): GuestPortDeviceID;
@@ -491,6 +493,46 @@ export interface BinlogRecord {
491
493
  /** Posix CLOCK_MONOTONIC timestamp. */
492
494
  clockMonotonic: Date | undefined;
493
495
  }
496
+ /**
497
+ * Log entry
498
+ *
499
+ * Used to store ROS log entries in the bez file
500
+ */
501
+ export interface LogEntry {
502
+ /** Timestamp of the log entry. */
503
+ timestamp: Date | undefined;
504
+ /** Name of the process that generated the log entry. */
505
+ processName: string;
506
+ /** Process ID of the log entry. */
507
+ processId: number;
508
+ /** Thread ID of the log entry. */
509
+ threadId: number;
510
+ /** Source of the log entry (specific class or named logger). */
511
+ source: string;
512
+ /** Log level, info, warning, error, etc. */
513
+ level: LogEntry_LogLevel;
514
+ /** Log message. */
515
+ message: string;
516
+ }
517
+ export declare enum LogEntry_LogLevel {
518
+ /** LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
519
+ LOG_LEVEL_UNSPECIFIED = 0,
520
+ /** LOG_LEVEL_TRACE - Trace log level. */
521
+ LOG_LEVEL_TRACE = 1,
522
+ /** LOG_LEVEL_DEBUG - Debug log level. */
523
+ LOG_LEVEL_DEBUG = 2,
524
+ /** LOG_LEVEL_INFO - Info log level. */
525
+ LOG_LEVEL_INFO = 3,
526
+ /** LOG_LEVEL_WARNING - Warning log level. */
527
+ LOG_LEVEL_WARNING = 4,
528
+ /** LOG_LEVEL_ERROR - Error log level. */
529
+ LOG_LEVEL_ERROR = 5,
530
+ /** LOG_LEVEL_CRITICAL - Critical log level. */
531
+ LOG_LEVEL_CRITICAL = 6,
532
+ UNRECOGNIZED = -1
533
+ }
534
+ export declare function logEntry_LogLevelFromJSON(object: any): LogEntry_LogLevel;
535
+ export declare function logEntry_LogLevelToJSON(object: LogEntry_LogLevel): string;
494
536
  /** If you use both values at the same time they cancel each other out. */
495
537
  export interface MotionInput {
496
538
  /** Forward (positive) and backwards (negative) movement. (-1..1). */
@@ -1143,6 +1185,61 @@ export interface StorageSpace {
1143
1185
  /** Available bytes of storage space (B). */
1144
1186
  freeSpace: number;
1145
1187
  }
1188
+ /** Storage partition. */
1189
+ export interface StoragePartition {
1190
+ /** The amount of storage space on the device. */
1191
+ storageSpace: StorageSpace | undefined;
1192
+ /** File system type of the removable storage device. */
1193
+ fileSystemType: string;
1194
+ /** Partition device path */
1195
+ devicePath: string;
1196
+ /** Mount path of the partition. */
1197
+ mountPath: string;
1198
+ }
1199
+ /** Removable storage device. */
1200
+ export interface RemovableStorageDevice {
1201
+ /** USB vendor name. */
1202
+ vendorName: string;
1203
+ /** Model name of the USB storage device. */
1204
+ modelName: string;
1205
+ /** Mount path of the storage device. */
1206
+ devicePath: string;
1207
+ /** Status of the storage device. */
1208
+ status: RemovableStorageDevice_Status;
1209
+ /** Any active error flags for the storage device. */
1210
+ errorFlags: RemovableStorageErrorFlags | undefined;
1211
+ /** List of partitions on the storage device. */
1212
+ partitions: StoragePartition[];
1213
+ }
1214
+ /** Overall status of the storage device. */
1215
+ export declare enum RemovableStorageDevice_Status {
1216
+ /** STATUS_UNSPECIFIED - Unspecified. */
1217
+ STATUS_UNSPECIFIED = 0,
1218
+ /** STATUS_READY - The storage device is valid and ready for use. */
1219
+ STATUS_READY = 1,
1220
+ /** STATUS_FORMATTING - The storage device is being formatted */
1221
+ STATUS_FORMATTING = 2,
1222
+ /** STATUS_ERROR - The storage device is in an error state. */
1223
+ STATUS_ERROR = 3,
1224
+ UNRECOGNIZED = -1
1225
+ }
1226
+ export declare function removableStorageDevice_StatusFromJSON(object: any): RemovableStorageDevice_Status;
1227
+ export declare function removableStorageDevice_StatusToJSON(object: RemovableStorageDevice_Status): string;
1228
+ /** Error flags related to a removable storage device. */
1229
+ export interface RemovableStorageErrorFlags {
1230
+ /** Optional error message to give additional information from the drone to a client about active error flags. */
1231
+ errorMessage: string;
1232
+ /** Device is attached but no partitions are found. */
1233
+ noPartitionsFound: boolean;
1234
+ /** Multiple partitions are found. */
1235
+ multiplePartitionsFound: boolean;
1236
+ /** The wrong file system is found. */
1237
+ wrongFileSystemFound: boolean;
1238
+ /** The device is in read-only mode. */
1239
+ deviceIsReadOnly: boolean;
1240
+ /** Formatting of the device failed. */
1241
+ formattingFailed: boolean;
1242
+ }
1146
1243
  /** Compass calibration state. */
1147
1244
  export interface CalibrationState {
1148
1245
  /** Current calibration status. */
@@ -1165,7 +1262,7 @@ export interface CalibrationState {
1165
1262
  /**
1166
1263
  * Status of the compass calibration procedure.
1167
1264
  *
1168
- * When calibration is started, the status will indicate the active (upfacing) axis.
1265
+ * When calibration is started, the status will indicate the active (up facing) axis.
1169
1266
  */
1170
1267
  export declare enum CalibrationState_Status {
1171
1268
  /** STATUS_UNSPECIFIED - Unspecified status. */
@@ -1186,7 +1283,7 @@ export declare enum CalibrationState_Status {
1186
1283
  STATUS_CALIBRATING_Z_POSITIVE = 7,
1187
1284
  /** STATUS_CALIBRATING_Z_NEGATIVE - Compass is calibrating and the negative Z axis is active. */
1188
1285
  STATUS_CALIBRATING_Z_NEGATIVE = 8,
1189
- /** STATUS_CALIBRATING_THRUSTER - Compass is calibrating for thruster interferance. */
1286
+ /** STATUS_CALIBRATING_THRUSTER - Compass is calibrating for thruster interference. */
1190
1287
  STATUS_CALIBRATING_THRUSTER = 9,
1191
1288
  UNRECOGNIZED = -1
1192
1289
  }
@@ -1352,12 +1449,26 @@ export interface CameraParameters {
1352
1449
  mjpgBitrate: number;
1353
1450
  /** Shutter speed (1/10000 * s), -1 for automatic exposure. */
1354
1451
  exposure: number;
1355
- /** White balance temperature (2800..9300), -1 for automatic white balance. */
1452
+ /** White balance temperature (Pioneer/Pro/X1/X3: 2800..9300, Ultra: 2300..15000), -1 for auto. */
1356
1453
  whiteBalance: number;
1357
- /** Hue (-40..40), 0 as default. */
1454
+ /** Hue (-40..40), 0 as default. Only available on Pioneer/Pro/X1/X3. */
1358
1455
  hue: number;
1359
- /** Iso gain (0..1). */
1456
+ /** Iso gain (0..1). Only available on Pioneer/Pro/X1/X3. */
1360
1457
  gain: number;
1458
+ /** Brightness (-10..10), 0 as default. Only available on Ultra */
1459
+ brightness: number;
1460
+ /** Contrast (-50..50), 0 as default. Only available on Ultra. */
1461
+ contrast: number;
1462
+ /** Saturation (-0..50), 8 as default. Only available on Ultra. */
1463
+ saturation: number;
1464
+ /** Gamma (4..79), 22 as default. Only available on Ultra. */
1465
+ gamma: number;
1466
+ /** Sharpness (-20..20), -20 as default. Only available on Ultra. */
1467
+ sharpness: number;
1468
+ /** Backlight compensation (-150..150), 10 as default. Only available on Ultra. */
1469
+ backlightCompensation: number;
1470
+ /** Noise reduction (-20..20), -20 as default. Only available on Ultra. */
1471
+ denoise: number;
1361
1472
  /** Stream, recording and image resolution (deprecated). */
1362
1473
  resolution: Resolution;
1363
1474
  /** Stream resolution. */
@@ -1368,6 +1479,8 @@ export interface CameraParameters {
1368
1479
  framerate: Framerate;
1369
1480
  /** Which camera the parameters belong to. */
1370
1481
  camera: Camera;
1482
+ /** Prioritize fixed frame rate over quality on Ultra. */
1483
+ fixedFramerate: boolean;
1371
1484
  }
1372
1485
  /**
1373
1486
  * Overlay parameters.
@@ -1747,8 +1860,42 @@ export interface CPUInfo {
1747
1860
  mainQueueLoad: number;
1748
1861
  /** Guestport queue load (0..1). */
1749
1862
  guestportQueueLoad: number;
1863
+ /** Communication queue load (0..1). */
1864
+ commQueueLoad: number;
1865
+ }
1866
+ /**
1867
+ * Surface Unit battery information.
1868
+ *
1869
+ * This message is published by the Surface Unit, and re-published by
1870
+ * the drone over the communication protocol.
1871
+ */
1872
+ export interface SurfaceUnitBatteryInfo {
1873
+ /** Battery charge status. */
1874
+ status: SurfaceUnitBatteryInfo_ChargeStatus;
1875
+ /** Battery level (0..1). */
1876
+ level: number;
1877
+ }
1878
+ export declare enum SurfaceUnitBatteryInfo_ChargeStatus {
1879
+ CHARGE_STATUS_UNSPECIFIED = 0,
1880
+ CHARGE_STATUS_DISCHARGE = 1,
1881
+ CHARGE_STATUS_CHARGE = 2,
1882
+ CHARGE_STATUS_CHARGE_ERROR = 3,
1883
+ UNRECOGNIZED = -1
1884
+ }
1885
+ export declare function surfaceUnitBatteryInfo_ChargeStatusFromJSON(object: any): SurfaceUnitBatteryInfo_ChargeStatus;
1886
+ export declare function surfaceUnitBatteryInfo_ChargeStatusToJSON(object: SurfaceUnitBatteryInfo_ChargeStatus): string;
1887
+ /**
1888
+ * Surface Unit version information.
1889
+ *
1890
+ * This message is published by the Surface Unit, and re-published by
1891
+ * the drone over the communication protocol.
1892
+ */
1893
+ export interface SurfaceUnitVersionInfo {
1894
+ /** Surface Unit firmware version (x.y.z). */
1895
+ version: string;
1750
1896
  }
1751
1897
  export declare const BinlogRecord: MessageFns<BinlogRecord>;
1898
+ export declare const LogEntry: MessageFns<LogEntry>;
1752
1899
  export declare const MotionInput: MessageFns<MotionInput>;
1753
1900
  export declare const Lights: MessageFns<Lights>;
1754
1901
  export declare const Laser: MessageFns<Laser>;
@@ -1800,6 +1947,9 @@ export declare const ControllerHealth: MessageFns<ControllerHealth>;
1800
1947
  export declare const DiveTime: MessageFns<DiveTime>;
1801
1948
  export declare const RecordOn: MessageFns<RecordOn>;
1802
1949
  export declare const StorageSpace: MessageFns<StorageSpace>;
1950
+ export declare const StoragePartition: MessageFns<StoragePartition>;
1951
+ export declare const RemovableStorageDevice: MessageFns<RemovableStorageDevice>;
1952
+ export declare const RemovableStorageErrorFlags: MessageFns<RemovableStorageErrorFlags>;
1803
1953
  export declare const CalibrationState: MessageFns<CalibrationState>;
1804
1954
  export declare const IperfStatus: MessageFns<IperfStatus>;
1805
1955
  export declare const NStreamers: MessageFns<NStreamers>;
@@ -1831,22 +1981,18 @@ export declare const MultibeamFrameOffset: MessageFns<MultibeamFrameOffset>;
1831
1981
  export declare const MutltibeamRecordingIndex: MessageFns<MutltibeamRecordingIndex>;
1832
1982
  export declare const PersistentStorageSettings: MessageFns<PersistentStorageSettings>;
1833
1983
  export declare const CPUInfo: MessageFns<CPUInfo>;
1984
+ export declare const SurfaceUnitBatteryInfo: MessageFns<SurfaceUnitBatteryInfo>;
1985
+ export declare const SurfaceUnitVersionInfo: MessageFns<SurfaceUnitVersionInfo>;
1834
1986
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
1835
1987
  type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
1836
1988
  [K in keyof T]?: DeepPartial<T[K]>;
1837
1989
  } : Partial<T>;
1838
- type KeysOfUnion<T> = T extends T ? keyof T : never;
1839
- type Exact<P, I extends P> = P extends Builtin ? P : P & {
1840
- [K in keyof P]: Exact<P[K], I[K]>;
1841
- } & {
1842
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
1843
- };
1844
1990
  interface MessageFns<T> {
1845
1991
  encode(message: T, writer?: BinaryWriter): BinaryWriter;
1846
1992
  decode(input: BinaryReader | Uint8Array, length?: number): T;
1847
1993
  fromJSON(object: any): T;
1848
1994
  toJSON(message: T): unknown;
1849
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
1850
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
1995
+ create(base?: DeepPartial<T>): T;
1996
+ fromPartial(object: DeepPartial<T>): T;
1851
1997
  }
1852
1998
  export {};