@blueyerobotics/protocol-definitions 3.2.0-d3c78945 → 3.2.0-d7dd459b

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/dist/req_rep.d.ts CHANGED
@@ -171,6 +171,18 @@ export interface SetPubFrequencyRep {
171
171
  /** True if message name valid and frequency successfully updated. */
172
172
  success: boolean;
173
173
  }
174
+ /** Request to update the logging frequency */
175
+ export interface SetLogFrequencyReq {
176
+ /** Message name, f. ex. "AttitudeTel" */
177
+ messageType: string;
178
+ /** Logging frequency (max 100 Hz). */
179
+ frequency: number;
180
+ }
181
+ /** Response after updating logging frequency */
182
+ export interface SetLogFrequencyRep {
183
+ /** True if message name valid and frequency successfully updated. */
184
+ success: boolean;
185
+ }
174
186
  /** Request to get latest telemetry data */
175
187
  export interface GetTelemetryReq {
176
188
  /** Message name, f. ex. "AttitudeTel". */
@@ -227,6 +239,14 @@ export interface GetIperfStatusRep {
227
239
  /** If background iperf task is enabled or disabled. */
228
240
  enabled: boolean;
229
241
  }
242
+ /** Request to get the current log streaming status. */
243
+ export interface GetLogStreamingStatusReq {
244
+ }
245
+ /** Response with the current log streaming status. */
246
+ export interface GetLogStreamingStatusRep {
247
+ /** If log streaming is enabled or disabled. */
248
+ enabled: boolean;
249
+ }
230
250
  export declare const SetOverlayParametersReq: MessageFns<SetOverlayParametersReq>;
231
251
  export declare const SetOverlayParametersRep: MessageFns<SetOverlayParametersRep>;
232
252
  export declare const GetOverlayParametersReq: MessageFns<GetOverlayParametersReq>;
@@ -257,6 +277,8 @@ export declare const SetHeadingModeReq: MessageFns<SetHeadingModeReq>;
257
277
  export declare const SetHeadingModeRep: MessageFns<SetHeadingModeRep>;
258
278
  export declare const SetPubFrequencyReq: MessageFns<SetPubFrequencyReq>;
259
279
  export declare const SetPubFrequencyRep: MessageFns<SetPubFrequencyRep>;
280
+ export declare const SetLogFrequencyReq: MessageFns<SetLogFrequencyReq>;
281
+ export declare const SetLogFrequencyRep: MessageFns<SetLogFrequencyRep>;
260
282
  export declare const GetTelemetryReq: MessageFns<GetTelemetryReq>;
261
283
  export declare const GetTelemetryRep: MessageFns<GetTelemetryRep>;
262
284
  export declare const SetPersistentStorageSettingsReq: MessageFns<SetPersistentStorageSettingsReq>;
@@ -269,6 +291,8 @@ export declare const SetIperfStatusReq: MessageFns<SetIperfStatusReq>;
269
291
  export declare const SetIperfStatusRep: MessageFns<SetIperfStatusRep>;
270
292
  export declare const GetIperfStatusReq: MessageFns<GetIperfStatusReq>;
271
293
  export declare const GetIperfStatusRep: MessageFns<GetIperfStatusRep>;
294
+ export declare const GetLogStreamingStatusReq: MessageFns<GetLogStreamingStatusReq>;
295
+ export declare const GetLogStreamingStatusRep: MessageFns<GetLogStreamingStatusRep>;
272
296
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
273
297
  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 {} ? {
274
298
  [K in keyof T]?: DeepPartial<T[K]>;
package/dist/req_rep.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // protoc v3.21.12
6
6
  // source: req_rep.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.GetIperfStatusRep = exports.GetIperfStatusReq = exports.SetIperfStatusRep = exports.SetIperfStatusReq = exports.FlashEscSettingsRep = exports.FlashEscSettingsReq = exports.GetPersistentStorageSettingsRep = exports.GetPersistentStorageSettingsReq = exports.SetPersistentStorageSettingsRep = exports.SetPersistentStorageSettingsReq = exports.GetTelemetryRep = exports.GetTelemetryReq = exports.SetPubFrequencyRep = exports.SetPubFrequencyReq = exports.SetHeadingModeRep = exports.SetHeadingModeReq = exports.SetInstructionUpdateRep = exports.SetInstructionUpdateReq = exports.GetMissionRep = exports.GetMissionReq = exports.SetMissionRep = exports.SetMissionReq = exports.GetBatteryRep = exports.GetBatteryReq = exports.DisconnectClientRep = exports.DisconnectClientReq = exports.ConnectClientRep = exports.ConnectClientReq = exports.SetThicknessGaugeParametersRep = exports.SetThicknessGaugeParametersReq = exports.PingRep = exports.PingReq = exports.SyncTimeRep = exports.SyncTimeReq = exports.GetCameraParametersRep = exports.GetCameraParametersReq = exports.SetCameraParametersRep = exports.SetCameraParametersReq = exports.GetOverlayParametersRep = exports.GetOverlayParametersReq = exports.SetOverlayParametersRep = exports.SetOverlayParametersReq = void 0;
8
+ exports.GetLogStreamingStatusRep = exports.GetLogStreamingStatusReq = exports.GetIperfStatusRep = exports.GetIperfStatusReq = exports.SetIperfStatusRep = exports.SetIperfStatusReq = exports.FlashEscSettingsRep = exports.FlashEscSettingsReq = exports.GetPersistentStorageSettingsRep = exports.GetPersistentStorageSettingsReq = exports.SetPersistentStorageSettingsRep = exports.SetPersistentStorageSettingsReq = exports.GetTelemetryRep = exports.GetTelemetryReq = exports.SetLogFrequencyRep = exports.SetLogFrequencyReq = exports.SetPubFrequencyRep = exports.SetPubFrequencyReq = exports.SetHeadingModeRep = exports.SetHeadingModeReq = exports.SetInstructionUpdateRep = exports.SetInstructionUpdateReq = exports.GetMissionRep = exports.GetMissionReq = exports.SetMissionRep = exports.SetMissionReq = exports.GetBatteryRep = exports.GetBatteryReq = exports.DisconnectClientRep = exports.DisconnectClientReq = exports.ConnectClientRep = exports.ConnectClientReq = exports.SetThicknessGaugeParametersRep = exports.SetThicknessGaugeParametersReq = exports.PingRep = exports.PingReq = exports.SyncTimeRep = exports.SyncTimeReq = exports.GetCameraParametersRep = exports.GetCameraParametersReq = exports.SetCameraParametersRep = exports.SetCameraParametersReq = exports.GetOverlayParametersRep = exports.GetOverlayParametersReq = exports.SetOverlayParametersRep = exports.SetOverlayParametersReq = void 0;
9
9
  /* eslint-disable */
10
10
  const wire_1 = require("@bufbuild/protobuf/wire");
11
11
  const any_1 = require("./google/protobuf/any");
@@ -1489,6 +1489,125 @@ exports.SetPubFrequencyRep = {
1489
1489
  return message;
1490
1490
  },
1491
1491
  };
1492
+ function createBaseSetLogFrequencyReq() {
1493
+ return { messageType: "", frequency: 0 };
1494
+ }
1495
+ exports.SetLogFrequencyReq = {
1496
+ encode(message, writer = new wire_1.BinaryWriter()) {
1497
+ if (message.messageType !== "") {
1498
+ writer.uint32(10).string(message.messageType);
1499
+ }
1500
+ if (message.frequency !== 0) {
1501
+ writer.uint32(21).float(message.frequency);
1502
+ }
1503
+ return writer;
1504
+ },
1505
+ decode(input, length) {
1506
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1507
+ const end = length === undefined ? reader.len : reader.pos + length;
1508
+ const message = createBaseSetLogFrequencyReq();
1509
+ while (reader.pos < end) {
1510
+ const tag = reader.uint32();
1511
+ switch (tag >>> 3) {
1512
+ case 1: {
1513
+ if (tag !== 10) {
1514
+ break;
1515
+ }
1516
+ message.messageType = reader.string();
1517
+ continue;
1518
+ }
1519
+ case 2: {
1520
+ if (tag !== 21) {
1521
+ break;
1522
+ }
1523
+ message.frequency = reader.float();
1524
+ continue;
1525
+ }
1526
+ }
1527
+ if ((tag & 7) === 4 || tag === 0) {
1528
+ break;
1529
+ }
1530
+ reader.skip(tag & 7);
1531
+ }
1532
+ return message;
1533
+ },
1534
+ fromJSON(object) {
1535
+ return {
1536
+ messageType: isSet(object.messageType) ? gt.String(object.messageType) : "",
1537
+ frequency: isSet(object.frequency) ? gt.Number(object.frequency) : 0,
1538
+ };
1539
+ },
1540
+ toJSON(message) {
1541
+ const obj = {};
1542
+ if (message.messageType !== "") {
1543
+ obj.messageType = message.messageType;
1544
+ }
1545
+ if (message.frequency !== 0) {
1546
+ obj.frequency = message.frequency;
1547
+ }
1548
+ return obj;
1549
+ },
1550
+ create(base) {
1551
+ return exports.SetLogFrequencyReq.fromPartial(base ?? {});
1552
+ },
1553
+ fromPartial(object) {
1554
+ const message = createBaseSetLogFrequencyReq();
1555
+ message.messageType = object.messageType ?? "";
1556
+ message.frequency = object.frequency ?? 0;
1557
+ return message;
1558
+ },
1559
+ };
1560
+ function createBaseSetLogFrequencyRep() {
1561
+ return { success: false };
1562
+ }
1563
+ exports.SetLogFrequencyRep = {
1564
+ encode(message, writer = new wire_1.BinaryWriter()) {
1565
+ if (message.success !== false) {
1566
+ writer.uint32(8).bool(message.success);
1567
+ }
1568
+ return writer;
1569
+ },
1570
+ decode(input, length) {
1571
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1572
+ const end = length === undefined ? reader.len : reader.pos + length;
1573
+ const message = createBaseSetLogFrequencyRep();
1574
+ while (reader.pos < end) {
1575
+ const tag = reader.uint32();
1576
+ switch (tag >>> 3) {
1577
+ case 1: {
1578
+ if (tag !== 8) {
1579
+ break;
1580
+ }
1581
+ message.success = reader.bool();
1582
+ continue;
1583
+ }
1584
+ }
1585
+ if ((tag & 7) === 4 || tag === 0) {
1586
+ break;
1587
+ }
1588
+ reader.skip(tag & 7);
1589
+ }
1590
+ return message;
1591
+ },
1592
+ fromJSON(object) {
1593
+ return { success: isSet(object.success) ? gt.Boolean(object.success) : false };
1594
+ },
1595
+ toJSON(message) {
1596
+ const obj = {};
1597
+ if (message.success !== false) {
1598
+ obj.success = message.success;
1599
+ }
1600
+ return obj;
1601
+ },
1602
+ create(base) {
1603
+ return exports.SetLogFrequencyRep.fromPartial(base ?? {});
1604
+ },
1605
+ fromPartial(object) {
1606
+ const message = createBaseSetLogFrequencyRep();
1607
+ message.success = object.success ?? false;
1608
+ return message;
1609
+ },
1610
+ };
1492
1611
  function createBaseGetTelemetryReq() {
1493
1612
  return { messageType: "" };
1494
1613
  }
@@ -2089,6 +2208,94 @@ exports.GetIperfStatusRep = {
2089
2208
  return message;
2090
2209
  },
2091
2210
  };
2211
+ function createBaseGetLogStreamingStatusReq() {
2212
+ return {};
2213
+ }
2214
+ exports.GetLogStreamingStatusReq = {
2215
+ encode(_, writer = new wire_1.BinaryWriter()) {
2216
+ return writer;
2217
+ },
2218
+ decode(input, length) {
2219
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2220
+ const end = length === undefined ? reader.len : reader.pos + length;
2221
+ const message = createBaseGetLogStreamingStatusReq();
2222
+ while (reader.pos < end) {
2223
+ const tag = reader.uint32();
2224
+ switch (tag >>> 3) {
2225
+ }
2226
+ if ((tag & 7) === 4 || tag === 0) {
2227
+ break;
2228
+ }
2229
+ reader.skip(tag & 7);
2230
+ }
2231
+ return message;
2232
+ },
2233
+ fromJSON(_) {
2234
+ return {};
2235
+ },
2236
+ toJSON(_) {
2237
+ const obj = {};
2238
+ return obj;
2239
+ },
2240
+ create(base) {
2241
+ return exports.GetLogStreamingStatusReq.fromPartial(base ?? {});
2242
+ },
2243
+ fromPartial(_) {
2244
+ const message = createBaseGetLogStreamingStatusReq();
2245
+ return message;
2246
+ },
2247
+ };
2248
+ function createBaseGetLogStreamingStatusRep() {
2249
+ return { enabled: false };
2250
+ }
2251
+ exports.GetLogStreamingStatusRep = {
2252
+ encode(message, writer = new wire_1.BinaryWriter()) {
2253
+ if (message.enabled !== false) {
2254
+ writer.uint32(8).bool(message.enabled);
2255
+ }
2256
+ return writer;
2257
+ },
2258
+ decode(input, length) {
2259
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2260
+ const end = length === undefined ? reader.len : reader.pos + length;
2261
+ const message = createBaseGetLogStreamingStatusRep();
2262
+ while (reader.pos < end) {
2263
+ const tag = reader.uint32();
2264
+ switch (tag >>> 3) {
2265
+ case 1: {
2266
+ if (tag !== 8) {
2267
+ break;
2268
+ }
2269
+ message.enabled = reader.bool();
2270
+ continue;
2271
+ }
2272
+ }
2273
+ if ((tag & 7) === 4 || tag === 0) {
2274
+ break;
2275
+ }
2276
+ reader.skip(tag & 7);
2277
+ }
2278
+ return message;
2279
+ },
2280
+ fromJSON(object) {
2281
+ return { enabled: isSet(object.enabled) ? gt.Boolean(object.enabled) : false };
2282
+ },
2283
+ toJSON(message) {
2284
+ const obj = {};
2285
+ if (message.enabled !== false) {
2286
+ obj.enabled = message.enabled;
2287
+ }
2288
+ return obj;
2289
+ },
2290
+ create(base) {
2291
+ return exports.GetLogStreamingStatusRep.fromPartial(base ?? {});
2292
+ },
2293
+ fromPartial(object) {
2294
+ const message = createBaseGetLogStreamingStatusRep();
2295
+ message.enabled = object.enabled ?? false;
2296
+ return message;
2297
+ },
2298
+ };
2092
2299
  const gt = (() => {
2093
2300
  if (typeof globalThis !== "undefined") {
2094
2301
  return globalThis;
@@ -1,6 +1,6 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  import { AquaTrollProbeMetadata, AquaTrollSensorMetadataArray, AquaTrollSensorParametersArray } from "./aquatroll";
3
- import { Altitude, Attitude, Battery, BatteryBQ40Z50, CalibrationState, CameraPanTiltZoom, CanisterHumidity, CanisterTemperature, ConnectedClient, ControlForce, ControllerHealth, ControlMode, CpProbe, CPUInfo, CPUTemperature, Depth, DiveTime, DroneInfo, DvlVelocity, ErrorFlags, FilterMessage, ForwardDistance, GenericServo, GuestPortCurrent, Imu, IperfStatus, KernelLogEntry, Laser, LatLongPosition, Lights, LogEntry, MagneticDeclination, MedusaSpectrometerData, MultibeamConfig, MultibeamDiscovery, MultibeamPing, MultibeamServo, Notification, NStreamers, ObjectDetections, PositionEstimate, RecordState, Reference, RemovableStorageDevice, StorageSpace, SurfaceUnitBatteryInfo, SurfaceUnitVersionInfo, SystemPerformanceInfo, SystemTime, ThicknessGauge, TiltAngle, TiltStabilizationState, TimeLapseState, WaterTemperature } from "./message_formats";
3
+ import { Altitude, Attitude, Battery, BatteryBQ40Z50, CalibrationState, CameraPanTiltZoom, CanisterHumidity, CanisterTemperature, ConnectedClient, ControlForce, ControllerHealth, ControlMode, CpProbe, CPUInfo, CPUTemperature, Depth, DiveTime, DroneInfo, DvlVelocity, ErrorFlags, FilterMessage, ForwardDistance, GenericServo, GuestPortCurrent, Imu, IperfStatus, KernelLogEntry, Laser, LaserDetection, LatLongPosition, Lights, LogEntry, MagneticDeclination, MedusaSpectrometerData, ModelDetections, MultibeamConfig, MultibeamDiscovery, MultibeamPing, MultibeamServo, Notification, NStreamers, PositionEstimate, RecordState, Reference, RemovableStorageDevice, SotState, StorageSpace, SurfaceUnitBatteryInfo, SurfaceUnitVersionInfo, SystemPerformanceInfo, SystemTime, ThicknessGauge, TiltAngle, TiltStabilizationState, TimeLapseState, WaterTemperature } from "./message_formats";
4
4
  import { MissionStatus, ReferenceAutoPilot } from "./mission_planning";
5
5
  /**
6
6
  * Telemetry
@@ -86,6 +86,8 @@ export interface GuestPortLightsTel {
86
86
  export interface LaserTel {
87
87
  /** Laser status. */
88
88
  laser: Laser | undefined;
89
+ /** Detection of the laser by the computer vision pipeline. Only */
90
+ laserDetection: LaserDetection | undefined;
89
91
  }
90
92
  /** Pilot position (originating from device GPS) for logging. */
91
93
  export interface PilotGPSPositionTel {
@@ -102,18 +104,32 @@ export interface TimeLapseStateTel {
102
104
  /** Time-lapse state. */
103
105
  timeLapseState: TimeLapseState | undefined;
104
106
  }
105
- /** Receive essential information about the battery status. */
107
+ /**
108
+ * Receive essential information about the battery status.
109
+ *
110
+ * On models with two batteries running in parallel (e.g. the X7), second_battery
111
+ * holds the essential information for the second battery. When only a single
112
+ * battery is used, second_battery is undefined (not set).
113
+ */
106
114
  export interface BatteryTel {
107
115
  /** Essential battery information. */
108
116
  battery: Battery | undefined;
117
+ /** Second battery, when present. Not set if only one battery is used. */
118
+ secondBattery: Battery | undefined;
109
119
  }
110
120
  /**
111
121
  * Receive detailed information about a battery using the
112
122
  * BQ40Z50 battery management system.
123
+ *
124
+ * On models with two batteries running in parallel (e.g. the X7), second_battery
125
+ * holds the detailed information for the second battery. When only a single
126
+ * battery is used, second_battery is undefined (not set).
113
127
  */
114
128
  export interface BatteryBQ40Z50Tel {
115
129
  /** Detailed battery information. */
116
130
  battery: BatteryBQ40Z50 | undefined;
131
+ /** Second battery, when present. Not set if only one battery is used. */
132
+ secondBattery: BatteryBQ40Z50 | undefined;
117
133
  }
118
134
  /** Receive the dive time of the drone. */
119
135
  export interface DiveTimeTel {
@@ -329,10 +345,10 @@ export interface LogEntryTel {
329
345
  /** Kernel log entry. */
330
346
  kernel?: KernelLogEntry | undefined;
331
347
  }
332
- /** Object detections from a computer vision model. */
348
+ /** Object detections from all active computer vision models. */
333
349
  export interface ObjectDetectionsTel {
334
- /** List of object detections from a video frame. */
335
- objectDetections: ObjectDetections | undefined;
350
+ /** Per-model detection results. */
351
+ modelDetections: ModelDetections[];
336
352
  }
337
353
  /**
338
354
  * Turbidity filter settings telemetry message.
@@ -353,6 +369,16 @@ export interface CameraPanTiltZoomTel {
353
369
  /** Current pan, tilt, and zoom state. */
354
370
  cameraPanTiltZoom: CameraPanTiltZoom | undefined;
355
371
  }
372
+ /**
373
+ * Single-object tracking (SOT) state telemetry from the computer vision pipeline.
374
+ *
375
+ * Reports the current tracking state and the tracked bounding box when active.
376
+ * Published periodically while the SOT pipeline is running.
377
+ */
378
+ export interface SotStateTel {
379
+ /** Current SOT state and bounding box. */
380
+ sotState: SotState | undefined;
381
+ }
356
382
  export declare const AttitudeTel: MessageFns<AttitudeTel>;
357
383
  export declare const MagneticDeclinationTel: MessageFns<MagneticDeclinationTel>;
358
384
  export declare const AltitudeTel: MessageFns<AltitudeTel>;
@@ -416,6 +442,7 @@ export declare const LogEntryTel: MessageFns<LogEntryTel>;
416
442
  export declare const ObjectDetectionsTel: MessageFns<ObjectDetectionsTel>;
417
443
  export declare const TurbidityFilterTel: MessageFns<TurbidityFilterTel>;
418
444
  export declare const CameraPanTiltZoomTel: MessageFns<CameraPanTiltZoomTel>;
445
+ export declare const SotStateTel: MessageFns<SotStateTel>;
419
446
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
420
447
  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 {} ? {
421
448
  [K in keyof T]?: DeepPartial<T[K]>;
package/dist/telemetry.js CHANGED
@@ -6,7 +6,7 @@
6
6
  // source: telemetry.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.Imu2Tel = exports.Imu1Tel = exports.CalibratedImuTel = exports.GuestPortCurrentTel = exports.MultibeamServoTel = exports.GenericServoTel = exports.ConnectedClientsTel = exports.AquaTrollSensorParametersTel = exports.AquaTrollSensorMetadataTel = exports.AquaTrollProbeMetadataTel = exports.CpProbeTel = exports.ThicknessGaugeTel = exports.ControlModeTel = exports.ErrorFlagsTel = exports.DroneInfoTel = exports.TiltAngleTel = exports.NStreamersTel = exports.IperfTel = exports.TiltStabilizationTel = exports.CalibrationStateTel = exports.DataStorageSpaceTel = exports.RemovableStorageTel = exports.VideoStorageSpaceTel = exports.CanisterBottomHumidityTel = exports.CanisterBottomTemperatureTel = exports.CPUTemperatureTel = exports.WaterTemperatureTel = exports.DroneTimeTel = exports.DiveTimeTel = exports.BatteryBQ40Z50Tel = exports.BatteryTel = exports.TimeLapseStateTel = exports.RecordStateTel = exports.PilotGPSPositionTel = exports.LaserTel = exports.GuestPortLightsTel = exports.LightsTel = exports.ControllerHealthTel = exports.ControlForceTel = exports.NotificationTel = exports.MissionStatusTel = exports.ReferenceAutoPilotTel = exports.ReferenceTel = exports.DepthTel = exports.PositionEstimateTel = exports.DvlVelocityTel = exports.ForwardDistanceTel = exports.AltitudeTel = exports.MagneticDeclinationTel = exports.AttitudeTel = void 0;
9
- exports.CameraPanTiltZoomTel = exports.TurbidityFilterTel = exports.ObjectDetectionsTel = exports.LogEntryTel = exports.SurfaceUnitTel = exports.SystemPerformanceInfoTel = exports.CPUInfoTel = exports.MultibeamDiscoveryTel = exports.MultibeamConfigTel = exports.MultibeamPingTel = exports.MedusaSpectrometerDataTel = exports.CalibratedImuHpTel = exports.ImuHpTel = void 0;
9
+ exports.SotStateTel = exports.CameraPanTiltZoomTel = exports.TurbidityFilterTel = exports.ObjectDetectionsTel = exports.LogEntryTel = exports.SurfaceUnitTel = exports.SystemPerformanceInfoTel = exports.CPUInfoTel = exports.MultibeamDiscoveryTel = exports.MultibeamConfigTel = exports.MultibeamPingTel = exports.MedusaSpectrometerDataTel = exports.CalibratedImuHpTel = exports.ImuHpTel = void 0;
10
10
  /* eslint-disable */
11
11
  const wire_1 = require("@bufbuild/protobuf/wire");
12
12
  const aquatroll_1 = require("./aquatroll");
@@ -820,13 +820,16 @@ exports.GuestPortLightsTel = {
820
820
  },
821
821
  };
822
822
  function createBaseLaserTel() {
823
- return { laser: undefined };
823
+ return { laser: undefined, laserDetection: undefined };
824
824
  }
825
825
  exports.LaserTel = {
826
826
  encode(message, writer = new wire_1.BinaryWriter()) {
827
827
  if (message.laser !== undefined) {
828
828
  message_formats_1.Laser.encode(message.laser, writer.uint32(10).fork()).join();
829
829
  }
830
+ if (message.laserDetection !== undefined) {
831
+ message_formats_1.LaserDetection.encode(message.laserDetection, writer.uint32(18).fork()).join();
832
+ }
830
833
  return writer;
831
834
  },
832
835
  decode(input, length) {
@@ -843,6 +846,13 @@ exports.LaserTel = {
843
846
  message.laser = message_formats_1.Laser.decode(reader, reader.uint32());
844
847
  continue;
845
848
  }
849
+ case 2: {
850
+ if (tag !== 18) {
851
+ break;
852
+ }
853
+ message.laserDetection = message_formats_1.LaserDetection.decode(reader, reader.uint32());
854
+ continue;
855
+ }
846
856
  }
847
857
  if ((tag & 7) === 4 || tag === 0) {
848
858
  break;
@@ -852,13 +862,19 @@ exports.LaserTel = {
852
862
  return message;
853
863
  },
854
864
  fromJSON(object) {
855
- return { laser: isSet(object.laser) ? message_formats_1.Laser.fromJSON(object.laser) : undefined };
865
+ return {
866
+ laser: isSet(object.laser) ? message_formats_1.Laser.fromJSON(object.laser) : undefined,
867
+ laserDetection: isSet(object.laserDetection) ? message_formats_1.LaserDetection.fromJSON(object.laserDetection) : undefined,
868
+ };
856
869
  },
857
870
  toJSON(message) {
858
871
  const obj = {};
859
872
  if (message.laser !== undefined) {
860
873
  obj.laser = message_formats_1.Laser.toJSON(message.laser);
861
874
  }
875
+ if (message.laserDetection !== undefined) {
876
+ obj.laserDetection = message_formats_1.LaserDetection.toJSON(message.laserDetection);
877
+ }
862
878
  return obj;
863
879
  },
864
880
  create(base) {
@@ -867,6 +883,9 @@ exports.LaserTel = {
867
883
  fromPartial(object) {
868
884
  const message = createBaseLaserTel();
869
885
  message.laser = (object.laser !== undefined && object.laser !== null) ? message_formats_1.Laser.fromPartial(object.laser) : undefined;
886
+ message.laserDetection = (object.laserDetection !== undefined && object.laserDetection !== null)
887
+ ? message_formats_1.LaserDetection.fromPartial(object.laserDetection)
888
+ : undefined;
870
889
  return message;
871
890
  },
872
891
  };
@@ -1032,13 +1051,16 @@ exports.TimeLapseStateTel = {
1032
1051
  },
1033
1052
  };
1034
1053
  function createBaseBatteryTel() {
1035
- return { battery: undefined };
1054
+ return { battery: undefined, secondBattery: undefined };
1036
1055
  }
1037
1056
  exports.BatteryTel = {
1038
1057
  encode(message, writer = new wire_1.BinaryWriter()) {
1039
1058
  if (message.battery !== undefined) {
1040
1059
  message_formats_1.Battery.encode(message.battery, writer.uint32(10).fork()).join();
1041
1060
  }
1061
+ if (message.secondBattery !== undefined) {
1062
+ message_formats_1.Battery.encode(message.secondBattery, writer.uint32(18).fork()).join();
1063
+ }
1042
1064
  return writer;
1043
1065
  },
1044
1066
  decode(input, length) {
@@ -1055,6 +1077,13 @@ exports.BatteryTel = {
1055
1077
  message.battery = message_formats_1.Battery.decode(reader, reader.uint32());
1056
1078
  continue;
1057
1079
  }
1080
+ case 2: {
1081
+ if (tag !== 18) {
1082
+ break;
1083
+ }
1084
+ message.secondBattery = message_formats_1.Battery.decode(reader, reader.uint32());
1085
+ continue;
1086
+ }
1058
1087
  }
1059
1088
  if ((tag & 7) === 4 || tag === 0) {
1060
1089
  break;
@@ -1064,13 +1093,19 @@ exports.BatteryTel = {
1064
1093
  return message;
1065
1094
  },
1066
1095
  fromJSON(object) {
1067
- return { battery: isSet(object.battery) ? message_formats_1.Battery.fromJSON(object.battery) : undefined };
1096
+ return {
1097
+ battery: isSet(object.battery) ? message_formats_1.Battery.fromJSON(object.battery) : undefined,
1098
+ secondBattery: isSet(object.secondBattery) ? message_formats_1.Battery.fromJSON(object.secondBattery) : undefined,
1099
+ };
1068
1100
  },
1069
1101
  toJSON(message) {
1070
1102
  const obj = {};
1071
1103
  if (message.battery !== undefined) {
1072
1104
  obj.battery = message_formats_1.Battery.toJSON(message.battery);
1073
1105
  }
1106
+ if (message.secondBattery !== undefined) {
1107
+ obj.secondBattery = message_formats_1.Battery.toJSON(message.secondBattery);
1108
+ }
1074
1109
  return obj;
1075
1110
  },
1076
1111
  create(base) {
@@ -1081,17 +1116,23 @@ exports.BatteryTel = {
1081
1116
  message.battery = (object.battery !== undefined && object.battery !== null)
1082
1117
  ? message_formats_1.Battery.fromPartial(object.battery)
1083
1118
  : undefined;
1119
+ message.secondBattery = (object.secondBattery !== undefined && object.secondBattery !== null)
1120
+ ? message_formats_1.Battery.fromPartial(object.secondBattery)
1121
+ : undefined;
1084
1122
  return message;
1085
1123
  },
1086
1124
  };
1087
1125
  function createBaseBatteryBQ40Z50Tel() {
1088
- return { battery: undefined };
1126
+ return { battery: undefined, secondBattery: undefined };
1089
1127
  }
1090
1128
  exports.BatteryBQ40Z50Tel = {
1091
1129
  encode(message, writer = new wire_1.BinaryWriter()) {
1092
1130
  if (message.battery !== undefined) {
1093
1131
  message_formats_1.BatteryBQ40Z50.encode(message.battery, writer.uint32(10).fork()).join();
1094
1132
  }
1133
+ if (message.secondBattery !== undefined) {
1134
+ message_formats_1.BatteryBQ40Z50.encode(message.secondBattery, writer.uint32(18).fork()).join();
1135
+ }
1095
1136
  return writer;
1096
1137
  },
1097
1138
  decode(input, length) {
@@ -1108,6 +1149,13 @@ exports.BatteryBQ40Z50Tel = {
1108
1149
  message.battery = message_formats_1.BatteryBQ40Z50.decode(reader, reader.uint32());
1109
1150
  continue;
1110
1151
  }
1152
+ case 2: {
1153
+ if (tag !== 18) {
1154
+ break;
1155
+ }
1156
+ message.secondBattery = message_formats_1.BatteryBQ40Z50.decode(reader, reader.uint32());
1157
+ continue;
1158
+ }
1111
1159
  }
1112
1160
  if ((tag & 7) === 4 || tag === 0) {
1113
1161
  break;
@@ -1117,13 +1165,19 @@ exports.BatteryBQ40Z50Tel = {
1117
1165
  return message;
1118
1166
  },
1119
1167
  fromJSON(object) {
1120
- return { battery: isSet(object.battery) ? message_formats_1.BatteryBQ40Z50.fromJSON(object.battery) : undefined };
1168
+ return {
1169
+ battery: isSet(object.battery) ? message_formats_1.BatteryBQ40Z50.fromJSON(object.battery) : undefined,
1170
+ secondBattery: isSet(object.secondBattery) ? message_formats_1.BatteryBQ40Z50.fromJSON(object.secondBattery) : undefined,
1171
+ };
1121
1172
  },
1122
1173
  toJSON(message) {
1123
1174
  const obj = {};
1124
1175
  if (message.battery !== undefined) {
1125
1176
  obj.battery = message_formats_1.BatteryBQ40Z50.toJSON(message.battery);
1126
1177
  }
1178
+ if (message.secondBattery !== undefined) {
1179
+ obj.secondBattery = message_formats_1.BatteryBQ40Z50.toJSON(message.secondBattery);
1180
+ }
1127
1181
  return obj;
1128
1182
  },
1129
1183
  create(base) {
@@ -1134,6 +1188,9 @@ exports.BatteryBQ40Z50Tel = {
1134
1188
  message.battery = (object.battery !== undefined && object.battery !== null)
1135
1189
  ? message_formats_1.BatteryBQ40Z50.fromPartial(object.battery)
1136
1190
  : undefined;
1191
+ message.secondBattery = (object.secondBattery !== undefined && object.secondBattery !== null)
1192
+ ? message_formats_1.BatteryBQ40Z50.fromPartial(object.secondBattery)
1193
+ : undefined;
1137
1194
  return message;
1138
1195
  },
1139
1196
  };
@@ -3333,12 +3390,12 @@ exports.LogEntryTel = {
3333
3390
  },
3334
3391
  };
3335
3392
  function createBaseObjectDetectionsTel() {
3336
- return { objectDetections: undefined };
3393
+ return { modelDetections: [] };
3337
3394
  }
3338
3395
  exports.ObjectDetectionsTel = {
3339
3396
  encode(message, writer = new wire_1.BinaryWriter()) {
3340
- if (message.objectDetections !== undefined) {
3341
- message_formats_1.ObjectDetections.encode(message.objectDetections, writer.uint32(10).fork()).join();
3397
+ for (const v of message.modelDetections) {
3398
+ message_formats_1.ModelDetections.encode(v, writer.uint32(10).fork()).join();
3342
3399
  }
3343
3400
  return writer;
3344
3401
  },
@@ -3353,7 +3410,7 @@ exports.ObjectDetectionsTel = {
3353
3410
  if (tag !== 10) {
3354
3411
  break;
3355
3412
  }
3356
- message.objectDetections = message_formats_1.ObjectDetections.decode(reader, reader.uint32());
3413
+ message.modelDetections.push(message_formats_1.ModelDetections.decode(reader, reader.uint32()));
3357
3414
  continue;
3358
3415
  }
3359
3416
  }
@@ -3366,13 +3423,15 @@ exports.ObjectDetectionsTel = {
3366
3423
  },
3367
3424
  fromJSON(object) {
3368
3425
  return {
3369
- objectDetections: isSet(object.objectDetections) ? message_formats_1.ObjectDetections.fromJSON(object.objectDetections) : undefined,
3426
+ modelDetections: gt.Array.isArray(object?.modelDetections)
3427
+ ? object.modelDetections.map((e) => message_formats_1.ModelDetections.fromJSON(e))
3428
+ : [],
3370
3429
  };
3371
3430
  },
3372
3431
  toJSON(message) {
3373
3432
  const obj = {};
3374
- if (message.objectDetections !== undefined) {
3375
- obj.objectDetections = message_formats_1.ObjectDetections.toJSON(message.objectDetections);
3433
+ if (message.modelDetections?.length) {
3434
+ obj.modelDetections = message.modelDetections.map((e) => message_formats_1.ModelDetections.toJSON(e));
3376
3435
  }
3377
3436
  return obj;
3378
3437
  },
@@ -3381,9 +3440,7 @@ exports.ObjectDetectionsTel = {
3381
3440
  },
3382
3441
  fromPartial(object) {
3383
3442
  const message = createBaseObjectDetectionsTel();
3384
- message.objectDetections = (object.objectDetections !== undefined && object.objectDetections !== null)
3385
- ? message_formats_1.ObjectDetections.fromPartial(object.objectDetections)
3386
- : undefined;
3443
+ message.modelDetections = object.modelDetections?.map((e) => message_formats_1.ModelDetections.fromPartial(e)) || [];
3387
3444
  return message;
3388
3445
  },
3389
3446
  };
@@ -3499,6 +3556,59 @@ exports.CameraPanTiltZoomTel = {
3499
3556
  return message;
3500
3557
  },
3501
3558
  };
3559
+ function createBaseSotStateTel() {
3560
+ return { sotState: undefined };
3561
+ }
3562
+ exports.SotStateTel = {
3563
+ encode(message, writer = new wire_1.BinaryWriter()) {
3564
+ if (message.sotState !== undefined) {
3565
+ message_formats_1.SotState.encode(message.sotState, writer.uint32(10).fork()).join();
3566
+ }
3567
+ return writer;
3568
+ },
3569
+ decode(input, length) {
3570
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3571
+ const end = length === undefined ? reader.len : reader.pos + length;
3572
+ const message = createBaseSotStateTel();
3573
+ while (reader.pos < end) {
3574
+ const tag = reader.uint32();
3575
+ switch (tag >>> 3) {
3576
+ case 1: {
3577
+ if (tag !== 10) {
3578
+ break;
3579
+ }
3580
+ message.sotState = message_formats_1.SotState.decode(reader, reader.uint32());
3581
+ continue;
3582
+ }
3583
+ }
3584
+ if ((tag & 7) === 4 || tag === 0) {
3585
+ break;
3586
+ }
3587
+ reader.skip(tag & 7);
3588
+ }
3589
+ return message;
3590
+ },
3591
+ fromJSON(object) {
3592
+ return { sotState: isSet(object.sotState) ? message_formats_1.SotState.fromJSON(object.sotState) : undefined };
3593
+ },
3594
+ toJSON(message) {
3595
+ const obj = {};
3596
+ if (message.sotState !== undefined) {
3597
+ obj.sotState = message_formats_1.SotState.toJSON(message.sotState);
3598
+ }
3599
+ return obj;
3600
+ },
3601
+ create(base) {
3602
+ return exports.SotStateTel.fromPartial(base ?? {});
3603
+ },
3604
+ fromPartial(object) {
3605
+ const message = createBaseSotStateTel();
3606
+ message.sotState = (object.sotState !== undefined && object.sotState !== null)
3607
+ ? message_formats_1.SotState.fromPartial(object.sotState)
3608
+ : undefined;
3609
+ return message;
3610
+ },
3611
+ };
3502
3612
  const gt = (() => {
3503
3613
  if (typeof globalThis !== "undefined") {
3504
3614
  return globalThis;