@blueyerobotics/protocol-definitions 3.2.0-2da79a0a → 3.2.0-569cf784
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/aquatroll.d.ts +8 -2
- package/dist/control.d.ts +8 -13
- package/dist/control.js +1 -38
- package/dist/google/protobuf/any.d.ts +8 -2
- package/dist/google/protobuf/duration.d.ts +8 -2
- package/dist/google/protobuf/timestamp.d.ts +8 -2
- package/dist/message_formats.d.ts +10 -62
- package/dist/message_formats.js +5 -424
- package/dist/mission_planning.d.ts +8 -2
- package/dist/req_rep.d.ts +8 -2
- package/dist/telemetry.d.ts +10 -12
- package/dist/telemetry.js +4 -78
- package/package.json +1 -7
- package/README.md +0 -40
package/dist/aquatroll.d.ts
CHANGED
|
@@ -424,12 +424,18 @@ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefi
|
|
|
424
424
|
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 {} ? {
|
|
425
425
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
426
426
|
} : Partial<T>;
|
|
427
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
428
|
+
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
429
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
430
|
+
} & {
|
|
431
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
432
|
+
};
|
|
427
433
|
interface MessageFns<T> {
|
|
428
434
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
429
435
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
430
436
|
fromJSON(object: any): T;
|
|
431
437
|
toJSON(message: T): unknown;
|
|
432
|
-
create(base?:
|
|
433
|
-
fromPartial(object:
|
|
438
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
439
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
434
440
|
}
|
|
435
441
|
export {};
|
package/dist/control.d.ts
CHANGED
|
@@ -205,16 +205,6 @@ export interface StartDiveCtrl {
|
|
|
205
205
|
*/
|
|
206
206
|
export interface EndDiveCtrl {
|
|
207
207
|
}
|
|
208
|
-
/**
|
|
209
|
-
* Message sent when the user wants to format a connected removable storage device.
|
|
210
|
-
*
|
|
211
|
-
* The app will receive a RemovableStorageTel message with information about the newly formatted drive.
|
|
212
|
-
*
|
|
213
|
-
* Warning: The drone will delete any partitions and format the drive with a single exFat partition.
|
|
214
|
-
* Any data on the drive will be lost.
|
|
215
|
-
*/
|
|
216
|
-
export interface FormatRemovableStorageDeviceCtrl {
|
|
217
|
-
}
|
|
218
208
|
export declare const MotionInputCtrl: MessageFns<MotionInputCtrl>;
|
|
219
209
|
export declare const TiltVelocityCtrl: MessageFns<TiltVelocityCtrl>;
|
|
220
210
|
export declare const LightsCtrl: MessageFns<LightsCtrl>;
|
|
@@ -257,17 +247,22 @@ export declare const ActivateMultibeamCtrl: MessageFns<ActivateMultibeamCtrl>;
|
|
|
257
247
|
export declare const DeactivateMultibeamCtrl: MessageFns<DeactivateMultibeamCtrl>;
|
|
258
248
|
export declare const StartDiveCtrl: MessageFns<StartDiveCtrl>;
|
|
259
249
|
export declare const EndDiveCtrl: MessageFns<EndDiveCtrl>;
|
|
260
|
-
export declare const FormatRemovableStorageDeviceCtrl: MessageFns<FormatRemovableStorageDeviceCtrl>;
|
|
261
250
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
262
251
|
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 {} ? {
|
|
263
252
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
264
253
|
} : Partial<T>;
|
|
254
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
255
|
+
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
256
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
257
|
+
} & {
|
|
258
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
259
|
+
};
|
|
265
260
|
interface MessageFns<T> {
|
|
266
261
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
267
262
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
268
263
|
fromJSON(object: any): T;
|
|
269
264
|
toJSON(message: T): unknown;
|
|
270
|
-
create(base?:
|
|
271
|
-
fromPartial(object:
|
|
265
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
266
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
272
267
|
}
|
|
273
268
|
export {};
|
package/dist/control.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: control.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
8
|
+
exports.EndDiveCtrl = exports.StartDiveCtrl = exports.DeactivateMultibeamCtrl = exports.ActivateMultibeamCtrl = exports.SetMultibeamConfigCtrl = exports.SetAquaTrollConnectionStatusCtrl = exports.SetAquaTrollParameterUnitCtrl = exports.RestartGuestPortsCtrl = exports.ActivateGuestPortsCtrl = exports.DeactivateGuestPortsCtrl = exports.MultibeamServoCtrl = exports.GenericServoCtrl = exports.GripperCtrl = exports.SystemTimeCtrl = exports.PingerConfigurationCtrl = exports.WaterDensityCtrl = exports.TiltStabilizationCtrl = exports.CalibrateDvlGyroCtrl = exports.ResetOdometerCtrl = exports.ResetPositionCtrl = exports.ClearMissionCtrl = exports.PauseMissionCtrl = exports.RunMissionCtrl = exports.AutoPilotHeaveCtrl = exports.AutoPilotSurgeYawCtrl = exports.WeatherVaningCtrl = exports.StationKeepingCtrl = exports.AutoAltitudeCtrl = exports.AutoDepthCtrl = exports.AutoHeadingCtrl = exports.FinishCalibrationCtrl = exports.CancelCalibrationCtrl = exports.StartCalibrationCtrl = exports.TakePictureCtrl = exports.RecordCtrl = exports.WatchdogCtrl = exports.PilotGPSPositionCtrl = exports.LaserCtrl = exports.GuestportLightsCtrl = exports.LightsCtrl = exports.TiltVelocityCtrl = exports.MotionInputCtrl = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const aquatroll_1 = require("./aquatroll");
|
|
@@ -2041,43 +2041,6 @@ exports.EndDiveCtrl = {
|
|
|
2041
2041
|
return message;
|
|
2042
2042
|
},
|
|
2043
2043
|
};
|
|
2044
|
-
function createBaseFormatRemovableStorageDeviceCtrl() {
|
|
2045
|
-
return {};
|
|
2046
|
-
}
|
|
2047
|
-
exports.FormatRemovableStorageDeviceCtrl = {
|
|
2048
|
-
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
2049
|
-
return writer;
|
|
2050
|
-
},
|
|
2051
|
-
decode(input, length) {
|
|
2052
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2053
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2054
|
-
const message = createBaseFormatRemovableStorageDeviceCtrl();
|
|
2055
|
-
while (reader.pos < end) {
|
|
2056
|
-
const tag = reader.uint32();
|
|
2057
|
-
switch (tag >>> 3) {
|
|
2058
|
-
}
|
|
2059
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
2060
|
-
break;
|
|
2061
|
-
}
|
|
2062
|
-
reader.skip(tag & 7);
|
|
2063
|
-
}
|
|
2064
|
-
return message;
|
|
2065
|
-
},
|
|
2066
|
-
fromJSON(_) {
|
|
2067
|
-
return {};
|
|
2068
|
-
},
|
|
2069
|
-
toJSON(_) {
|
|
2070
|
-
const obj = {};
|
|
2071
|
-
return obj;
|
|
2072
|
-
},
|
|
2073
|
-
create(base) {
|
|
2074
|
-
return exports.FormatRemovableStorageDeviceCtrl.fromPartial(base ?? {});
|
|
2075
|
-
},
|
|
2076
|
-
fromPartial(_) {
|
|
2077
|
-
const message = createBaseFormatRemovableStorageDeviceCtrl();
|
|
2078
|
-
return message;
|
|
2079
|
-
},
|
|
2080
|
-
};
|
|
2081
2044
|
const gt = (() => {
|
|
2082
2045
|
if (typeof globalThis !== "undefined") {
|
|
2083
2046
|
return globalThis;
|
|
@@ -121,12 +121,18 @@ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefi
|
|
|
121
121
|
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 {} ? {
|
|
122
122
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
123
123
|
} : Partial<T>;
|
|
124
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
125
|
+
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
126
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
127
|
+
} & {
|
|
128
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
129
|
+
};
|
|
124
130
|
interface MessageFns<T> {
|
|
125
131
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
126
132
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
127
133
|
fromJSON(object: any): T;
|
|
128
134
|
toJSON(message: T): unknown;
|
|
129
|
-
create(base?:
|
|
130
|
-
fromPartial(object:
|
|
135
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
136
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
131
137
|
}
|
|
132
138
|
export {};
|
|
@@ -81,12 +81,18 @@ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefi
|
|
|
81
81
|
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 {} ? {
|
|
82
82
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
83
83
|
} : Partial<T>;
|
|
84
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
85
|
+
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
86
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
87
|
+
} & {
|
|
88
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
89
|
+
};
|
|
84
90
|
interface MessageFns<T> {
|
|
85
91
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
86
92
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
87
93
|
fromJSON(object: any): T;
|
|
88
94
|
toJSON(message: T): unknown;
|
|
89
|
-
create(base?:
|
|
90
|
-
fromPartial(object:
|
|
95
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
96
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
91
97
|
}
|
|
92
98
|
export {};
|
|
@@ -110,12 +110,18 @@ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefi
|
|
|
110
110
|
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 {} ? {
|
|
111
111
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
112
112
|
} : Partial<T>;
|
|
113
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
114
|
+
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
115
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
116
|
+
} & {
|
|
117
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
118
|
+
};
|
|
113
119
|
interface MessageFns<T> {
|
|
114
120
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
115
121
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
116
122
|
fromJSON(object: any): T;
|
|
117
123
|
toJSON(message: T): unknown;
|
|
118
|
-
create(base?:
|
|
119
|
-
fromPartial(object:
|
|
124
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
125
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
120
126
|
}
|
|
121
127
|
export {};
|
|
@@ -1143,61 +1143,6 @@ export interface StorageSpace {
|
|
|
1143
1143
|
/** Available bytes of storage space (B). */
|
|
1144
1144
|
freeSpace: number;
|
|
1145
1145
|
}
|
|
1146
|
-
/** Storage partition. */
|
|
1147
|
-
export interface StoragePartition {
|
|
1148
|
-
/** The amount of storage space on the device. */
|
|
1149
|
-
storageSpace: StorageSpace | undefined;
|
|
1150
|
-
/** File system type of the removable storage device. */
|
|
1151
|
-
fileSystemType: string;
|
|
1152
|
-
/** Partition device path */
|
|
1153
|
-
devicePath: string;
|
|
1154
|
-
/** Mount path of the partition. */
|
|
1155
|
-
mountPath: string;
|
|
1156
|
-
}
|
|
1157
|
-
/** Removable storage device. */
|
|
1158
|
-
export interface RemovableStorageDevice {
|
|
1159
|
-
/** USB vendor name. */
|
|
1160
|
-
vendorName: string;
|
|
1161
|
-
/** Model name of the USB storage device. */
|
|
1162
|
-
modelName: string;
|
|
1163
|
-
/** Mount path of the storage device. */
|
|
1164
|
-
devicePath: string;
|
|
1165
|
-
/** Status of the storage device. */
|
|
1166
|
-
status: RemovableStorageDevice_Status;
|
|
1167
|
-
/** Any active error flags for the storage device. */
|
|
1168
|
-
errorFlags: RemovableStorageErrorFlags | undefined;
|
|
1169
|
-
/** List of partitions on the storage device. */
|
|
1170
|
-
partitions: StoragePartition[];
|
|
1171
|
-
}
|
|
1172
|
-
/** Overall status of the storage device. */
|
|
1173
|
-
export declare enum RemovableStorageDevice_Status {
|
|
1174
|
-
/** STATUS_UNSPECIFIED - Unspecified. */
|
|
1175
|
-
STATUS_UNSPECIFIED = 0,
|
|
1176
|
-
/** STATUS_READY - The storage device is valid and ready for use. */
|
|
1177
|
-
STATUS_READY = 1,
|
|
1178
|
-
/** STATUS_FORMATTING - The storage device is being formatted */
|
|
1179
|
-
STATUS_FORMATTING = 2,
|
|
1180
|
-
/** STATUS_ERROR - The storage device is in an error state. */
|
|
1181
|
-
STATUS_ERROR = 3,
|
|
1182
|
-
UNRECOGNIZED = -1
|
|
1183
|
-
}
|
|
1184
|
-
export declare function removableStorageDevice_StatusFromJSON(object: any): RemovableStorageDevice_Status;
|
|
1185
|
-
export declare function removableStorageDevice_StatusToJSON(object: RemovableStorageDevice_Status): string;
|
|
1186
|
-
/** Error flags related to a removable storage device. */
|
|
1187
|
-
export interface RemovableStorageErrorFlags {
|
|
1188
|
-
/** Optional error message to give additional information from the drone to a client about active error flags. */
|
|
1189
|
-
errorMessage: string;
|
|
1190
|
-
/** Device is attached but no partitions are found. */
|
|
1191
|
-
noPartitionsFound: boolean;
|
|
1192
|
-
/** Multiple partitions are found. */
|
|
1193
|
-
multiplePartitionsFound: boolean;
|
|
1194
|
-
/** The wrong file system is found. */
|
|
1195
|
-
wrongFileSystemFound: boolean;
|
|
1196
|
-
/** The device is in read-only mode. */
|
|
1197
|
-
deviceIsReadOnly: boolean;
|
|
1198
|
-
/** Formatting of the device failed. */
|
|
1199
|
-
formattingFailed: boolean;
|
|
1200
|
-
}
|
|
1201
1146
|
/** Compass calibration state. */
|
|
1202
1147
|
export interface CalibrationState {
|
|
1203
1148
|
/** Current calibration status. */
|
|
@@ -1220,7 +1165,7 @@ export interface CalibrationState {
|
|
|
1220
1165
|
/**
|
|
1221
1166
|
* Status of the compass calibration procedure.
|
|
1222
1167
|
*
|
|
1223
|
-
* When calibration is started, the status will indicate the active (
|
|
1168
|
+
* When calibration is started, the status will indicate the active (upfacing) axis.
|
|
1224
1169
|
*/
|
|
1225
1170
|
export declare enum CalibrationState_Status {
|
|
1226
1171
|
/** STATUS_UNSPECIFIED - Unspecified status. */
|
|
@@ -1241,7 +1186,7 @@ export declare enum CalibrationState_Status {
|
|
|
1241
1186
|
STATUS_CALIBRATING_Z_POSITIVE = 7,
|
|
1242
1187
|
/** STATUS_CALIBRATING_Z_NEGATIVE - Compass is calibrating and the negative Z axis is active. */
|
|
1243
1188
|
STATUS_CALIBRATING_Z_NEGATIVE = 8,
|
|
1244
|
-
/** STATUS_CALIBRATING_THRUSTER - Compass is calibrating for thruster
|
|
1189
|
+
/** STATUS_CALIBRATING_THRUSTER - Compass is calibrating for thruster interferance. */
|
|
1245
1190
|
STATUS_CALIBRATING_THRUSTER = 9,
|
|
1246
1191
|
UNRECOGNIZED = -1
|
|
1247
1192
|
}
|
|
@@ -1855,9 +1800,6 @@ export declare const ControllerHealth: MessageFns<ControllerHealth>;
|
|
|
1855
1800
|
export declare const DiveTime: MessageFns<DiveTime>;
|
|
1856
1801
|
export declare const RecordOn: MessageFns<RecordOn>;
|
|
1857
1802
|
export declare const StorageSpace: MessageFns<StorageSpace>;
|
|
1858
|
-
export declare const StoragePartition: MessageFns<StoragePartition>;
|
|
1859
|
-
export declare const RemovableStorageDevice: MessageFns<RemovableStorageDevice>;
|
|
1860
|
-
export declare const RemovableStorageErrorFlags: MessageFns<RemovableStorageErrorFlags>;
|
|
1861
1803
|
export declare const CalibrationState: MessageFns<CalibrationState>;
|
|
1862
1804
|
export declare const IperfStatus: MessageFns<IperfStatus>;
|
|
1863
1805
|
export declare const NStreamers: MessageFns<NStreamers>;
|
|
@@ -1893,12 +1835,18 @@ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefi
|
|
|
1893
1835
|
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 {} ? {
|
|
1894
1836
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
1895
1837
|
} : Partial<T>;
|
|
1838
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
1839
|
+
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
1840
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
1841
|
+
} & {
|
|
1842
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
1843
|
+
};
|
|
1896
1844
|
interface MessageFns<T> {
|
|
1897
1845
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1898
1846
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1899
1847
|
fromJSON(object: any): T;
|
|
1900
1848
|
toJSON(message: T): unknown;
|
|
1901
|
-
create(base?:
|
|
1902
|
-
fromPartial(object:
|
|
1849
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
1850
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
1903
1851
|
}
|
|
1904
1852
|
export {};
|
package/dist/message_formats.js
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: message_formats.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.TimeLapseState = exports.RecordState = exports.ConnectedClient = exports.ClientInfo = exports.GripperVelocities = exports.SystemTime = exports.TiltStabilizationState = exports.ControlMode = exports.AutoPilotHeaveState = exports.AutoPilotSurgeYawState = exports.WeatherVaningState = exports.StationKeepingState = exports.AutoAltitudeState = exports.AutoDepthState = exports.AutoHeadingState = exports.ConnectionDuration = exports.LatLongPosition = exports.Laser = exports.Lights = exports.MotionInput = exports.BinlogRecord = exports.MultibeamConfig_MaximumNumberOfBeams = exports.MultibeamConfig_PingRate = exports.CalibrationState_Status = exports.
|
|
9
|
-
exports.ThicknessGauge = exports.GuestPortRestartInfo = exports.GuestPortInfo = exports.GuestPortConnectorInfo = exports.GuestPortDeviceList = exports.GuestPortDevice = exports.NavigationSensorStatus = exports.OverlayParameters = exports.CameraParameters = exports.ErrorFlags = exports.DroneInfo = exports.TiltVelocity = exports.TiltAngle = exports.NStreamers = exports.IperfStatus = exports.CalibrationState = exports.
|
|
10
|
-
exports.CPUInfo = exports.PersistentStorageSettings = exports.MutltibeamRecordingIndex = exports.MultibeamFrameOffset = exports.MultibeamErrorFlags = exports.MultibeamDiscovery = exports.MultibeamConfig = exports.MultibeamPing = exports.MedusaSpectrometerData = exports.Imu = exports.Vector3 =
|
|
8
|
+
exports.WaterDensity = exports.TimeLapseState = exports.RecordState = exports.ConnectedClient = exports.ClientInfo = exports.GripperVelocities = exports.SystemTime = exports.TiltStabilizationState = exports.ControlMode = exports.AutoPilotHeaveState = exports.AutoPilotSurgeYawState = exports.WeatherVaningState = exports.StationKeepingState = exports.AutoAltitudeState = exports.AutoDepthState = exports.AutoHeadingState = exports.ConnectionDuration = exports.LatLongPosition = exports.Laser = exports.Lights = exports.MotionInput = exports.BinlogRecord = exports.MultibeamConfig_MaximumNumberOfBeams = exports.MultibeamConfig_PingRate = exports.CalibrationState_Status = exports.BatteryBQ40Z50_BatteryStatus_BatteryError = exports.PingerConfiguration_MountingDirection = exports.MultibeamFrequencyMode = exports.GuestPortError = exports.GuestPortDetachStatus = exports.NavigationSensorID = exports.GuestPortNumber = exports.GuestPortDeviceID = exports.FontSize = exports.ThicknessUnit = exports.DepthUnit = exports.LogoType = exports.TemperatureUnit = exports.Camera = exports.Framerate = exports.Resolution = exports.PressureSensorType = exports.Model = exports.NotificationLevel = exports.NotificationType = exports.ResetCoordinateSource = exports.HeadingMode = exports.HeadingSource = exports.LocationSource = exports.IntervalType = void 0;
|
|
9
|
+
exports.GuestPortCurrent = exports.MultibeamServo = exports.GenericServo = exports.CpProbe = exports.ThicknessGauge = exports.GuestPortRestartInfo = exports.GuestPortInfo = exports.GuestPortConnectorInfo = exports.GuestPortDeviceList = exports.GuestPortDevice = exports.NavigationSensorStatus = exports.OverlayParameters = exports.CameraParameters = exports.ErrorFlags = exports.DroneInfo = exports.TiltVelocity = exports.TiltAngle = exports.NStreamers = exports.IperfStatus = exports.CalibrationState = exports.StorageSpace = exports.RecordOn = exports.DiveTime = exports.ControllerHealth = exports.ControlForce = exports.Notification = exports.Reference = exports.Depth = exports.DvlVelocity = exports.DvlTransducer = exports.ResetPositionSettings = exports.PositionEstimate = exports.ForwardDistance = exports.Altitude = exports.MagneticDeclination = exports.Attitude = exports.BatteryBQ40Z50_BatteryChargingEvents = exports.BatteryBQ40Z50_BatterySafetyEvents = exports.BatteryBQ40Z50_BatteryLifetimes_CellVoltages = exports.BatteryBQ40Z50_BatteryLifetimes = exports.BatteryBQ40Z50_BatteryStatus = exports.BatteryBQ40Z50_Temperature = exports.BatteryBQ40Z50_Voltage = exports.BatteryBQ40Z50 = exports.Battery = exports.CanisterHumidity = exports.CanisterTemperature = exports.CPUTemperature = exports.WaterTemperature = exports.PingerConfiguration = void 0;
|
|
10
|
+
exports.CPUInfo = exports.PersistentStorageSettings = exports.MutltibeamRecordingIndex = exports.MultibeamFrameOffset = exports.MultibeamErrorFlags = exports.MultibeamDiscovery = exports.MultibeamConfig = exports.MultibeamPing = exports.MedusaSpectrometerData = exports.Imu = exports.Vector3 = void 0;
|
|
11
11
|
exports.intervalTypeFromJSON = intervalTypeFromJSON;
|
|
12
12
|
exports.intervalTypeToJSON = intervalTypeToJSON;
|
|
13
13
|
exports.locationSourceFromJSON = locationSourceFromJSON;
|
|
@@ -58,8 +58,6 @@ exports.pingerConfiguration_MountingDirectionFromJSON = pingerConfiguration_Moun
|
|
|
58
58
|
exports.pingerConfiguration_MountingDirectionToJSON = pingerConfiguration_MountingDirectionToJSON;
|
|
59
59
|
exports.batteryBQ40Z50_BatteryStatus_BatteryErrorFromJSON = batteryBQ40Z50_BatteryStatus_BatteryErrorFromJSON;
|
|
60
60
|
exports.batteryBQ40Z50_BatteryStatus_BatteryErrorToJSON = batteryBQ40Z50_BatteryStatus_BatteryErrorToJSON;
|
|
61
|
-
exports.removableStorageDevice_StatusFromJSON = removableStorageDevice_StatusFromJSON;
|
|
62
|
-
exports.removableStorageDevice_StatusToJSON = removableStorageDevice_StatusToJSON;
|
|
63
61
|
exports.calibrationState_StatusFromJSON = calibrationState_StatusFromJSON;
|
|
64
62
|
exports.calibrationState_StatusToJSON = calibrationState_StatusToJSON;
|
|
65
63
|
exports.multibeamConfig_PingRateFromJSON = multibeamConfig_PingRateFromJSON;
|
|
@@ -1801,58 +1799,10 @@ function batteryBQ40Z50_BatteryStatus_BatteryErrorToJSON(object) {
|
|
|
1801
1799
|
return "UNRECOGNIZED";
|
|
1802
1800
|
}
|
|
1803
1801
|
}
|
|
1804
|
-
/** Overall status of the storage device. */
|
|
1805
|
-
var RemovableStorageDevice_Status;
|
|
1806
|
-
(function (RemovableStorageDevice_Status) {
|
|
1807
|
-
/** STATUS_UNSPECIFIED - Unspecified. */
|
|
1808
|
-
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_UNSPECIFIED"] = 0] = "STATUS_UNSPECIFIED";
|
|
1809
|
-
/** STATUS_READY - The storage device is valid and ready for use. */
|
|
1810
|
-
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_READY"] = 1] = "STATUS_READY";
|
|
1811
|
-
/** STATUS_FORMATTING - The storage device is being formatted */
|
|
1812
|
-
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_FORMATTING"] = 2] = "STATUS_FORMATTING";
|
|
1813
|
-
/** STATUS_ERROR - The storage device is in an error state. */
|
|
1814
|
-
RemovableStorageDevice_Status[RemovableStorageDevice_Status["STATUS_ERROR"] = 3] = "STATUS_ERROR";
|
|
1815
|
-
RemovableStorageDevice_Status[RemovableStorageDevice_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1816
|
-
})(RemovableStorageDevice_Status || (exports.RemovableStorageDevice_Status = RemovableStorageDevice_Status = {}));
|
|
1817
|
-
function removableStorageDevice_StatusFromJSON(object) {
|
|
1818
|
-
switch (object) {
|
|
1819
|
-
case 0:
|
|
1820
|
-
case "STATUS_UNSPECIFIED":
|
|
1821
|
-
return RemovableStorageDevice_Status.STATUS_UNSPECIFIED;
|
|
1822
|
-
case 1:
|
|
1823
|
-
case "STATUS_READY":
|
|
1824
|
-
return RemovableStorageDevice_Status.STATUS_READY;
|
|
1825
|
-
case 2:
|
|
1826
|
-
case "STATUS_FORMATTING":
|
|
1827
|
-
return RemovableStorageDevice_Status.STATUS_FORMATTING;
|
|
1828
|
-
case 3:
|
|
1829
|
-
case "STATUS_ERROR":
|
|
1830
|
-
return RemovableStorageDevice_Status.STATUS_ERROR;
|
|
1831
|
-
case -1:
|
|
1832
|
-
case "UNRECOGNIZED":
|
|
1833
|
-
default:
|
|
1834
|
-
return RemovableStorageDevice_Status.UNRECOGNIZED;
|
|
1835
|
-
}
|
|
1836
|
-
}
|
|
1837
|
-
function removableStorageDevice_StatusToJSON(object) {
|
|
1838
|
-
switch (object) {
|
|
1839
|
-
case RemovableStorageDevice_Status.STATUS_UNSPECIFIED:
|
|
1840
|
-
return "STATUS_UNSPECIFIED";
|
|
1841
|
-
case RemovableStorageDevice_Status.STATUS_READY:
|
|
1842
|
-
return "STATUS_READY";
|
|
1843
|
-
case RemovableStorageDevice_Status.STATUS_FORMATTING:
|
|
1844
|
-
return "STATUS_FORMATTING";
|
|
1845
|
-
case RemovableStorageDevice_Status.STATUS_ERROR:
|
|
1846
|
-
return "STATUS_ERROR";
|
|
1847
|
-
case RemovableStorageDevice_Status.UNRECOGNIZED:
|
|
1848
|
-
default:
|
|
1849
|
-
return "UNRECOGNIZED";
|
|
1850
|
-
}
|
|
1851
|
-
}
|
|
1852
1802
|
/**
|
|
1853
1803
|
* Status of the compass calibration procedure.
|
|
1854
1804
|
*
|
|
1855
|
-
* When calibration is started, the status will indicate the active (
|
|
1805
|
+
* When calibration is started, the status will indicate the active (upfacing) axis.
|
|
1856
1806
|
*/
|
|
1857
1807
|
var CalibrationState_Status;
|
|
1858
1808
|
(function (CalibrationState_Status) {
|
|
@@ -1874,7 +1824,7 @@ var CalibrationState_Status;
|
|
|
1874
1824
|
CalibrationState_Status[CalibrationState_Status["STATUS_CALIBRATING_Z_POSITIVE"] = 7] = "STATUS_CALIBRATING_Z_POSITIVE";
|
|
1875
1825
|
/** STATUS_CALIBRATING_Z_NEGATIVE - Compass is calibrating and the negative Z axis is active. */
|
|
1876
1826
|
CalibrationState_Status[CalibrationState_Status["STATUS_CALIBRATING_Z_NEGATIVE"] = 8] = "STATUS_CALIBRATING_Z_NEGATIVE";
|
|
1877
|
-
/** STATUS_CALIBRATING_THRUSTER - Compass is calibrating for thruster
|
|
1827
|
+
/** STATUS_CALIBRATING_THRUSTER - Compass is calibrating for thruster interferance. */
|
|
1878
1828
|
CalibrationState_Status[CalibrationState_Status["STATUS_CALIBRATING_THRUSTER"] = 9] = "STATUS_CALIBRATING_THRUSTER";
|
|
1879
1829
|
CalibrationState_Status[CalibrationState_Status["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1880
1830
|
})(CalibrationState_Status || (exports.CalibrationState_Status = CalibrationState_Status = {}));
|
|
@@ -7506,375 +7456,6 @@ exports.StorageSpace = {
|
|
|
7506
7456
|
return message;
|
|
7507
7457
|
},
|
|
7508
7458
|
};
|
|
7509
|
-
function createBaseStoragePartition() {
|
|
7510
|
-
return { storageSpace: undefined, fileSystemType: "", devicePath: "", mountPath: "" };
|
|
7511
|
-
}
|
|
7512
|
-
exports.StoragePartition = {
|
|
7513
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
7514
|
-
if (message.storageSpace !== undefined) {
|
|
7515
|
-
exports.StorageSpace.encode(message.storageSpace, writer.uint32(10).fork()).join();
|
|
7516
|
-
}
|
|
7517
|
-
if (message.fileSystemType !== "") {
|
|
7518
|
-
writer.uint32(18).string(message.fileSystemType);
|
|
7519
|
-
}
|
|
7520
|
-
if (message.devicePath !== "") {
|
|
7521
|
-
writer.uint32(26).string(message.devicePath);
|
|
7522
|
-
}
|
|
7523
|
-
if (message.mountPath !== "") {
|
|
7524
|
-
writer.uint32(34).string(message.mountPath);
|
|
7525
|
-
}
|
|
7526
|
-
return writer;
|
|
7527
|
-
},
|
|
7528
|
-
decode(input, length) {
|
|
7529
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
7530
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7531
|
-
const message = createBaseStoragePartition();
|
|
7532
|
-
while (reader.pos < end) {
|
|
7533
|
-
const tag = reader.uint32();
|
|
7534
|
-
switch (tag >>> 3) {
|
|
7535
|
-
case 1: {
|
|
7536
|
-
if (tag !== 10) {
|
|
7537
|
-
break;
|
|
7538
|
-
}
|
|
7539
|
-
message.storageSpace = exports.StorageSpace.decode(reader, reader.uint32());
|
|
7540
|
-
continue;
|
|
7541
|
-
}
|
|
7542
|
-
case 2: {
|
|
7543
|
-
if (tag !== 18) {
|
|
7544
|
-
break;
|
|
7545
|
-
}
|
|
7546
|
-
message.fileSystemType = reader.string();
|
|
7547
|
-
continue;
|
|
7548
|
-
}
|
|
7549
|
-
case 3: {
|
|
7550
|
-
if (tag !== 26) {
|
|
7551
|
-
break;
|
|
7552
|
-
}
|
|
7553
|
-
message.devicePath = reader.string();
|
|
7554
|
-
continue;
|
|
7555
|
-
}
|
|
7556
|
-
case 4: {
|
|
7557
|
-
if (tag !== 34) {
|
|
7558
|
-
break;
|
|
7559
|
-
}
|
|
7560
|
-
message.mountPath = reader.string();
|
|
7561
|
-
continue;
|
|
7562
|
-
}
|
|
7563
|
-
}
|
|
7564
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7565
|
-
break;
|
|
7566
|
-
}
|
|
7567
|
-
reader.skip(tag & 7);
|
|
7568
|
-
}
|
|
7569
|
-
return message;
|
|
7570
|
-
},
|
|
7571
|
-
fromJSON(object) {
|
|
7572
|
-
return {
|
|
7573
|
-
storageSpace: isSet(object.storageSpace) ? exports.StorageSpace.fromJSON(object.storageSpace) : undefined,
|
|
7574
|
-
fileSystemType: isSet(object.fileSystemType) ? gt.String(object.fileSystemType) : "",
|
|
7575
|
-
devicePath: isSet(object.devicePath) ? gt.String(object.devicePath) : "",
|
|
7576
|
-
mountPath: isSet(object.mountPath) ? gt.String(object.mountPath) : "",
|
|
7577
|
-
};
|
|
7578
|
-
},
|
|
7579
|
-
toJSON(message) {
|
|
7580
|
-
const obj = {};
|
|
7581
|
-
if (message.storageSpace !== undefined) {
|
|
7582
|
-
obj.storageSpace = exports.StorageSpace.toJSON(message.storageSpace);
|
|
7583
|
-
}
|
|
7584
|
-
if (message.fileSystemType !== "") {
|
|
7585
|
-
obj.fileSystemType = message.fileSystemType;
|
|
7586
|
-
}
|
|
7587
|
-
if (message.devicePath !== "") {
|
|
7588
|
-
obj.devicePath = message.devicePath;
|
|
7589
|
-
}
|
|
7590
|
-
if (message.mountPath !== "") {
|
|
7591
|
-
obj.mountPath = message.mountPath;
|
|
7592
|
-
}
|
|
7593
|
-
return obj;
|
|
7594
|
-
},
|
|
7595
|
-
create(base) {
|
|
7596
|
-
return exports.StoragePartition.fromPartial(base ?? {});
|
|
7597
|
-
},
|
|
7598
|
-
fromPartial(object) {
|
|
7599
|
-
const message = createBaseStoragePartition();
|
|
7600
|
-
message.storageSpace = (object.storageSpace !== undefined && object.storageSpace !== null)
|
|
7601
|
-
? exports.StorageSpace.fromPartial(object.storageSpace)
|
|
7602
|
-
: undefined;
|
|
7603
|
-
message.fileSystemType = object.fileSystemType ?? "";
|
|
7604
|
-
message.devicePath = object.devicePath ?? "";
|
|
7605
|
-
message.mountPath = object.mountPath ?? "";
|
|
7606
|
-
return message;
|
|
7607
|
-
},
|
|
7608
|
-
};
|
|
7609
|
-
function createBaseRemovableStorageDevice() {
|
|
7610
|
-
return { vendorName: "", modelName: "", devicePath: "", status: 0, errorFlags: undefined, partitions: [] };
|
|
7611
|
-
}
|
|
7612
|
-
exports.RemovableStorageDevice = {
|
|
7613
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
7614
|
-
if (message.vendorName !== "") {
|
|
7615
|
-
writer.uint32(10).string(message.vendorName);
|
|
7616
|
-
}
|
|
7617
|
-
if (message.modelName !== "") {
|
|
7618
|
-
writer.uint32(18).string(message.modelName);
|
|
7619
|
-
}
|
|
7620
|
-
if (message.devicePath !== "") {
|
|
7621
|
-
writer.uint32(26).string(message.devicePath);
|
|
7622
|
-
}
|
|
7623
|
-
if (message.status !== 0) {
|
|
7624
|
-
writer.uint32(32).int32(message.status);
|
|
7625
|
-
}
|
|
7626
|
-
if (message.errorFlags !== undefined) {
|
|
7627
|
-
exports.RemovableStorageErrorFlags.encode(message.errorFlags, writer.uint32(42).fork()).join();
|
|
7628
|
-
}
|
|
7629
|
-
for (const v of message.partitions) {
|
|
7630
|
-
exports.StoragePartition.encode(v, writer.uint32(50).fork()).join();
|
|
7631
|
-
}
|
|
7632
|
-
return writer;
|
|
7633
|
-
},
|
|
7634
|
-
decode(input, length) {
|
|
7635
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
7636
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7637
|
-
const message = createBaseRemovableStorageDevice();
|
|
7638
|
-
while (reader.pos < end) {
|
|
7639
|
-
const tag = reader.uint32();
|
|
7640
|
-
switch (tag >>> 3) {
|
|
7641
|
-
case 1: {
|
|
7642
|
-
if (tag !== 10) {
|
|
7643
|
-
break;
|
|
7644
|
-
}
|
|
7645
|
-
message.vendorName = reader.string();
|
|
7646
|
-
continue;
|
|
7647
|
-
}
|
|
7648
|
-
case 2: {
|
|
7649
|
-
if (tag !== 18) {
|
|
7650
|
-
break;
|
|
7651
|
-
}
|
|
7652
|
-
message.modelName = reader.string();
|
|
7653
|
-
continue;
|
|
7654
|
-
}
|
|
7655
|
-
case 3: {
|
|
7656
|
-
if (tag !== 26) {
|
|
7657
|
-
break;
|
|
7658
|
-
}
|
|
7659
|
-
message.devicePath = reader.string();
|
|
7660
|
-
continue;
|
|
7661
|
-
}
|
|
7662
|
-
case 4: {
|
|
7663
|
-
if (tag !== 32) {
|
|
7664
|
-
break;
|
|
7665
|
-
}
|
|
7666
|
-
message.status = reader.int32();
|
|
7667
|
-
continue;
|
|
7668
|
-
}
|
|
7669
|
-
case 5: {
|
|
7670
|
-
if (tag !== 42) {
|
|
7671
|
-
break;
|
|
7672
|
-
}
|
|
7673
|
-
message.errorFlags = exports.RemovableStorageErrorFlags.decode(reader, reader.uint32());
|
|
7674
|
-
continue;
|
|
7675
|
-
}
|
|
7676
|
-
case 6: {
|
|
7677
|
-
if (tag !== 50) {
|
|
7678
|
-
break;
|
|
7679
|
-
}
|
|
7680
|
-
message.partitions.push(exports.StoragePartition.decode(reader, reader.uint32()));
|
|
7681
|
-
continue;
|
|
7682
|
-
}
|
|
7683
|
-
}
|
|
7684
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7685
|
-
break;
|
|
7686
|
-
}
|
|
7687
|
-
reader.skip(tag & 7);
|
|
7688
|
-
}
|
|
7689
|
-
return message;
|
|
7690
|
-
},
|
|
7691
|
-
fromJSON(object) {
|
|
7692
|
-
return {
|
|
7693
|
-
vendorName: isSet(object.vendorName) ? gt.String(object.vendorName) : "",
|
|
7694
|
-
modelName: isSet(object.modelName) ? gt.String(object.modelName) : "",
|
|
7695
|
-
devicePath: isSet(object.devicePath) ? gt.String(object.devicePath) : "",
|
|
7696
|
-
status: isSet(object.status) ? removableStorageDevice_StatusFromJSON(object.status) : 0,
|
|
7697
|
-
errorFlags: isSet(object.errorFlags) ? exports.RemovableStorageErrorFlags.fromJSON(object.errorFlags) : undefined,
|
|
7698
|
-
partitions: gt.Array.isArray(object?.partitions)
|
|
7699
|
-
? object.partitions.map((e) => exports.StoragePartition.fromJSON(e))
|
|
7700
|
-
: [],
|
|
7701
|
-
};
|
|
7702
|
-
},
|
|
7703
|
-
toJSON(message) {
|
|
7704
|
-
const obj = {};
|
|
7705
|
-
if (message.vendorName !== "") {
|
|
7706
|
-
obj.vendorName = message.vendorName;
|
|
7707
|
-
}
|
|
7708
|
-
if (message.modelName !== "") {
|
|
7709
|
-
obj.modelName = message.modelName;
|
|
7710
|
-
}
|
|
7711
|
-
if (message.devicePath !== "") {
|
|
7712
|
-
obj.devicePath = message.devicePath;
|
|
7713
|
-
}
|
|
7714
|
-
if (message.status !== 0) {
|
|
7715
|
-
obj.status = removableStorageDevice_StatusToJSON(message.status);
|
|
7716
|
-
}
|
|
7717
|
-
if (message.errorFlags !== undefined) {
|
|
7718
|
-
obj.errorFlags = exports.RemovableStorageErrorFlags.toJSON(message.errorFlags);
|
|
7719
|
-
}
|
|
7720
|
-
if (message.partitions?.length) {
|
|
7721
|
-
obj.partitions = message.partitions.map((e) => exports.StoragePartition.toJSON(e));
|
|
7722
|
-
}
|
|
7723
|
-
return obj;
|
|
7724
|
-
},
|
|
7725
|
-
create(base) {
|
|
7726
|
-
return exports.RemovableStorageDevice.fromPartial(base ?? {});
|
|
7727
|
-
},
|
|
7728
|
-
fromPartial(object) {
|
|
7729
|
-
const message = createBaseRemovableStorageDevice();
|
|
7730
|
-
message.vendorName = object.vendorName ?? "";
|
|
7731
|
-
message.modelName = object.modelName ?? "";
|
|
7732
|
-
message.devicePath = object.devicePath ?? "";
|
|
7733
|
-
message.status = object.status ?? 0;
|
|
7734
|
-
message.errorFlags = (object.errorFlags !== undefined && object.errorFlags !== null)
|
|
7735
|
-
? exports.RemovableStorageErrorFlags.fromPartial(object.errorFlags)
|
|
7736
|
-
: undefined;
|
|
7737
|
-
message.partitions = object.partitions?.map((e) => exports.StoragePartition.fromPartial(e)) || [];
|
|
7738
|
-
return message;
|
|
7739
|
-
},
|
|
7740
|
-
};
|
|
7741
|
-
function createBaseRemovableStorageErrorFlags() {
|
|
7742
|
-
return {
|
|
7743
|
-
errorMessage: "",
|
|
7744
|
-
noPartitionsFound: false,
|
|
7745
|
-
multiplePartitionsFound: false,
|
|
7746
|
-
wrongFileSystemFound: false,
|
|
7747
|
-
deviceIsReadOnly: false,
|
|
7748
|
-
formattingFailed: false,
|
|
7749
|
-
};
|
|
7750
|
-
}
|
|
7751
|
-
exports.RemovableStorageErrorFlags = {
|
|
7752
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
7753
|
-
if (message.errorMessage !== "") {
|
|
7754
|
-
writer.uint32(10).string(message.errorMessage);
|
|
7755
|
-
}
|
|
7756
|
-
if (message.noPartitionsFound !== false) {
|
|
7757
|
-
writer.uint32(16).bool(message.noPartitionsFound);
|
|
7758
|
-
}
|
|
7759
|
-
if (message.multiplePartitionsFound !== false) {
|
|
7760
|
-
writer.uint32(24).bool(message.multiplePartitionsFound);
|
|
7761
|
-
}
|
|
7762
|
-
if (message.wrongFileSystemFound !== false) {
|
|
7763
|
-
writer.uint32(32).bool(message.wrongFileSystemFound);
|
|
7764
|
-
}
|
|
7765
|
-
if (message.deviceIsReadOnly !== false) {
|
|
7766
|
-
writer.uint32(40).bool(message.deviceIsReadOnly);
|
|
7767
|
-
}
|
|
7768
|
-
if (message.formattingFailed !== false) {
|
|
7769
|
-
writer.uint32(48).bool(message.formattingFailed);
|
|
7770
|
-
}
|
|
7771
|
-
return writer;
|
|
7772
|
-
},
|
|
7773
|
-
decode(input, length) {
|
|
7774
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
7775
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7776
|
-
const message = createBaseRemovableStorageErrorFlags();
|
|
7777
|
-
while (reader.pos < end) {
|
|
7778
|
-
const tag = reader.uint32();
|
|
7779
|
-
switch (tag >>> 3) {
|
|
7780
|
-
case 1: {
|
|
7781
|
-
if (tag !== 10) {
|
|
7782
|
-
break;
|
|
7783
|
-
}
|
|
7784
|
-
message.errorMessage = reader.string();
|
|
7785
|
-
continue;
|
|
7786
|
-
}
|
|
7787
|
-
case 2: {
|
|
7788
|
-
if (tag !== 16) {
|
|
7789
|
-
break;
|
|
7790
|
-
}
|
|
7791
|
-
message.noPartitionsFound = reader.bool();
|
|
7792
|
-
continue;
|
|
7793
|
-
}
|
|
7794
|
-
case 3: {
|
|
7795
|
-
if (tag !== 24) {
|
|
7796
|
-
break;
|
|
7797
|
-
}
|
|
7798
|
-
message.multiplePartitionsFound = reader.bool();
|
|
7799
|
-
continue;
|
|
7800
|
-
}
|
|
7801
|
-
case 4: {
|
|
7802
|
-
if (tag !== 32) {
|
|
7803
|
-
break;
|
|
7804
|
-
}
|
|
7805
|
-
message.wrongFileSystemFound = reader.bool();
|
|
7806
|
-
continue;
|
|
7807
|
-
}
|
|
7808
|
-
case 5: {
|
|
7809
|
-
if (tag !== 40) {
|
|
7810
|
-
break;
|
|
7811
|
-
}
|
|
7812
|
-
message.deviceIsReadOnly = reader.bool();
|
|
7813
|
-
continue;
|
|
7814
|
-
}
|
|
7815
|
-
case 6: {
|
|
7816
|
-
if (tag !== 48) {
|
|
7817
|
-
break;
|
|
7818
|
-
}
|
|
7819
|
-
message.formattingFailed = reader.bool();
|
|
7820
|
-
continue;
|
|
7821
|
-
}
|
|
7822
|
-
}
|
|
7823
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
7824
|
-
break;
|
|
7825
|
-
}
|
|
7826
|
-
reader.skip(tag & 7);
|
|
7827
|
-
}
|
|
7828
|
-
return message;
|
|
7829
|
-
},
|
|
7830
|
-
fromJSON(object) {
|
|
7831
|
-
return {
|
|
7832
|
-
errorMessage: isSet(object.errorMessage) ? gt.String(object.errorMessage) : "",
|
|
7833
|
-
noPartitionsFound: isSet(object.noPartitionsFound) ? gt.Boolean(object.noPartitionsFound) : false,
|
|
7834
|
-
multiplePartitionsFound: isSet(object.multiplePartitionsFound)
|
|
7835
|
-
? gt.Boolean(object.multiplePartitionsFound)
|
|
7836
|
-
: false,
|
|
7837
|
-
wrongFileSystemFound: isSet(object.wrongFileSystemFound) ? gt.Boolean(object.wrongFileSystemFound) : false,
|
|
7838
|
-
deviceIsReadOnly: isSet(object.deviceIsReadOnly) ? gt.Boolean(object.deviceIsReadOnly) : false,
|
|
7839
|
-
formattingFailed: isSet(object.formattingFailed) ? gt.Boolean(object.formattingFailed) : false,
|
|
7840
|
-
};
|
|
7841
|
-
},
|
|
7842
|
-
toJSON(message) {
|
|
7843
|
-
const obj = {};
|
|
7844
|
-
if (message.errorMessage !== "") {
|
|
7845
|
-
obj.errorMessage = message.errorMessage;
|
|
7846
|
-
}
|
|
7847
|
-
if (message.noPartitionsFound !== false) {
|
|
7848
|
-
obj.noPartitionsFound = message.noPartitionsFound;
|
|
7849
|
-
}
|
|
7850
|
-
if (message.multiplePartitionsFound !== false) {
|
|
7851
|
-
obj.multiplePartitionsFound = message.multiplePartitionsFound;
|
|
7852
|
-
}
|
|
7853
|
-
if (message.wrongFileSystemFound !== false) {
|
|
7854
|
-
obj.wrongFileSystemFound = message.wrongFileSystemFound;
|
|
7855
|
-
}
|
|
7856
|
-
if (message.deviceIsReadOnly !== false) {
|
|
7857
|
-
obj.deviceIsReadOnly = message.deviceIsReadOnly;
|
|
7858
|
-
}
|
|
7859
|
-
if (message.formattingFailed !== false) {
|
|
7860
|
-
obj.formattingFailed = message.formattingFailed;
|
|
7861
|
-
}
|
|
7862
|
-
return obj;
|
|
7863
|
-
},
|
|
7864
|
-
create(base) {
|
|
7865
|
-
return exports.RemovableStorageErrorFlags.fromPartial(base ?? {});
|
|
7866
|
-
},
|
|
7867
|
-
fromPartial(object) {
|
|
7868
|
-
const message = createBaseRemovableStorageErrorFlags();
|
|
7869
|
-
message.errorMessage = object.errorMessage ?? "";
|
|
7870
|
-
message.noPartitionsFound = object.noPartitionsFound ?? false;
|
|
7871
|
-
message.multiplePartitionsFound = object.multiplePartitionsFound ?? false;
|
|
7872
|
-
message.wrongFileSystemFound = object.wrongFileSystemFound ?? false;
|
|
7873
|
-
message.deviceIsReadOnly = object.deviceIsReadOnly ?? false;
|
|
7874
|
-
message.formattingFailed = object.formattingFailed ?? false;
|
|
7875
|
-
return message;
|
|
7876
|
-
},
|
|
7877
|
-
};
|
|
7878
7459
|
function createBaseCalibrationState() {
|
|
7879
7460
|
return {
|
|
7880
7461
|
status: 0,
|
|
@@ -335,12 +335,18 @@ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefi
|
|
|
335
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 {} ? {
|
|
336
336
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
337
337
|
} : Partial<T>;
|
|
338
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
339
|
+
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
340
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
341
|
+
} & {
|
|
342
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
343
|
+
};
|
|
338
344
|
interface MessageFns<T> {
|
|
339
345
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
340
346
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
341
347
|
fromJSON(object: any): T;
|
|
342
348
|
toJSON(message: T): unknown;
|
|
343
|
-
create(base?:
|
|
344
|
-
fromPartial(object:
|
|
349
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
350
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
345
351
|
}
|
|
346
352
|
export {};
|
package/dist/req_rep.d.ts
CHANGED
|
@@ -251,12 +251,18 @@ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefi
|
|
|
251
251
|
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 {} ? {
|
|
252
252
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
253
253
|
} : Partial<T>;
|
|
254
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
255
|
+
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
256
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
257
|
+
} & {
|
|
258
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
259
|
+
};
|
|
254
260
|
interface MessageFns<T> {
|
|
255
261
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
256
262
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
257
263
|
fromJSON(object: any): T;
|
|
258
264
|
toJSON(message: T): unknown;
|
|
259
|
-
create(base?:
|
|
260
|
-
fromPartial(object:
|
|
265
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
266
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
261
267
|
}
|
|
262
268
|
export {};
|
package/dist/telemetry.d.ts
CHANGED
|
@@ -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, CanisterHumidity, CanisterTemperature, ConnectedClient, ControlForce, ControllerHealth, ControlMode, CpProbe, CPUInfo, CPUTemperature, Depth, DiveTime, DroneInfo, DvlVelocity, ErrorFlags, ForwardDistance, GenericServo, GuestPortCurrent, Imu, IperfStatus, Laser, LatLongPosition, Lights, MagneticDeclination, MedusaSpectrometerData, MultibeamConfig, MultibeamDiscovery, MultibeamPing, MultibeamServo, Notification, NStreamers, PositionEstimate, RecordState, Reference,
|
|
3
|
+
import { Altitude, Attitude, Battery, BatteryBQ40Z50, CalibrationState, CanisterHumidity, CanisterTemperature, ConnectedClient, ControlForce, ControllerHealth, ControlMode, CpProbe, CPUInfo, CPUTemperature, Depth, DiveTime, DroneInfo, DvlVelocity, ErrorFlags, ForwardDistance, GenericServo, GuestPortCurrent, Imu, IperfStatus, Laser, LatLongPosition, Lights, MagneticDeclination, MedusaSpectrometerData, MultibeamConfig, MultibeamDiscovery, MultibeamPing, MultibeamServo, Notification, NStreamers, PositionEstimate, RecordState, Reference, StorageSpace, SystemTime, ThicknessGauge, TiltAngle, TiltStabilizationState, TimeLapseState, WaterTemperature } from "./message_formats";
|
|
4
4
|
import { MissionStatus, ReferenceAutoPilot } from "./mission_planning";
|
|
5
5
|
/**
|
|
6
6
|
* Telemetry
|
|
@@ -149,15 +149,8 @@ export interface CanisterBottomHumidityTel {
|
|
|
149
149
|
}
|
|
150
150
|
/** Video storage info. */
|
|
151
151
|
export interface VideoStorageSpaceTel {
|
|
152
|
-
/**
|
|
152
|
+
/** Video storage information. */
|
|
153
153
|
storageSpace: StorageSpace | undefined;
|
|
154
|
-
/** Removable Video storage information. Can be empty. */
|
|
155
|
-
removableSpace: StorageSpace | undefined;
|
|
156
|
-
}
|
|
157
|
-
/** Information about removable storage device. */
|
|
158
|
-
export interface RemovableStorageTel {
|
|
159
|
-
/** Information about the storage device (such as partitions) */
|
|
160
|
-
storageDevice: RemovableStorageDevice | undefined;
|
|
161
154
|
}
|
|
162
155
|
/** Data storage info. */
|
|
163
156
|
export interface DataStorageSpaceTel {
|
|
@@ -319,7 +312,6 @@ export declare const CPUTemperatureTel: MessageFns<CPUTemperatureTel>;
|
|
|
319
312
|
export declare const CanisterBottomTemperatureTel: MessageFns<CanisterBottomTemperatureTel>;
|
|
320
313
|
export declare const CanisterBottomHumidityTel: MessageFns<CanisterBottomHumidityTel>;
|
|
321
314
|
export declare const VideoStorageSpaceTel: MessageFns<VideoStorageSpaceTel>;
|
|
322
|
-
export declare const RemovableStorageTel: MessageFns<RemovableStorageTel>;
|
|
323
315
|
export declare const DataStorageSpaceTel: MessageFns<DataStorageSpaceTel>;
|
|
324
316
|
export declare const CalibrationStateTel: MessageFns<CalibrationStateTel>;
|
|
325
317
|
export declare const TiltStabilizationTel: MessageFns<TiltStabilizationTel>;
|
|
@@ -350,12 +342,18 @@ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefi
|
|
|
350
342
|
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 {} ? {
|
|
351
343
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
352
344
|
} : Partial<T>;
|
|
345
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
346
|
+
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
347
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
348
|
+
} & {
|
|
349
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
350
|
+
};
|
|
353
351
|
interface MessageFns<T> {
|
|
354
352
|
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
355
353
|
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
356
354
|
fromJSON(object: any): T;
|
|
357
355
|
toJSON(message: T): unknown;
|
|
358
|
-
create(base?:
|
|
359
|
-
fromPartial(object:
|
|
356
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
357
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
360
358
|
}
|
|
361
359
|
export {};
|
package/dist/telemetry.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: telemetry.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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.
|
|
9
|
-
exports.CPUInfoTel = exports.MultibeamDiscoveryTel = exports.MultibeamConfigTel = exports.MultibeamPingTel =
|
|
8
|
+
exports.MedusaSpectrometerDataTel = 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.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.CPUInfoTel = exports.MultibeamDiscoveryTel = exports.MultibeamConfigTel = exports.MultibeamPingTel = void 0;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
12
12
|
const aquatroll_1 = require("./aquatroll");
|
|
@@ -1475,16 +1475,13 @@ exports.CanisterBottomHumidityTel = {
|
|
|
1475
1475
|
},
|
|
1476
1476
|
};
|
|
1477
1477
|
function createBaseVideoStorageSpaceTel() {
|
|
1478
|
-
return { storageSpace: undefined
|
|
1478
|
+
return { storageSpace: undefined };
|
|
1479
1479
|
}
|
|
1480
1480
|
exports.VideoStorageSpaceTel = {
|
|
1481
1481
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1482
1482
|
if (message.storageSpace !== undefined) {
|
|
1483
1483
|
message_formats_1.StorageSpace.encode(message.storageSpace, writer.uint32(10).fork()).join();
|
|
1484
1484
|
}
|
|
1485
|
-
if (message.removableSpace !== undefined) {
|
|
1486
|
-
message_formats_1.StorageSpace.encode(message.removableSpace, writer.uint32(18).fork()).join();
|
|
1487
|
-
}
|
|
1488
1485
|
return writer;
|
|
1489
1486
|
},
|
|
1490
1487
|
decode(input, length) {
|
|
@@ -1501,13 +1498,6 @@ exports.VideoStorageSpaceTel = {
|
|
|
1501
1498
|
message.storageSpace = message_formats_1.StorageSpace.decode(reader, reader.uint32());
|
|
1502
1499
|
continue;
|
|
1503
1500
|
}
|
|
1504
|
-
case 2: {
|
|
1505
|
-
if (tag !== 18) {
|
|
1506
|
-
break;
|
|
1507
|
-
}
|
|
1508
|
-
message.removableSpace = message_formats_1.StorageSpace.decode(reader, reader.uint32());
|
|
1509
|
-
continue;
|
|
1510
|
-
}
|
|
1511
1501
|
}
|
|
1512
1502
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1513
1503
|
break;
|
|
@@ -1517,19 +1507,13 @@ exports.VideoStorageSpaceTel = {
|
|
|
1517
1507
|
return message;
|
|
1518
1508
|
},
|
|
1519
1509
|
fromJSON(object) {
|
|
1520
|
-
return {
|
|
1521
|
-
storageSpace: isSet(object.storageSpace) ? message_formats_1.StorageSpace.fromJSON(object.storageSpace) : undefined,
|
|
1522
|
-
removableSpace: isSet(object.removableSpace) ? message_formats_1.StorageSpace.fromJSON(object.removableSpace) : undefined,
|
|
1523
|
-
};
|
|
1510
|
+
return { storageSpace: isSet(object.storageSpace) ? message_formats_1.StorageSpace.fromJSON(object.storageSpace) : undefined };
|
|
1524
1511
|
},
|
|
1525
1512
|
toJSON(message) {
|
|
1526
1513
|
const obj = {};
|
|
1527
1514
|
if (message.storageSpace !== undefined) {
|
|
1528
1515
|
obj.storageSpace = message_formats_1.StorageSpace.toJSON(message.storageSpace);
|
|
1529
1516
|
}
|
|
1530
|
-
if (message.removableSpace !== undefined) {
|
|
1531
|
-
obj.removableSpace = message_formats_1.StorageSpace.toJSON(message.removableSpace);
|
|
1532
|
-
}
|
|
1533
1517
|
return obj;
|
|
1534
1518
|
},
|
|
1535
1519
|
create(base) {
|
|
@@ -1540,64 +1524,6 @@ exports.VideoStorageSpaceTel = {
|
|
|
1540
1524
|
message.storageSpace = (object.storageSpace !== undefined && object.storageSpace !== null)
|
|
1541
1525
|
? message_formats_1.StorageSpace.fromPartial(object.storageSpace)
|
|
1542
1526
|
: undefined;
|
|
1543
|
-
message.removableSpace = (object.removableSpace !== undefined && object.removableSpace !== null)
|
|
1544
|
-
? message_formats_1.StorageSpace.fromPartial(object.removableSpace)
|
|
1545
|
-
: undefined;
|
|
1546
|
-
return message;
|
|
1547
|
-
},
|
|
1548
|
-
};
|
|
1549
|
-
function createBaseRemovableStorageTel() {
|
|
1550
|
-
return { storageDevice: undefined };
|
|
1551
|
-
}
|
|
1552
|
-
exports.RemovableStorageTel = {
|
|
1553
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1554
|
-
if (message.storageDevice !== undefined) {
|
|
1555
|
-
message_formats_1.RemovableStorageDevice.encode(message.storageDevice, writer.uint32(10).fork()).join();
|
|
1556
|
-
}
|
|
1557
|
-
return writer;
|
|
1558
|
-
},
|
|
1559
|
-
decode(input, length) {
|
|
1560
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1561
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1562
|
-
const message = createBaseRemovableStorageTel();
|
|
1563
|
-
while (reader.pos < end) {
|
|
1564
|
-
const tag = reader.uint32();
|
|
1565
|
-
switch (tag >>> 3) {
|
|
1566
|
-
case 1: {
|
|
1567
|
-
if (tag !== 10) {
|
|
1568
|
-
break;
|
|
1569
|
-
}
|
|
1570
|
-
message.storageDevice = message_formats_1.RemovableStorageDevice.decode(reader, reader.uint32());
|
|
1571
|
-
continue;
|
|
1572
|
-
}
|
|
1573
|
-
}
|
|
1574
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1575
|
-
break;
|
|
1576
|
-
}
|
|
1577
|
-
reader.skip(tag & 7);
|
|
1578
|
-
}
|
|
1579
|
-
return message;
|
|
1580
|
-
},
|
|
1581
|
-
fromJSON(object) {
|
|
1582
|
-
return {
|
|
1583
|
-
storageDevice: isSet(object.storageDevice) ? message_formats_1.RemovableStorageDevice.fromJSON(object.storageDevice) : undefined,
|
|
1584
|
-
};
|
|
1585
|
-
},
|
|
1586
|
-
toJSON(message) {
|
|
1587
|
-
const obj = {};
|
|
1588
|
-
if (message.storageDevice !== undefined) {
|
|
1589
|
-
obj.storageDevice = message_formats_1.RemovableStorageDevice.toJSON(message.storageDevice);
|
|
1590
|
-
}
|
|
1591
|
-
return obj;
|
|
1592
|
-
},
|
|
1593
|
-
create(base) {
|
|
1594
|
-
return exports.RemovableStorageTel.fromPartial(base ?? {});
|
|
1595
|
-
},
|
|
1596
|
-
fromPartial(object) {
|
|
1597
|
-
const message = createBaseRemovableStorageTel();
|
|
1598
|
-
message.storageDevice = (object.storageDevice !== undefined && object.storageDevice !== null)
|
|
1599
|
-
? message_formats_1.RemovableStorageDevice.fromPartial(object.storageDevice)
|
|
1600
|
-
: undefined;
|
|
1601
1527
|
return message;
|
|
1602
1528
|
},
|
|
1603
1529
|
};
|
package/package.json
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blueyerobotics/protocol-definitions",
|
|
3
|
-
"version": "3.2.0-
|
|
4
|
-
"license": "LGPL-3.0-only",
|
|
5
|
-
"description": "TypeScript definitions for Blueye Robotics protocols",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "https://github.com/BluEye-Robotics/ProtocolDefinitions.git"
|
|
9
|
-
},
|
|
3
|
+
"version": "3.2.0-569cf784",
|
|
10
4
|
"main": "dist/index.js",
|
|
11
5
|
"types": "dist/index.d.ts",
|
|
12
6
|
"files": ["dist"],
|
package/README.md
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# @blueyerobotics/protocol-definitions
|
|
2
|
-
|
|
3
|
-
TypeScript protobuf definitions for Blueye Robotics protocols generated using [ts-proto](https://github.com/stephenh/ts-proto).
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install @blueyerobotics/protocol-definitions
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
```ts
|
|
14
|
-
import { blueye } from "@blueyerobotics/protocol-definitions";
|
|
15
|
-
|
|
16
|
-
// Create a new GetBatteryReq message
|
|
17
|
-
const request = blueye.protocol.GetBatteryReq.create();
|
|
18
|
-
|
|
19
|
-
// Serialize the message to a Uint8Array (binary)
|
|
20
|
-
const binary = blueye.protocol.GetBatteryReq.encode(request).finish();
|
|
21
|
-
|
|
22
|
-
// ...
|
|
23
|
-
|
|
24
|
-
// For demonstration, we will simulate a response from the device
|
|
25
|
-
const response = blueye.protocol.GetBatteryRep.create({
|
|
26
|
-
battery: {
|
|
27
|
-
level: 85,
|
|
28
|
-
voltage: 12.5,
|
|
29
|
-
temperature: 25,
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
const binaryResponse = blueye.protocol.GetBatteryRep.encode(response).finish();
|
|
34
|
-
|
|
35
|
-
// Decode a binary response back into a message
|
|
36
|
-
const decoded = blueye.protocol.GetBatteryRep.decode(binaryResponse);
|
|
37
|
-
|
|
38
|
-
// Access fields
|
|
39
|
-
console.log(decoded.battery?.level);
|
|
40
|
-
```
|