@blueyerobotics/protocol-definitions 3.4.0-296e61b2 → 3.4.0-2bafbd5c

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.
@@ -1996,6 +1996,13 @@ export interface DroneInfo {
1996
1996
  powerSource: PowerSource;
1997
1997
  /** Intrinsic calibration of the main camera. Unset when unknown. */
1998
1998
  mainCameraCalibration: CameraCalibration | undefined;
1999
+ /** Dive number, the counter at the end of the logfile name. 0 when unknown. */
2000
+ diveNumber: number;
2001
+ /**
2002
+ * Name of the dive logfile without extension (e.g. BYEDP070012_ea9ac92e040aa9d4_00231).
2003
+ * Unlike dive_number it stays unique when the counter restarts, e.g. after the storage is replaced.
2004
+ */
2005
+ logName: string;
1999
2006
  }
2000
2007
  /** Known error states for the drone. */
2001
2008
  export interface ErrorFlags {
@@ -11931,6 +11931,8 @@ function createBaseDroneInfo() {
11931
11931
  cvModels: [],
11932
11932
  powerSource: 0,
11933
11933
  mainCameraCalibration: undefined,
11934
+ diveNumber: 0,
11935
+ logName: "",
11934
11936
  };
11935
11937
  }
11936
11938
  export const DroneInfo = {
@@ -11977,6 +11979,12 @@ export const DroneInfo = {
11977
11979
  if (message.mainCameraCalibration !== undefined) {
11978
11980
  CameraCalibration.encode(message.mainCameraCalibration, writer.uint32(114).fork()).join();
11979
11981
  }
11982
+ if (message.diveNumber !== 0) {
11983
+ writer.uint32(120).uint32(message.diveNumber);
11984
+ }
11985
+ if (message.logName !== "") {
11986
+ writer.uint32(130).string(message.logName);
11987
+ }
11980
11988
  return writer;
11981
11989
  },
11982
11990
  decode(input, length) {
@@ -12084,6 +12092,20 @@ export const DroneInfo = {
12084
12092
  message.mainCameraCalibration = CameraCalibration.decode(reader, reader.uint32());
12085
12093
  continue;
12086
12094
  }
12095
+ case 15: {
12096
+ if (tag !== 120) {
12097
+ break;
12098
+ }
12099
+ message.diveNumber = reader.uint32();
12100
+ continue;
12101
+ }
12102
+ case 16: {
12103
+ if (tag !== 130) {
12104
+ break;
12105
+ }
12106
+ message.logName = reader.string();
12107
+ continue;
12108
+ }
12087
12109
  }
12088
12110
  if ((tag & 7) === 4 || tag === 0) {
12089
12111
  break;
@@ -12110,6 +12132,8 @@ export const DroneInfo = {
12110
12132
  mainCameraCalibration: isSet(object.mainCameraCalibration)
12111
12133
  ? CameraCalibration.fromJSON(object.mainCameraCalibration)
12112
12134
  : undefined,
12135
+ diveNumber: isSet(object.diveNumber) ? gt.Number(object.diveNumber) : 0,
12136
+ logName: isSet(object.logName) ? gt.String(object.logName) : "",
12113
12137
  };
12114
12138
  },
12115
12139
  toJSON(message) {
@@ -12156,6 +12180,12 @@ export const DroneInfo = {
12156
12180
  if (message.mainCameraCalibration !== undefined) {
12157
12181
  obj.mainCameraCalibration = CameraCalibration.toJSON(message.mainCameraCalibration);
12158
12182
  }
12183
+ if (message.diveNumber !== 0) {
12184
+ obj.diveNumber = Math.round(message.diveNumber);
12185
+ }
12186
+ if (message.logName !== "") {
12187
+ obj.logName = message.logName;
12188
+ }
12159
12189
  return obj;
12160
12190
  },
12161
12191
  create(base) {
@@ -12180,6 +12210,8 @@ export const DroneInfo = {
12180
12210
  (object.mainCameraCalibration !== undefined && object.mainCameraCalibration !== null)
12181
12211
  ? CameraCalibration.fromPartial(object.mainCameraCalibration)
12182
12212
  : undefined;
12213
+ message.diveNumber = object.diveNumber ?? 0;
12214
+ message.logName = object.logName ?? "";
12183
12215
  return message;
12184
12216
  },
12185
12217
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueyerobotics/protocol-definitions",
3
- "version": "3.4.0-296e61b2",
3
+ "version": "3.4.0-2bafbd5c",
4
4
  "license": "LGPL-3.0-only",
5
5
  "description": "TypeScript definitions for Blueye Robotics protocols",
6
6
  "repository": {