@blueyerobotics/protocol-definitions 3.2.0-9c4aad9c → 3.2.0-a0a5b37d

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.
@@ -423,6 +423,8 @@ export declare enum GuestPortDeviceID {
423
423
  GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE = 45,
424
424
  /** GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2 - Blueye Multibeam Skid Servo V2. */
425
425
  GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2 = 46,
426
+ /** GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT - Cerulean Omniscan 450 Compact. */
427
+ GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT = 47,
426
428
  UNRECOGNIZED = -1
427
429
  }
428
430
  export declare function guestPortDeviceIDFromJSON(object: any): GuestPortDeviceID;
@@ -1295,10 +1297,12 @@ export declare enum RemovableStorageDevice_Status {
1295
1297
  STATUS_UNSPECIFIED = 0,
1296
1298
  /** STATUS_READY - The storage device is valid and ready for use. */
1297
1299
  STATUS_READY = 1,
1298
- /** STATUS_FORMATTING - The storage device is being formatted */
1300
+ /** STATUS_FORMATTING - The storage device is being formatted. */
1299
1301
  STATUS_FORMATTING = 2,
1300
1302
  /** STATUS_ERROR - The storage device is in an error state. */
1301
1303
  STATUS_ERROR = 3,
1304
+ /** STATUS_UNPLUGGED - The storage device is not present. */
1305
+ STATUS_UNPLUGGED = 4,
1302
1306
  UNRECOGNIZED = -1
1303
1307
  }
1304
1308
  export declare function removableStorageDevice_StatusFromJSON(object: any): RemovableStorageDevice_Status;
@@ -1280,6 +1280,8 @@ var GuestPortDeviceID;
1280
1280
  GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE"] = 45] = "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE";
1281
1281
  /** GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2 - Blueye Multibeam Skid Servo V2. */
1282
1282
  GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2"] = 46] = "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2";
1283
+ /** GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT - Cerulean Omniscan 450 Compact. */
1284
+ GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT"] = 47] = "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT";
1283
1285
  GuestPortDeviceID[GuestPortDeviceID["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1284
1286
  })(GuestPortDeviceID || (exports.GuestPortDeviceID = GuestPortDeviceID = {}));
1285
1287
  function guestPortDeviceIDFromJSON(object) {
@@ -1425,6 +1427,9 @@ function guestPortDeviceIDFromJSON(object) {
1425
1427
  case 46:
1426
1428
  case "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2":
1427
1429
  return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2;
1430
+ case 47:
1431
+ case "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT":
1432
+ return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT;
1428
1433
  case -1:
1429
1434
  case "UNRECOGNIZED":
1430
1435
  default:
@@ -1527,6 +1532,8 @@ function guestPortDeviceIDToJSON(object) {
1527
1532
  return "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE";
1528
1533
  case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2:
1529
1534
  return "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2";
1535
+ case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT:
1536
+ return "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT";
1530
1537
  case GuestPortDeviceID.UNRECOGNIZED:
1531
1538
  default:
1532
1539
  return "UNRECOGNIZED";
@@ -2075,10 +2082,12 @@ var RemovableStorageDevice_Status;
2075
2082
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_UNSPECIFIED"] = 0] = "STATUS_UNSPECIFIED";
2076
2083
  /** STATUS_READY - The storage device is valid and ready for use. */
2077
2084
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_READY"] = 1] = "STATUS_READY";
2078
- /** STATUS_FORMATTING - The storage device is being formatted */
2085
+ /** STATUS_FORMATTING - The storage device is being formatted. */
2079
2086
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_FORMATTING"] = 2] = "STATUS_FORMATTING";
2080
2087
  /** STATUS_ERROR - The storage device is in an error state. */
2081
2088
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_ERROR"] = 3] = "STATUS_ERROR";
2089
+ /** STATUS_UNPLUGGED - The storage device is not present. */
2090
+ RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_UNPLUGGED"] = 4] = "STATUS_UNPLUGGED";
2082
2091
  RemovableStorageDevice_Status[RemovableStorageDevice_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
2083
2092
  })(RemovableStorageDevice_Status || (exports.RemovableStorageDevice_Status = RemovableStorageDevice_Status = {}));
2084
2093
  function removableStorageDevice_StatusFromJSON(object) {
@@ -2095,6 +2104,9 @@ function removableStorageDevice_StatusFromJSON(object) {
2095
2104
  case 3:
2096
2105
  case "STATUS_ERROR":
2097
2106
  return RemovableStorageDevice_Status.STATUS_ERROR;
2107
+ case 4:
2108
+ case "STATUS_UNPLUGGED":
2109
+ return RemovableStorageDevice_Status.STATUS_UNPLUGGED;
2098
2110
  case -1:
2099
2111
  case "UNRECOGNIZED":
2100
2112
  default:
@@ -2111,6 +2123,8 @@ function removableStorageDevice_StatusToJSON(object) {
2111
2123
  return "STATUS_FORMATTING";
2112
2124
  case RemovableStorageDevice_Status.STATUS_ERROR:
2113
2125
  return "STATUS_ERROR";
2126
+ case RemovableStorageDevice_Status.STATUS_UNPLUGGED:
2127
+ return "STATUS_UNPLUGGED";
2114
2128
  case RemovableStorageDevice_Status.UNRECOGNIZED:
2115
2129
  default:
2116
2130
  return "UNRECOGNIZED";
@@ -240,11 +240,15 @@ export interface ConnectedClientsTel {
240
240
  export interface GenericServoTel {
241
241
  /** Servo state. */
242
242
  servo: GenericServo | undefined;
243
+ /** Servo set point (0..1). */
244
+ setPoint: number;
243
245
  }
244
246
  /** State of the servo installed in the multibeam. */
245
247
  export interface MultibeamServoTel {
246
248
  /** Multibeam servo state. */
247
249
  servo: MultibeamServo | undefined;
250
+ /** Servo set point (-30..30). */
251
+ setPoint: number;
248
252
  }
249
253
  /** GuestPort current readings. */
250
254
  export interface GuestPortCurrentTel {
package/dist/telemetry.js CHANGED
@@ -2418,13 +2418,16 @@ exports.ConnectedClientsTel = {
2418
2418
  },
2419
2419
  };
2420
2420
  function createBaseGenericServoTel() {
2421
- return { servo: undefined };
2421
+ return { servo: undefined, setPoint: 0 };
2422
2422
  }
2423
2423
  exports.GenericServoTel = {
2424
2424
  encode(message, writer = new wire_1.BinaryWriter()) {
2425
2425
  if (message.servo !== undefined) {
2426
2426
  message_formats_1.GenericServo.encode(message.servo, writer.uint32(10).fork()).join();
2427
2427
  }
2428
+ if (message.setPoint !== 0) {
2429
+ writer.uint32(21).float(message.setPoint);
2430
+ }
2428
2431
  return writer;
2429
2432
  },
2430
2433
  decode(input, length) {
@@ -2441,6 +2444,13 @@ exports.GenericServoTel = {
2441
2444
  message.servo = message_formats_1.GenericServo.decode(reader, reader.uint32());
2442
2445
  continue;
2443
2446
  }
2447
+ case 2: {
2448
+ if (tag !== 21) {
2449
+ break;
2450
+ }
2451
+ message.setPoint = reader.float();
2452
+ continue;
2453
+ }
2444
2454
  }
2445
2455
  if ((tag & 7) === 4 || tag === 0) {
2446
2456
  break;
@@ -2450,13 +2460,19 @@ exports.GenericServoTel = {
2450
2460
  return message;
2451
2461
  },
2452
2462
  fromJSON(object) {
2453
- return { servo: isSet(object.servo) ? message_formats_1.GenericServo.fromJSON(object.servo) : undefined };
2463
+ return {
2464
+ servo: isSet(object.servo) ? message_formats_1.GenericServo.fromJSON(object.servo) : undefined,
2465
+ setPoint: isSet(object.setPoint) ? gt.Number(object.setPoint) : 0,
2466
+ };
2454
2467
  },
2455
2468
  toJSON(message) {
2456
2469
  const obj = {};
2457
2470
  if (message.servo !== undefined) {
2458
2471
  obj.servo = message_formats_1.GenericServo.toJSON(message.servo);
2459
2472
  }
2473
+ if (message.setPoint !== 0) {
2474
+ obj.setPoint = message.setPoint;
2475
+ }
2460
2476
  return obj;
2461
2477
  },
2462
2478
  create(base) {
@@ -2467,17 +2483,21 @@ exports.GenericServoTel = {
2467
2483
  message.servo = (object.servo !== undefined && object.servo !== null)
2468
2484
  ? message_formats_1.GenericServo.fromPartial(object.servo)
2469
2485
  : undefined;
2486
+ message.setPoint = object.setPoint ?? 0;
2470
2487
  return message;
2471
2488
  },
2472
2489
  };
2473
2490
  function createBaseMultibeamServoTel() {
2474
- return { servo: undefined };
2491
+ return { servo: undefined, setPoint: 0 };
2475
2492
  }
2476
2493
  exports.MultibeamServoTel = {
2477
2494
  encode(message, writer = new wire_1.BinaryWriter()) {
2478
2495
  if (message.servo !== undefined) {
2479
2496
  message_formats_1.MultibeamServo.encode(message.servo, writer.uint32(10).fork()).join();
2480
2497
  }
2498
+ if (message.setPoint !== 0) {
2499
+ writer.uint32(21).float(message.setPoint);
2500
+ }
2481
2501
  return writer;
2482
2502
  },
2483
2503
  decode(input, length) {
@@ -2494,6 +2514,13 @@ exports.MultibeamServoTel = {
2494
2514
  message.servo = message_formats_1.MultibeamServo.decode(reader, reader.uint32());
2495
2515
  continue;
2496
2516
  }
2517
+ case 2: {
2518
+ if (tag !== 21) {
2519
+ break;
2520
+ }
2521
+ message.setPoint = reader.float();
2522
+ continue;
2523
+ }
2497
2524
  }
2498
2525
  if ((tag & 7) === 4 || tag === 0) {
2499
2526
  break;
@@ -2503,13 +2530,19 @@ exports.MultibeamServoTel = {
2503
2530
  return message;
2504
2531
  },
2505
2532
  fromJSON(object) {
2506
- return { servo: isSet(object.servo) ? message_formats_1.MultibeamServo.fromJSON(object.servo) : undefined };
2533
+ return {
2534
+ servo: isSet(object.servo) ? message_formats_1.MultibeamServo.fromJSON(object.servo) : undefined,
2535
+ setPoint: isSet(object.setPoint) ? gt.Number(object.setPoint) : 0,
2536
+ };
2507
2537
  },
2508
2538
  toJSON(message) {
2509
2539
  const obj = {};
2510
2540
  if (message.servo !== undefined) {
2511
2541
  obj.servo = message_formats_1.MultibeamServo.toJSON(message.servo);
2512
2542
  }
2543
+ if (message.setPoint !== 0) {
2544
+ obj.setPoint = message.setPoint;
2545
+ }
2513
2546
  return obj;
2514
2547
  },
2515
2548
  create(base) {
@@ -2520,6 +2553,7 @@ exports.MultibeamServoTel = {
2520
2553
  message.servo = (object.servo !== undefined && object.servo !== null)
2521
2554
  ? message_formats_1.MultibeamServo.fromPartial(object.servo)
2522
2555
  : undefined;
2556
+ message.setPoint = object.setPoint ?? 0;
2523
2557
  return message;
2524
2558
  },
2525
2559
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueyerobotics/protocol-definitions",
3
- "version": "3.2.0-9c4aad9c",
3
+ "version": "3.2.0-a0a5b37d",
4
4
  "license": "LGPL-3.0-only",
5
5
  "description": "TypeScript definitions for Blueye Robotics protocols",
6
6
  "repository": {