@blueyerobotics/protocol-definitions 3.2.0-3db90004 → 3.2.0-3e35b5c5

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.
@@ -522,6 +522,8 @@ export declare enum GuestPortCapability {
522
522
  GUEST_PORT_CAPABILITY_USB2 = 5,
523
523
  /** GUEST_PORT_CAPABILITY_PWM - PWM. */
524
524
  GUEST_PORT_CAPABILITY_PWM = 6,
525
+ /** GUEST_PORT_CAPABILITY_ETHERNET_1G - Gigabit Ethernet. */
526
+ GUEST_PORT_CAPABILITY_ETHERNET_1G = 7,
525
527
  UNRECOGNIZED = -1
526
528
  }
527
529
  export declare function guestPortCapabilityFromJSON(object: any): GuestPortCapability;
@@ -2132,6 +2134,16 @@ export interface MultibeamPing {
2132
2134
  deviceId: GuestPortDeviceID;
2133
2135
  /** Timestamp when the frame was generated. */
2134
2136
  frameGenerationTimestamp: Date | undefined;
2137
+ /** Heading (°). */
2138
+ heading: number;
2139
+ /** Pitch (°). */
2140
+ pitch: number;
2141
+ /** Roll (°). */
2142
+ roll: number;
2143
+ /** External temperature (°C). */
2144
+ temperature: number;
2145
+ /** External pressure (bar). */
2146
+ pressure: number;
2135
2147
  }
2136
2148
  /** Configuration message for sonar devices. */
2137
2149
  export interface MultibeamConfig {
@@ -1790,6 +1790,8 @@ var GuestPortCapability;
1790
1790
  GuestPortCapability[GuestPortCapability["GUEST_PORT_CAPABILITY_USB2"] = 5] = "GUEST_PORT_CAPABILITY_USB2";
1791
1791
  /** GUEST_PORT_CAPABILITY_PWM - PWM. */
1792
1792
  GuestPortCapability[GuestPortCapability["GUEST_PORT_CAPABILITY_PWM"] = 6] = "GUEST_PORT_CAPABILITY_PWM";
1793
+ /** GUEST_PORT_CAPABILITY_ETHERNET_1G - Gigabit Ethernet. */
1794
+ GuestPortCapability[GuestPortCapability["GUEST_PORT_CAPABILITY_ETHERNET_1G"] = 7] = "GUEST_PORT_CAPABILITY_ETHERNET_1G";
1793
1795
  GuestPortCapability[GuestPortCapability["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
1794
1796
  })(GuestPortCapability || (exports.GuestPortCapability = GuestPortCapability = {}));
1795
1797
  function guestPortCapabilityFromJSON(object) {
@@ -1815,6 +1817,9 @@ function guestPortCapabilityFromJSON(object) {
1815
1817
  case 6:
1816
1818
  case "GUEST_PORT_CAPABILITY_PWM":
1817
1819
  return GuestPortCapability.GUEST_PORT_CAPABILITY_PWM;
1820
+ case 7:
1821
+ case "GUEST_PORT_CAPABILITY_ETHERNET_1G":
1822
+ return GuestPortCapability.GUEST_PORT_CAPABILITY_ETHERNET_1G;
1818
1823
  case -1:
1819
1824
  case "UNRECOGNIZED":
1820
1825
  default:
@@ -1837,6 +1842,8 @@ function guestPortCapabilityToJSON(object) {
1837
1842
  return "GUEST_PORT_CAPABILITY_USB2";
1838
1843
  case GuestPortCapability.GUEST_PORT_CAPABILITY_PWM:
1839
1844
  return "GUEST_PORT_CAPABILITY_PWM";
1845
+ case GuestPortCapability.GUEST_PORT_CAPABILITY_ETHERNET_1G:
1846
+ return "GUEST_PORT_CAPABILITY_ETHERNET_1G";
1840
1847
  case GuestPortCapability.UNRECOGNIZED:
1841
1848
  default:
1842
1849
  return "UNRECOGNIZED";
@@ -14058,6 +14065,11 @@ function createBaseMultibeamPing() {
14058
14065
  pingData: new Uint8Array(0),
14059
14066
  deviceId: 0,
14060
14067
  frameGenerationTimestamp: undefined,
14068
+ heading: 0,
14069
+ pitch: 0,
14070
+ roll: 0,
14071
+ temperature: 0,
14072
+ pressure: 0,
14061
14073
  };
14062
14074
  }
14063
14075
  exports.MultibeamPing = {
@@ -14100,6 +14112,21 @@ exports.MultibeamPing = {
14100
14112
  if (message.frameGenerationTimestamp !== undefined) {
14101
14113
  timestamp_1.Timestamp.encode(toTimestamp(message.frameGenerationTimestamp), writer.uint32(98).fork()).join();
14102
14114
  }
14115
+ if (message.heading !== 0) {
14116
+ writer.uint32(105).double(message.heading);
14117
+ }
14118
+ if (message.pitch !== 0) {
14119
+ writer.uint32(113).double(message.pitch);
14120
+ }
14121
+ if (message.roll !== 0) {
14122
+ writer.uint32(121).double(message.roll);
14123
+ }
14124
+ if (message.temperature !== 0) {
14125
+ writer.uint32(129).double(message.temperature);
14126
+ }
14127
+ if (message.pressure !== 0) {
14128
+ writer.uint32(137).double(message.pressure);
14129
+ }
14103
14130
  return writer;
14104
14131
  },
14105
14132
  decode(input, length) {
@@ -14200,6 +14227,41 @@ exports.MultibeamPing = {
14200
14227
  message.frameGenerationTimestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
14201
14228
  continue;
14202
14229
  }
14230
+ case 13: {
14231
+ if (tag !== 105) {
14232
+ break;
14233
+ }
14234
+ message.heading = reader.double();
14235
+ continue;
14236
+ }
14237
+ case 14: {
14238
+ if (tag !== 113) {
14239
+ break;
14240
+ }
14241
+ message.pitch = reader.double();
14242
+ continue;
14243
+ }
14244
+ case 15: {
14245
+ if (tag !== 121) {
14246
+ break;
14247
+ }
14248
+ message.roll = reader.double();
14249
+ continue;
14250
+ }
14251
+ case 16: {
14252
+ if (tag !== 129) {
14253
+ break;
14254
+ }
14255
+ message.temperature = reader.double();
14256
+ continue;
14257
+ }
14258
+ case 17: {
14259
+ if (tag !== 137) {
14260
+ break;
14261
+ }
14262
+ message.pressure = reader.double();
14263
+ continue;
14264
+ }
14203
14265
  }
14204
14266
  if ((tag & 7) === 4 || tag === 0) {
14205
14267
  break;
@@ -14224,6 +14286,11 @@ exports.MultibeamPing = {
14224
14286
  frameGenerationTimestamp: isSet(object.frameGenerationTimestamp)
14225
14287
  ? fromJsonTimestamp(object.frameGenerationTimestamp)
14226
14288
  : undefined,
14289
+ heading: isSet(object.heading) ? gt.Number(object.heading) : 0,
14290
+ pitch: isSet(object.pitch) ? gt.Number(object.pitch) : 0,
14291
+ roll: isSet(object.roll) ? gt.Number(object.roll) : 0,
14292
+ temperature: isSet(object.temperature) ? gt.Number(object.temperature) : 0,
14293
+ pressure: isSet(object.pressure) ? gt.Number(object.pressure) : 0,
14227
14294
  };
14228
14295
  },
14229
14296
  toJSON(message) {
@@ -14264,6 +14331,21 @@ exports.MultibeamPing = {
14264
14331
  if (message.frameGenerationTimestamp !== undefined) {
14265
14332
  obj.frameGenerationTimestamp = message.frameGenerationTimestamp.toISOString();
14266
14333
  }
14334
+ if (message.heading !== 0) {
14335
+ obj.heading = message.heading;
14336
+ }
14337
+ if (message.pitch !== 0) {
14338
+ obj.pitch = message.pitch;
14339
+ }
14340
+ if (message.roll !== 0) {
14341
+ obj.roll = message.roll;
14342
+ }
14343
+ if (message.temperature !== 0) {
14344
+ obj.temperature = message.temperature;
14345
+ }
14346
+ if (message.pressure !== 0) {
14347
+ obj.pressure = message.pressure;
14348
+ }
14267
14349
  return obj;
14268
14350
  },
14269
14351
  create(base) {
@@ -14283,6 +14365,11 @@ exports.MultibeamPing = {
14283
14365
  message.pingData = object.pingData ?? new Uint8Array(0);
14284
14366
  message.deviceId = object.deviceId ?? 0;
14285
14367
  message.frameGenerationTimestamp = object.frameGenerationTimestamp ?? undefined;
14368
+ message.heading = object.heading ?? 0;
14369
+ message.pitch = object.pitch ?? 0;
14370
+ message.roll = object.roll ?? 0;
14371
+ message.temperature = object.temperature ?? 0;
14372
+ message.pressure = object.pressure ?? 0;
14286
14373
  return message;
14287
14374
  },
14288
14375
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueyerobotics/protocol-definitions",
3
- "version": "3.2.0-3db90004",
3
+ "version": "3.2.0-3e35b5c5",
4
4
  "license": "LGPL-3.0-only",
5
5
  "description": "TypeScript definitions for Blueye Robotics protocols",
6
6
  "repository": {