@blueyerobotics/protocol-definitions 3.2.0-fcf0b829 → 3.3.0-053a9cb8

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
@@ -1,6 +1,6 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  import { Any } from "./google/protobuf/any";
3
- import { Battery, Camera, CameraParameters, ClientInfo, ConnectedClient, HeadingMode, OverlayParameters, PersistentStorageSettings, SystemTime } from "./message_formats";
3
+ import { Battery, Camera, CameraParameters, ClientInfo, ConnectedClient, CvModelInfo, HeadingMode, OverlayParameters, PersistentStorageSettings, SystemTime } from "./message_formats";
4
4
  import { Instruction, Mission } from "./mission_planning";
5
5
  /**
6
6
  * Request reply
@@ -122,10 +122,18 @@ export interface DisconnectClientRep {
122
122
  */
123
123
  export interface GetBatteryReq {
124
124
  }
125
- /** Response with essential battery information. */
125
+ /**
126
+ * Response with essential battery information.
127
+ *
128
+ * On models with two batteries running in parallel (e.g. the X7), second_battery
129
+ * holds the essential information for the second battery. When only a single
130
+ * battery is used, second_battery is undefined (not set).
131
+ */
126
132
  export interface GetBatteryRep {
127
133
  /** Essential battery information. */
128
134
  battery: Battery | undefined;
135
+ /** Second battery, when present. Not set if only one battery is used. */
136
+ secondBattery: Battery | undefined;
129
137
  }
130
138
  /** Issue a desired mission to the reference_generator. */
131
139
  export interface SetMissionReq {
@@ -171,6 +179,18 @@ export interface SetPubFrequencyRep {
171
179
  /** True if message name valid and frequency successfully updated. */
172
180
  success: boolean;
173
181
  }
182
+ /** Request to update the logging frequency */
183
+ export interface SetLogFrequencyReq {
184
+ /** Message name, f. ex. "AttitudeTel" */
185
+ messageType: string;
186
+ /** Logging frequency (max 100 Hz). */
187
+ frequency: number;
188
+ }
189
+ /** Response after updating logging frequency */
190
+ export interface SetLogFrequencyRep {
191
+ /** True if message name valid and frequency successfully updated. */
192
+ success: boolean;
193
+ }
174
194
  /** Request to get latest telemetry data */
175
195
  export interface GetTelemetryReq {
176
196
  /** Message name, f. ex. "AttitudeTel". */
@@ -235,6 +255,32 @@ export interface GetLogStreamingStatusRep {
235
255
  /** If log streaming is enabled or disabled. */
236
256
  enabled: boolean;
237
257
  }
258
+ /**
259
+ * Request to start or stop a computer vision model.
260
+ *
261
+ * The reply only acknowledges that the model exists and the request was
262
+ * accepted. The model starts or stops asynchronously; track progress through
263
+ * the state field of CvModelInfo in DroneInfoTel or GetCvModelsRep.
264
+ */
265
+ export interface SetCvModelStateReq {
266
+ /** Identifies the model, from CvModelInfo.package_id. */
267
+ packageId: string;
268
+ /** Desired run state: true to start the model, false to stop it. */
269
+ running: boolean;
270
+ }
271
+ /** Response after accepting a SetCvModelStateReq. */
272
+ export interface SetCvModelStateRep {
273
+ /** True if the model exists and the request was accepted for execution. */
274
+ accepted: boolean;
275
+ }
276
+ /** Request the list of computer vision models installed on the drone. */
277
+ export interface GetCvModelsReq {
278
+ }
279
+ /** Response with the list of installed computer vision models. */
280
+ export interface GetCvModelsRep {
281
+ /** All installed models, including models that are not running. */
282
+ cvModels: CvModelInfo[];
283
+ }
238
284
  export declare const SetOverlayParametersReq: MessageFns<SetOverlayParametersReq>;
239
285
  export declare const SetOverlayParametersRep: MessageFns<SetOverlayParametersRep>;
240
286
  export declare const GetOverlayParametersReq: MessageFns<GetOverlayParametersReq>;
@@ -265,6 +311,8 @@ export declare const SetHeadingModeReq: MessageFns<SetHeadingModeReq>;
265
311
  export declare const SetHeadingModeRep: MessageFns<SetHeadingModeRep>;
266
312
  export declare const SetPubFrequencyReq: MessageFns<SetPubFrequencyReq>;
267
313
  export declare const SetPubFrequencyRep: MessageFns<SetPubFrequencyRep>;
314
+ export declare const SetLogFrequencyReq: MessageFns<SetLogFrequencyReq>;
315
+ export declare const SetLogFrequencyRep: MessageFns<SetLogFrequencyRep>;
268
316
  export declare const GetTelemetryReq: MessageFns<GetTelemetryReq>;
269
317
  export declare const GetTelemetryRep: MessageFns<GetTelemetryRep>;
270
318
  export declare const SetPersistentStorageSettingsReq: MessageFns<SetPersistentStorageSettingsReq>;
@@ -279,6 +327,10 @@ export declare const GetIperfStatusReq: MessageFns<GetIperfStatusReq>;
279
327
  export declare const GetIperfStatusRep: MessageFns<GetIperfStatusRep>;
280
328
  export declare const GetLogStreamingStatusReq: MessageFns<GetLogStreamingStatusReq>;
281
329
  export declare const GetLogStreamingStatusRep: MessageFns<GetLogStreamingStatusRep>;
330
+ export declare const SetCvModelStateReq: MessageFns<SetCvModelStateReq>;
331
+ export declare const SetCvModelStateRep: MessageFns<SetCvModelStateRep>;
332
+ export declare const GetCvModelsReq: MessageFns<GetCvModelsReq>;
333
+ export declare const GetCvModelsRep: MessageFns<GetCvModelsRep>;
282
334
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
283
335
  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 {} ? {
284
336
  [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.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.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.GetCvModelsRep = exports.GetCvModelsReq = exports.SetCvModelStateRep = exports.SetCvModelStateReq = 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");
@@ -960,13 +960,16 @@ exports.GetBatteryReq = {
960
960
  },
961
961
  };
962
962
  function createBaseGetBatteryRep() {
963
- return { battery: undefined };
963
+ return { battery: undefined, secondBattery: undefined };
964
964
  }
965
965
  exports.GetBatteryRep = {
966
966
  encode(message, writer = new wire_1.BinaryWriter()) {
967
967
  if (message.battery !== undefined) {
968
968
  message_formats_1.Battery.encode(message.battery, writer.uint32(10).fork()).join();
969
969
  }
970
+ if (message.secondBattery !== undefined) {
971
+ message_formats_1.Battery.encode(message.secondBattery, writer.uint32(18).fork()).join();
972
+ }
970
973
  return writer;
971
974
  },
972
975
  decode(input, length) {
@@ -983,6 +986,13 @@ exports.GetBatteryRep = {
983
986
  message.battery = message_formats_1.Battery.decode(reader, reader.uint32());
984
987
  continue;
985
988
  }
989
+ case 2: {
990
+ if (tag !== 18) {
991
+ break;
992
+ }
993
+ message.secondBattery = message_formats_1.Battery.decode(reader, reader.uint32());
994
+ continue;
995
+ }
986
996
  }
987
997
  if ((tag & 7) === 4 || tag === 0) {
988
998
  break;
@@ -992,13 +1002,19 @@ exports.GetBatteryRep = {
992
1002
  return message;
993
1003
  },
994
1004
  fromJSON(object) {
995
- return { battery: isSet(object.battery) ? message_formats_1.Battery.fromJSON(object.battery) : undefined };
1005
+ return {
1006
+ battery: isSet(object.battery) ? message_formats_1.Battery.fromJSON(object.battery) : undefined,
1007
+ secondBattery: isSet(object.secondBattery) ? message_formats_1.Battery.fromJSON(object.secondBattery) : undefined,
1008
+ };
996
1009
  },
997
1010
  toJSON(message) {
998
1011
  const obj = {};
999
1012
  if (message.battery !== undefined) {
1000
1013
  obj.battery = message_formats_1.Battery.toJSON(message.battery);
1001
1014
  }
1015
+ if (message.secondBattery !== undefined) {
1016
+ obj.secondBattery = message_formats_1.Battery.toJSON(message.secondBattery);
1017
+ }
1002
1018
  return obj;
1003
1019
  },
1004
1020
  create(base) {
@@ -1009,6 +1025,9 @@ exports.GetBatteryRep = {
1009
1025
  message.battery = (object.battery !== undefined && object.battery !== null)
1010
1026
  ? message_formats_1.Battery.fromPartial(object.battery)
1011
1027
  : undefined;
1028
+ message.secondBattery = (object.secondBattery !== undefined && object.secondBattery !== null)
1029
+ ? message_formats_1.Battery.fromPartial(object.secondBattery)
1030
+ : undefined;
1012
1031
  return message;
1013
1032
  },
1014
1033
  };
@@ -1489,6 +1508,125 @@ exports.SetPubFrequencyRep = {
1489
1508
  return message;
1490
1509
  },
1491
1510
  };
1511
+ function createBaseSetLogFrequencyReq() {
1512
+ return { messageType: "", frequency: 0 };
1513
+ }
1514
+ exports.SetLogFrequencyReq = {
1515
+ encode(message, writer = new wire_1.BinaryWriter()) {
1516
+ if (message.messageType !== "") {
1517
+ writer.uint32(10).string(message.messageType);
1518
+ }
1519
+ if (message.frequency !== 0) {
1520
+ writer.uint32(21).float(message.frequency);
1521
+ }
1522
+ return writer;
1523
+ },
1524
+ decode(input, length) {
1525
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1526
+ const end = length === undefined ? reader.len : reader.pos + length;
1527
+ const message = createBaseSetLogFrequencyReq();
1528
+ while (reader.pos < end) {
1529
+ const tag = reader.uint32();
1530
+ switch (tag >>> 3) {
1531
+ case 1: {
1532
+ if (tag !== 10) {
1533
+ break;
1534
+ }
1535
+ message.messageType = reader.string();
1536
+ continue;
1537
+ }
1538
+ case 2: {
1539
+ if (tag !== 21) {
1540
+ break;
1541
+ }
1542
+ message.frequency = reader.float();
1543
+ continue;
1544
+ }
1545
+ }
1546
+ if ((tag & 7) === 4 || tag === 0) {
1547
+ break;
1548
+ }
1549
+ reader.skip(tag & 7);
1550
+ }
1551
+ return message;
1552
+ },
1553
+ fromJSON(object) {
1554
+ return {
1555
+ messageType: isSet(object.messageType) ? gt.String(object.messageType) : "",
1556
+ frequency: isSet(object.frequency) ? gt.Number(object.frequency) : 0,
1557
+ };
1558
+ },
1559
+ toJSON(message) {
1560
+ const obj = {};
1561
+ if (message.messageType !== "") {
1562
+ obj.messageType = message.messageType;
1563
+ }
1564
+ if (message.frequency !== 0) {
1565
+ obj.frequency = message.frequency;
1566
+ }
1567
+ return obj;
1568
+ },
1569
+ create(base) {
1570
+ return exports.SetLogFrequencyReq.fromPartial(base ?? {});
1571
+ },
1572
+ fromPartial(object) {
1573
+ const message = createBaseSetLogFrequencyReq();
1574
+ message.messageType = object.messageType ?? "";
1575
+ message.frequency = object.frequency ?? 0;
1576
+ return message;
1577
+ },
1578
+ };
1579
+ function createBaseSetLogFrequencyRep() {
1580
+ return { success: false };
1581
+ }
1582
+ exports.SetLogFrequencyRep = {
1583
+ encode(message, writer = new wire_1.BinaryWriter()) {
1584
+ if (message.success !== false) {
1585
+ writer.uint32(8).bool(message.success);
1586
+ }
1587
+ return writer;
1588
+ },
1589
+ decode(input, length) {
1590
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1591
+ const end = length === undefined ? reader.len : reader.pos + length;
1592
+ const message = createBaseSetLogFrequencyRep();
1593
+ while (reader.pos < end) {
1594
+ const tag = reader.uint32();
1595
+ switch (tag >>> 3) {
1596
+ case 1: {
1597
+ if (tag !== 8) {
1598
+ break;
1599
+ }
1600
+ message.success = reader.bool();
1601
+ continue;
1602
+ }
1603
+ }
1604
+ if ((tag & 7) === 4 || tag === 0) {
1605
+ break;
1606
+ }
1607
+ reader.skip(tag & 7);
1608
+ }
1609
+ return message;
1610
+ },
1611
+ fromJSON(object) {
1612
+ return { success: isSet(object.success) ? gt.Boolean(object.success) : false };
1613
+ },
1614
+ toJSON(message) {
1615
+ const obj = {};
1616
+ if (message.success !== false) {
1617
+ obj.success = message.success;
1618
+ }
1619
+ return obj;
1620
+ },
1621
+ create(base) {
1622
+ return exports.SetLogFrequencyRep.fromPartial(base ?? {});
1623
+ },
1624
+ fromPartial(object) {
1625
+ const message = createBaseSetLogFrequencyRep();
1626
+ message.success = object.success ?? false;
1627
+ return message;
1628
+ },
1629
+ };
1492
1630
  function createBaseGetTelemetryReq() {
1493
1631
  return { messageType: "" };
1494
1632
  }
@@ -2177,6 +2315,215 @@ exports.GetLogStreamingStatusRep = {
2177
2315
  return message;
2178
2316
  },
2179
2317
  };
2318
+ function createBaseSetCvModelStateReq() {
2319
+ return { packageId: "", running: false };
2320
+ }
2321
+ exports.SetCvModelStateReq = {
2322
+ encode(message, writer = new wire_1.BinaryWriter()) {
2323
+ if (message.packageId !== "") {
2324
+ writer.uint32(10).string(message.packageId);
2325
+ }
2326
+ if (message.running !== false) {
2327
+ writer.uint32(16).bool(message.running);
2328
+ }
2329
+ return writer;
2330
+ },
2331
+ decode(input, length) {
2332
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2333
+ const end = length === undefined ? reader.len : reader.pos + length;
2334
+ const message = createBaseSetCvModelStateReq();
2335
+ while (reader.pos < end) {
2336
+ const tag = reader.uint32();
2337
+ switch (tag >>> 3) {
2338
+ case 1: {
2339
+ if (tag !== 10) {
2340
+ break;
2341
+ }
2342
+ message.packageId = reader.string();
2343
+ continue;
2344
+ }
2345
+ case 2: {
2346
+ if (tag !== 16) {
2347
+ break;
2348
+ }
2349
+ message.running = reader.bool();
2350
+ continue;
2351
+ }
2352
+ }
2353
+ if ((tag & 7) === 4 || tag === 0) {
2354
+ break;
2355
+ }
2356
+ reader.skip(tag & 7);
2357
+ }
2358
+ return message;
2359
+ },
2360
+ fromJSON(object) {
2361
+ return {
2362
+ packageId: isSet(object.packageId) ? gt.String(object.packageId) : "",
2363
+ running: isSet(object.running) ? gt.Boolean(object.running) : false,
2364
+ };
2365
+ },
2366
+ toJSON(message) {
2367
+ const obj = {};
2368
+ if (message.packageId !== "") {
2369
+ obj.packageId = message.packageId;
2370
+ }
2371
+ if (message.running !== false) {
2372
+ obj.running = message.running;
2373
+ }
2374
+ return obj;
2375
+ },
2376
+ create(base) {
2377
+ return exports.SetCvModelStateReq.fromPartial(base ?? {});
2378
+ },
2379
+ fromPartial(object) {
2380
+ const message = createBaseSetCvModelStateReq();
2381
+ message.packageId = object.packageId ?? "";
2382
+ message.running = object.running ?? false;
2383
+ return message;
2384
+ },
2385
+ };
2386
+ function createBaseSetCvModelStateRep() {
2387
+ return { accepted: false };
2388
+ }
2389
+ exports.SetCvModelStateRep = {
2390
+ encode(message, writer = new wire_1.BinaryWriter()) {
2391
+ if (message.accepted !== false) {
2392
+ writer.uint32(8).bool(message.accepted);
2393
+ }
2394
+ return writer;
2395
+ },
2396
+ decode(input, length) {
2397
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2398
+ const end = length === undefined ? reader.len : reader.pos + length;
2399
+ const message = createBaseSetCvModelStateRep();
2400
+ while (reader.pos < end) {
2401
+ const tag = reader.uint32();
2402
+ switch (tag >>> 3) {
2403
+ case 1: {
2404
+ if (tag !== 8) {
2405
+ break;
2406
+ }
2407
+ message.accepted = reader.bool();
2408
+ continue;
2409
+ }
2410
+ }
2411
+ if ((tag & 7) === 4 || tag === 0) {
2412
+ break;
2413
+ }
2414
+ reader.skip(tag & 7);
2415
+ }
2416
+ return message;
2417
+ },
2418
+ fromJSON(object) {
2419
+ return { accepted: isSet(object.accepted) ? gt.Boolean(object.accepted) : false };
2420
+ },
2421
+ toJSON(message) {
2422
+ const obj = {};
2423
+ if (message.accepted !== false) {
2424
+ obj.accepted = message.accepted;
2425
+ }
2426
+ return obj;
2427
+ },
2428
+ create(base) {
2429
+ return exports.SetCvModelStateRep.fromPartial(base ?? {});
2430
+ },
2431
+ fromPartial(object) {
2432
+ const message = createBaseSetCvModelStateRep();
2433
+ message.accepted = object.accepted ?? false;
2434
+ return message;
2435
+ },
2436
+ };
2437
+ function createBaseGetCvModelsReq() {
2438
+ return {};
2439
+ }
2440
+ exports.GetCvModelsReq = {
2441
+ encode(_, writer = new wire_1.BinaryWriter()) {
2442
+ return writer;
2443
+ },
2444
+ decode(input, length) {
2445
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2446
+ const end = length === undefined ? reader.len : reader.pos + length;
2447
+ const message = createBaseGetCvModelsReq();
2448
+ while (reader.pos < end) {
2449
+ const tag = reader.uint32();
2450
+ switch (tag >>> 3) {
2451
+ }
2452
+ if ((tag & 7) === 4 || tag === 0) {
2453
+ break;
2454
+ }
2455
+ reader.skip(tag & 7);
2456
+ }
2457
+ return message;
2458
+ },
2459
+ fromJSON(_) {
2460
+ return {};
2461
+ },
2462
+ toJSON(_) {
2463
+ const obj = {};
2464
+ return obj;
2465
+ },
2466
+ create(base) {
2467
+ return exports.GetCvModelsReq.fromPartial(base ?? {});
2468
+ },
2469
+ fromPartial(_) {
2470
+ const message = createBaseGetCvModelsReq();
2471
+ return message;
2472
+ },
2473
+ };
2474
+ function createBaseGetCvModelsRep() {
2475
+ return { cvModels: [] };
2476
+ }
2477
+ exports.GetCvModelsRep = {
2478
+ encode(message, writer = new wire_1.BinaryWriter()) {
2479
+ for (const v of message.cvModels) {
2480
+ message_formats_1.CvModelInfo.encode(v, writer.uint32(10).fork()).join();
2481
+ }
2482
+ return writer;
2483
+ },
2484
+ decode(input, length) {
2485
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2486
+ const end = length === undefined ? reader.len : reader.pos + length;
2487
+ const message = createBaseGetCvModelsRep();
2488
+ while (reader.pos < end) {
2489
+ const tag = reader.uint32();
2490
+ switch (tag >>> 3) {
2491
+ case 1: {
2492
+ if (tag !== 10) {
2493
+ break;
2494
+ }
2495
+ message.cvModels.push(message_formats_1.CvModelInfo.decode(reader, reader.uint32()));
2496
+ continue;
2497
+ }
2498
+ }
2499
+ if ((tag & 7) === 4 || tag === 0) {
2500
+ break;
2501
+ }
2502
+ reader.skip(tag & 7);
2503
+ }
2504
+ return message;
2505
+ },
2506
+ fromJSON(object) {
2507
+ return {
2508
+ cvModels: gt.Array.isArray(object?.cvModels) ? object.cvModels.map((e) => message_formats_1.CvModelInfo.fromJSON(e)) : [],
2509
+ };
2510
+ },
2511
+ toJSON(message) {
2512
+ const obj = {};
2513
+ if (message.cvModels?.length) {
2514
+ obj.cvModels = message.cvModels.map((e) => message_formats_1.CvModelInfo.toJSON(e));
2515
+ }
2516
+ return obj;
2517
+ },
2518
+ create(base) {
2519
+ return exports.GetCvModelsRep.fromPartial(base ?? {});
2520
+ },
2521
+ fromPartial(object) {
2522
+ const message = createBaseGetCvModelsRep();
2523
+ message.cvModels = object.cvModels?.map((e) => message_formats_1.CvModelInfo.fromPartial(e)) || [];
2524
+ return message;
2525
+ },
2526
+ };
2180
2527
  const gt = (() => {
2181
2528
  if (typeof globalThis !== "undefined") {
2182
2529
  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, ModelDetections, MultibeamConfig, MultibeamDiscovery, MultibeamPing, MultibeamServo, Notification, NStreamers, PositionEstimate, RecordState, Reference, RemovableStorageDevice, StorageSpace, SurfaceUnitBatteryInfo, SurfaceUnitVersionInfo, SystemPerformanceInfo, SystemTime, ThicknessGauge, TiltAngle, TiltStabilizationState, TimeLapseState, WaterTemperature } from "./message_formats";
3
+ import { Altitude, Annotation, Attitude, Battery, BatteryBQ40Z50, CalibrationState, CameraPanTiltZoom, CanisterHumidity, CanisterTemperature, ConnectedClient, ControlForce, ControllerHealth, ControlMode, CpProbe, CPUInfo, CPUTemperature, Depth, DiveTime, DroneInfo, DvlVelocity, ErrorFlags, FilterMessage, ForwardDistance, GenericServo, GnssStatus, 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,12 +86,19 @@ 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 {
92
94
  /** The GPS position of the pilot. */
93
95
  position: LatLongPosition | undefined;
94
96
  }
97
+ /** Status of the onboard Blueye GNSS receiver and its driver. */
98
+ export interface GnssStatusTel {
99
+ /** Status of the Blueye GNSS receiver. */
100
+ gnssStatus: GnssStatus | undefined;
101
+ }
95
102
  /** Record state from the drone. */
96
103
  export interface RecordStateTel {
97
104
  /** Record state. */
@@ -102,18 +109,32 @@ export interface TimeLapseStateTel {
102
109
  /** Time-lapse state. */
103
110
  timeLapseState: TimeLapseState | undefined;
104
111
  }
105
- /** Receive essential information about the battery status. */
112
+ /**
113
+ * Receive essential information about the battery status.
114
+ *
115
+ * On models with two batteries running in parallel (e.g. the X7), second_battery
116
+ * holds the essential information for the second battery. When only a single
117
+ * battery is used, second_battery is undefined (not set).
118
+ */
106
119
  export interface BatteryTel {
107
120
  /** Essential battery information. */
108
121
  battery: Battery | undefined;
122
+ /** Second battery, when present. Not set if only one battery is used. */
123
+ secondBattery: Battery | undefined;
109
124
  }
110
125
  /**
111
126
  * Receive detailed information about a battery using the
112
127
  * BQ40Z50 battery management system.
128
+ *
129
+ * On models with two batteries running in parallel (e.g. the X7), second_battery
130
+ * holds the detailed information for the second battery. When only a single
131
+ * battery is used, second_battery is undefined (not set).
113
132
  */
114
133
  export interface BatteryBQ40Z50Tel {
115
134
  /** Detailed battery information. */
116
135
  battery: BatteryBQ40Z50 | undefined;
136
+ /** Second battery, when present. Not set if only one battery is used. */
137
+ secondBattery: BatteryBQ40Z50 | undefined;
117
138
  }
118
139
  /** Receive the dive time of the drone. */
119
140
  export interface DiveTimeTel {
@@ -343,6 +364,15 @@ export interface TurbidityFilterTel {
343
364
  /** Turbidity filter settings. */
344
365
  turbidityFilter: FilterMessage | undefined;
345
366
  }
367
+ /**
368
+ * Color correction settings telemetry message.
369
+ *
370
+ * Message is published when the filter settings are changed.
371
+ */
372
+ export interface ColorCorrectionTel {
373
+ /** Color correction settings. */
374
+ colorCorrectionFilter: FilterMessage | undefined;
375
+ }
346
376
  /**
347
377
  * Digital pan, tilt, and zoom telemetry from the main camera.
348
378
  *
@@ -353,6 +383,29 @@ export interface CameraPanTiltZoomTel {
353
383
  /** Current pan, tilt, and zoom state. */
354
384
  cameraPanTiltZoom: CameraPanTiltZoom | undefined;
355
385
  }
386
+ /**
387
+ * Single-object tracking (SOT) state telemetry from the computer vision pipeline.
388
+ *
389
+ * Reports the current tracking state and the tracked bounding box when active.
390
+ * Published periodically while the SOT pipeline is running.
391
+ */
392
+ export interface SotStateTel {
393
+ /** Current SOT state and bounding box. */
394
+ sotState: SotState | undefined;
395
+ }
396
+ /**
397
+ * An annotation that now exists on the dive.
398
+ *
399
+ * Either added by a client (the drone echoes its AnnotationCtrl here, source APP)
400
+ * or emitted by the drone itself (source DRONE); CLOUD is the post-dive Blueye
401
+ * Cloud path and is not seen here. Published to every connected client and
402
+ * written to the dive logfile. A late-joining client can fetch the most recent
403
+ * one with GetTelemetryReq("AnnotationTel").
404
+ */
405
+ export interface AnnotationTel {
406
+ /** The annotation that was added. */
407
+ annotation: Annotation | undefined;
408
+ }
356
409
  export declare const AttitudeTel: MessageFns<AttitudeTel>;
357
410
  export declare const MagneticDeclinationTel: MessageFns<MagneticDeclinationTel>;
358
411
  export declare const AltitudeTel: MessageFns<AltitudeTel>;
@@ -370,6 +423,7 @@ export declare const LightsTel: MessageFns<LightsTel>;
370
423
  export declare const GuestPortLightsTel: MessageFns<GuestPortLightsTel>;
371
424
  export declare const LaserTel: MessageFns<LaserTel>;
372
425
  export declare const PilotGPSPositionTel: MessageFns<PilotGPSPositionTel>;
426
+ export declare const GnssStatusTel: MessageFns<GnssStatusTel>;
373
427
  export declare const RecordStateTel: MessageFns<RecordStateTel>;
374
428
  export declare const TimeLapseStateTel: MessageFns<TimeLapseStateTel>;
375
429
  export declare const BatteryTel: MessageFns<BatteryTel>;
@@ -415,7 +469,10 @@ export declare const SurfaceUnitTel: MessageFns<SurfaceUnitTel>;
415
469
  export declare const LogEntryTel: MessageFns<LogEntryTel>;
416
470
  export declare const ObjectDetectionsTel: MessageFns<ObjectDetectionsTel>;
417
471
  export declare const TurbidityFilterTel: MessageFns<TurbidityFilterTel>;
472
+ export declare const ColorCorrectionTel: MessageFns<ColorCorrectionTel>;
418
473
  export declare const CameraPanTiltZoomTel: MessageFns<CameraPanTiltZoomTel>;
474
+ export declare const SotStateTel: MessageFns<SotStateTel>;
475
+ export declare const AnnotationTel: MessageFns<AnnotationTel>;
419
476
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
420
477
  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
478
  [K in keyof T]?: DeepPartial<T[K]>;