@blueyerobotics/protocol-definitions 3.2.0-0f78a956 → 3.2.0-153cd3ce

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.
@@ -424,12 +424,18 @@ 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
+ };
427
433
  interface MessageFns<T> {
428
434
  encode(message: T, writer?: BinaryWriter): BinaryWriter;
429
435
  decode(input: BinaryReader | Uint8Array, length?: number): T;
430
436
  fromJSON(object: any): T;
431
437
  toJSON(message: T): unknown;
432
- create(base?: DeepPartial<T>): T;
433
- fromPartial(object: DeepPartial<T>): T;
438
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
439
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
434
440
  }
435
441
  export {};
package/dist/control.d.ts CHANGED
@@ -205,16 +205,6 @@ 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
- }
218
208
  export declare const MotionInputCtrl: MessageFns<MotionInputCtrl>;
219
209
  export declare const TiltVelocityCtrl: MessageFns<TiltVelocityCtrl>;
220
210
  export declare const LightsCtrl: MessageFns<LightsCtrl>;
@@ -257,17 +247,22 @@ export declare const ActivateMultibeamCtrl: MessageFns<ActivateMultibeamCtrl>;
257
247
  export declare const DeactivateMultibeamCtrl: MessageFns<DeactivateMultibeamCtrl>;
258
248
  export declare const StartDiveCtrl: MessageFns<StartDiveCtrl>;
259
249
  export declare const EndDiveCtrl: MessageFns<EndDiveCtrl>;
260
- export declare const FormatRemovableStorageDeviceCtrl: MessageFns<FormatRemovableStorageDeviceCtrl>;
261
250
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
262
251
  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 {} ? {
263
252
  [K in keyof T]?: DeepPartial<T[K]>;
264
253
  } : 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
+ };
265
260
  interface MessageFns<T> {
266
261
  encode(message: T, writer?: BinaryWriter): BinaryWriter;
267
262
  decode(input: BinaryReader | Uint8Array, length?: number): T;
268
263
  fromJSON(object: any): T;
269
264
  toJSON(message: T): unknown;
270
- create(base?: DeepPartial<T>): T;
271
- fromPartial(object: DeepPartial<T>): T;
265
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
266
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
272
267
  }
273
268
  export {};
package/dist/control.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // protoc v3.21.12
6
6
  // source: control.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
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;
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;
9
9
  /* eslint-disable */
10
10
  const wire_1 = require("@bufbuild/protobuf/wire");
11
11
  const aquatroll_1 = require("./aquatroll");
@@ -2041,43 +2041,6 @@ 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
- };
2081
2044
  const gt = (() => {
2082
2045
  if (typeof globalThis !== "undefined") {
2083
2046
  return globalThis;
@@ -121,12 +121,18 @@ 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
+ };
124
130
  interface MessageFns<T> {
125
131
  encode(message: T, writer?: BinaryWriter): BinaryWriter;
126
132
  decode(input: BinaryReader | Uint8Array, length?: number): T;
127
133
  fromJSON(object: any): T;
128
134
  toJSON(message: T): unknown;
129
- create(base?: DeepPartial<T>): T;
130
- fromPartial(object: DeepPartial<T>): T;
135
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
136
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
131
137
  }
132
138
  export {};
@@ -81,12 +81,18 @@ 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
+ };
84
90
  interface MessageFns<T> {
85
91
  encode(message: T, writer?: BinaryWriter): BinaryWriter;
86
92
  decode(input: BinaryReader | Uint8Array, length?: number): T;
87
93
  fromJSON(object: any): T;
88
94
  toJSON(message: T): unknown;
89
- create(base?: DeepPartial<T>): T;
90
- fromPartial(object: DeepPartial<T>): T;
95
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
96
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
91
97
  }
92
98
  export {};
@@ -110,12 +110,18 @@ 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
+ };
113
119
  interface MessageFns<T> {
114
120
  encode(message: T, writer?: BinaryWriter): BinaryWriter;
115
121
  decode(input: BinaryReader | Uint8Array, length?: number): T;
116
122
  fromJSON(object: any): T;
117
123
  toJSON(message: T): unknown;
118
- create(base?: DeepPartial<T>): T;
119
- fromPartial(object: DeepPartial<T>): T;
124
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
125
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
120
126
  }
121
127
  export {};
@@ -491,46 +491,6 @@ export interface BinlogRecord {
491
491
  /** Posix CLOCK_MONOTONIC timestamp. */
492
492
  clockMonotonic: Date | undefined;
493
493
  }
494
- /**
495
- * Log entry
496
- *
497
- * Used to store ROS log entries in the bez file
498
- */
499
- export interface LogEntry {
500
- /** Timestamp of the log entry. */
501
- timestamp: Date | undefined;
502
- /** Name of the process that generated the log entry. */
503
- processName: string;
504
- /** Process ID of the log entry. */
505
- processId: number;
506
- /** Thread ID of the log entry. */
507
- threadId: number;
508
- /** Source of the log entry (specific class or named logger). */
509
- source: string;
510
- /** Log level, info, warning, error, etc. */
511
- level: LogEntry_LogLevel;
512
- /** Log message. */
513
- message: string;
514
- }
515
- export declare enum LogEntry_LogLevel {
516
- /** LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
517
- LOG_LEVEL_UNSPECIFIED = 0,
518
- /** LOG_LEVEL_TRACE - Trace log level. */
519
- LOG_LEVEL_TRACE = 1,
520
- /** LOG_LEVEL_DEBUG - Debug log level. */
521
- LOG_LEVEL_DEBUG = 2,
522
- /** LOG_LEVEL_INFO - Info log level. */
523
- LOG_LEVEL_INFO = 3,
524
- /** LOG_LEVEL_WARNING - Warning log level. */
525
- LOG_LEVEL_WARNING = 4,
526
- /** LOG_LEVEL_ERROR - Error log level. */
527
- LOG_LEVEL_ERROR = 5,
528
- /** LOG_LEVEL_CRITICAL - Critical log level. */
529
- LOG_LEVEL_CRITICAL = 6,
530
- UNRECOGNIZED = -1
531
- }
532
- export declare function logEntry_LogLevelFromJSON(object: any): LogEntry_LogLevel;
533
- export declare function logEntry_LogLevelToJSON(object: LogEntry_LogLevel): string;
534
494
  /** If you use both values at the same time they cancel each other out. */
535
495
  export interface MotionInput {
536
496
  /** Forward (positive) and backwards (negative) movement. (-1..1). */
@@ -1183,61 +1143,6 @@ export interface StorageSpace {
1183
1143
  /** Available bytes of storage space (B). */
1184
1144
  freeSpace: number;
1185
1145
  }
1186
- /** Storage partition. */
1187
- export interface StoragePartition {
1188
- /** The amount of storage space on the device. */
1189
- storageSpace: StorageSpace | undefined;
1190
- /** File system type of the removable storage device. */
1191
- fileSystemType: string;
1192
- /** Partition device path */
1193
- devicePath: string;
1194
- /** Mount path of the partition. */
1195
- mountPath: string;
1196
- }
1197
- /** Removable storage device. */
1198
- export interface RemovableStorageDevice {
1199
- /** USB vendor name. */
1200
- vendorName: string;
1201
- /** Model name of the USB storage device. */
1202
- modelName: string;
1203
- /** Mount path of the storage device. */
1204
- devicePath: string;
1205
- /** Status of the storage device. */
1206
- status: RemovableStorageDevice_Status;
1207
- /** Any active error flags for the storage device. */
1208
- errorFlags: RemovableStorageErrorFlags | undefined;
1209
- /** List of partitions on the storage device. */
1210
- partitions: StoragePartition[];
1211
- }
1212
- /** Overall status of the storage device. */
1213
- export declare enum RemovableStorageDevice_Status {
1214
- /** STATUS_UNSPECIFIED - Unspecified. */
1215
- STATUS_UNSPECIFIED = 0,
1216
- /** STATUS_READY - The storage device is valid and ready for use. */
1217
- STATUS_READY = 1,
1218
- /** STATUS_FORMATTING - The storage device is being formatted */
1219
- STATUS_FORMATTING = 2,
1220
- /** STATUS_ERROR - The storage device is in an error state. */
1221
- STATUS_ERROR = 3,
1222
- UNRECOGNIZED = -1
1223
- }
1224
- export declare function removableStorageDevice_StatusFromJSON(object: any): RemovableStorageDevice_Status;
1225
- export declare function removableStorageDevice_StatusToJSON(object: RemovableStorageDevice_Status): string;
1226
- /** Error flags related to a removable storage device. */
1227
- export interface RemovableStorageErrorFlags {
1228
- /** Optional error message to give additional information from the drone to a client about active error flags. */
1229
- errorMessage: string;
1230
- /** Device is attached but no partitions are found. */
1231
- noPartitionsFound: boolean;
1232
- /** Multiple partitions are found. */
1233
- multiplePartitionsFound: boolean;
1234
- /** The wrong file system is found. */
1235
- wrongFileSystemFound: boolean;
1236
- /** The device is in read-only mode. */
1237
- deviceIsReadOnly: boolean;
1238
- /** Formatting of the device failed. */
1239
- formattingFailed: boolean;
1240
- }
1241
1146
  /** Compass calibration state. */
1242
1147
  export interface CalibrationState {
1243
1148
  /** Current calibration status. */
@@ -1260,7 +1165,7 @@ export interface CalibrationState {
1260
1165
  /**
1261
1166
  * Status of the compass calibration procedure.
1262
1167
  *
1263
- * When calibration is started, the status will indicate the active (up facing) axis.
1168
+ * When calibration is started, the status will indicate the active (upfacing) axis.
1264
1169
  */
1265
1170
  export declare enum CalibrationState_Status {
1266
1171
  /** STATUS_UNSPECIFIED - Unspecified status. */
@@ -1281,7 +1186,7 @@ export declare enum CalibrationState_Status {
1281
1186
  STATUS_CALIBRATING_Z_POSITIVE = 7,
1282
1187
  /** STATUS_CALIBRATING_Z_NEGATIVE - Compass is calibrating and the negative Z axis is active. */
1283
1188
  STATUS_CALIBRATING_Z_NEGATIVE = 8,
1284
- /** STATUS_CALIBRATING_THRUSTER - Compass is calibrating for thruster interference. */
1189
+ /** STATUS_CALIBRATING_THRUSTER - Compass is calibrating for thruster interferance. */
1285
1190
  STATUS_CALIBRATING_THRUSTER = 9,
1286
1191
  UNRECOGNIZED = -1
1287
1192
  }
@@ -1844,7 +1749,6 @@ export interface CPUInfo {
1844
1749
  guestportQueueLoad: number;
1845
1750
  }
1846
1751
  export declare const BinlogRecord: MessageFns<BinlogRecord>;
1847
- export declare const LogEntry: MessageFns<LogEntry>;
1848
1752
  export declare const MotionInput: MessageFns<MotionInput>;
1849
1753
  export declare const Lights: MessageFns<Lights>;
1850
1754
  export declare const Laser: MessageFns<Laser>;
@@ -1896,9 +1800,6 @@ export declare const ControllerHealth: MessageFns<ControllerHealth>;
1896
1800
  export declare const DiveTime: MessageFns<DiveTime>;
1897
1801
  export declare const RecordOn: MessageFns<RecordOn>;
1898
1802
  export declare const StorageSpace: MessageFns<StorageSpace>;
1899
- export declare const StoragePartition: MessageFns<StoragePartition>;
1900
- export declare const RemovableStorageDevice: MessageFns<RemovableStorageDevice>;
1901
- export declare const RemovableStorageErrorFlags: MessageFns<RemovableStorageErrorFlags>;
1902
1803
  export declare const CalibrationState: MessageFns<CalibrationState>;
1903
1804
  export declare const IperfStatus: MessageFns<IperfStatus>;
1904
1805
  export declare const NStreamers: MessageFns<NStreamers>;
@@ -1934,12 +1835,18 @@ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefi
1934
1835
  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 {} ? {
1935
1836
  [K in keyof T]?: DeepPartial<T[K]>;
1936
1837
  } : 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
+ };
1937
1844
  interface MessageFns<T> {
1938
1845
  encode(message: T, writer?: BinaryWriter): BinaryWriter;
1939
1846
  decode(input: BinaryReader | Uint8Array, length?: number): T;
1940
1847
  fromJSON(object: any): T;
1941
1848
  toJSON(message: T): unknown;
1942
- create(base?: DeepPartial<T>): T;
1943
- fromPartial(object: DeepPartial<T>): T;
1849
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
1850
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
1944
1851
  }
1945
1852
  export {};