@blueyerobotics/protocol-definitions 3.2.0-8c2492a3 → 3.2.0-946df8e4
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/LICENSE +165 -0
- package/README.npm.md +40 -0
- package/dist/control.d.ts +6 -2
- package/dist/control.js +39 -8
- package/dist/message_formats.d.ts +94 -10
- package/dist/message_formats.js +473 -30
- package/dist/telemetry.d.ts +21 -1
- package/dist/telemetry.js +175 -1
- package/package.json +8 -6
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, RemovableStorageDevice, StorageSpace, SurfaceUnitBatteryInfo, SurfaceUnitVersionInfo, SystemTime, ThicknessGauge, TiltAngle, TiltStabilizationState, TimeLapseState, WaterTemperature } from "./message_formats";
|
|
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, KernelLogEntry, Laser, LatLongPosition, Lights, LogEntry, MagneticDeclination, MedusaSpectrometerData, MultibeamConfig, MultibeamDiscovery, MultibeamPing, MultibeamServo, Notification, NStreamers, PositionEstimate, RecordState, Reference, RemovableStorageDevice, StorageSpace, SurfaceUnitBatteryInfo, SurfaceUnitVersionInfo, SystemTime, ThicknessGauge, TiltAngle, TiltStabilizationState, TimeLapseState, WaterTemperature } from "./message_formats";
|
|
4
4
|
import { MissionStatus, ReferenceAutoPilot } from "./mission_planning";
|
|
5
5
|
/**
|
|
6
6
|
* Telemetry
|
|
@@ -266,6 +266,16 @@ export interface Imu2Tel {
|
|
|
266
266
|
/** Raw IMU data. */
|
|
267
267
|
imu: Imu | undefined;
|
|
268
268
|
}
|
|
269
|
+
/** Raw IMU data from High Precision IMU */
|
|
270
|
+
export interface ImuHpTel {
|
|
271
|
+
/** Raw High Precision IMU data (no magnetometer) */
|
|
272
|
+
imu: Imu | undefined;
|
|
273
|
+
}
|
|
274
|
+
/** Calibrated High Precision IMU data */
|
|
275
|
+
export interface CalibratedImuHpTel {
|
|
276
|
+
/** Calibrated High Precision IMU (no magnetometer) */
|
|
277
|
+
imu: Imu | undefined;
|
|
278
|
+
}
|
|
269
279
|
/** Medusa gamma ray sensor spectrometer data. */
|
|
270
280
|
export interface MedusaSpectrometerDataTel {
|
|
271
281
|
/** Medusa gamma ray sensor spectrometer data. */
|
|
@@ -298,6 +308,13 @@ export interface SurfaceUnitTel {
|
|
|
298
308
|
/** Version information. */
|
|
299
309
|
versionInfo: SurfaceUnitVersionInfo | undefined;
|
|
300
310
|
}
|
|
311
|
+
/** Log entry telemetry message. */
|
|
312
|
+
export interface LogEntryTel {
|
|
313
|
+
/** Blunux log entry. */
|
|
314
|
+
blunux?: LogEntry | undefined;
|
|
315
|
+
/** Kernel log entry. */
|
|
316
|
+
kernel?: KernelLogEntry | undefined;
|
|
317
|
+
}
|
|
301
318
|
export declare const AttitudeTel: MessageFns<AttitudeTel>;
|
|
302
319
|
export declare const MagneticDeclinationTel: MessageFns<MagneticDeclinationTel>;
|
|
303
320
|
export declare const AltitudeTel: MessageFns<AltitudeTel>;
|
|
@@ -348,12 +365,15 @@ export declare const GuestPortCurrentTel: MessageFns<GuestPortCurrentTel>;
|
|
|
348
365
|
export declare const CalibratedImuTel: MessageFns<CalibratedImuTel>;
|
|
349
366
|
export declare const Imu1Tel: MessageFns<Imu1Tel>;
|
|
350
367
|
export declare const Imu2Tel: MessageFns<Imu2Tel>;
|
|
368
|
+
export declare const ImuHpTel: MessageFns<ImuHpTel>;
|
|
369
|
+
export declare const CalibratedImuHpTel: MessageFns<CalibratedImuHpTel>;
|
|
351
370
|
export declare const MedusaSpectrometerDataTel: MessageFns<MedusaSpectrometerDataTel>;
|
|
352
371
|
export declare const MultibeamPingTel: MessageFns<MultibeamPingTel>;
|
|
353
372
|
export declare const MultibeamConfigTel: MessageFns<MultibeamConfigTel>;
|
|
354
373
|
export declare const MultibeamDiscoveryTel: MessageFns<MultibeamDiscoveryTel>;
|
|
355
374
|
export declare const CPUInfoTel: MessageFns<CPUInfoTel>;
|
|
356
375
|
export declare const SurfaceUnitTel: MessageFns<SurfaceUnitTel>;
|
|
376
|
+
export declare const LogEntryTel: MessageFns<LogEntryTel>;
|
|
357
377
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
358
378
|
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 {} ? {
|
|
359
379
|
[K in keyof T]?: DeepPartial<T[K]>;
|
package/dist/telemetry.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// source: telemetry.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
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.RemovableStorageTel = 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.SurfaceUnitTel = exports.CPUInfoTel = exports.MultibeamDiscoveryTel = exports.MultibeamConfigTel = exports.MultibeamPingTel = exports.MedusaSpectrometerDataTel = void 0;
|
|
9
|
+
exports.LogEntryTel = exports.SurfaceUnitTel = exports.CPUInfoTel = exports.MultibeamDiscoveryTel = exports.MultibeamConfigTel = exports.MultibeamPingTel = exports.MedusaSpectrometerDataTel = exports.CalibratedImuHpTel = exports.ImuHpTel = void 0;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
12
12
|
const aquatroll_1 = require("./aquatroll");
|
|
@@ -2729,6 +2729,108 @@ exports.Imu2Tel = {
|
|
|
2729
2729
|
return message;
|
|
2730
2730
|
},
|
|
2731
2731
|
};
|
|
2732
|
+
function createBaseImuHpTel() {
|
|
2733
|
+
return { imu: undefined };
|
|
2734
|
+
}
|
|
2735
|
+
exports.ImuHpTel = {
|
|
2736
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2737
|
+
if (message.imu !== undefined) {
|
|
2738
|
+
message_formats_1.Imu.encode(message.imu, writer.uint32(10).fork()).join();
|
|
2739
|
+
}
|
|
2740
|
+
return writer;
|
|
2741
|
+
},
|
|
2742
|
+
decode(input, length) {
|
|
2743
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2744
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2745
|
+
const message = createBaseImuHpTel();
|
|
2746
|
+
while (reader.pos < end) {
|
|
2747
|
+
const tag = reader.uint32();
|
|
2748
|
+
switch (tag >>> 3) {
|
|
2749
|
+
case 1: {
|
|
2750
|
+
if (tag !== 10) {
|
|
2751
|
+
break;
|
|
2752
|
+
}
|
|
2753
|
+
message.imu = message_formats_1.Imu.decode(reader, reader.uint32());
|
|
2754
|
+
continue;
|
|
2755
|
+
}
|
|
2756
|
+
}
|
|
2757
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2758
|
+
break;
|
|
2759
|
+
}
|
|
2760
|
+
reader.skip(tag & 7);
|
|
2761
|
+
}
|
|
2762
|
+
return message;
|
|
2763
|
+
},
|
|
2764
|
+
fromJSON(object) {
|
|
2765
|
+
return { imu: isSet(object.imu) ? message_formats_1.Imu.fromJSON(object.imu) : undefined };
|
|
2766
|
+
},
|
|
2767
|
+
toJSON(message) {
|
|
2768
|
+
const obj = {};
|
|
2769
|
+
if (message.imu !== undefined) {
|
|
2770
|
+
obj.imu = message_formats_1.Imu.toJSON(message.imu);
|
|
2771
|
+
}
|
|
2772
|
+
return obj;
|
|
2773
|
+
},
|
|
2774
|
+
create(base) {
|
|
2775
|
+
return exports.ImuHpTel.fromPartial(base ?? {});
|
|
2776
|
+
},
|
|
2777
|
+
fromPartial(object) {
|
|
2778
|
+
const message = createBaseImuHpTel();
|
|
2779
|
+
message.imu = (object.imu !== undefined && object.imu !== null) ? message_formats_1.Imu.fromPartial(object.imu) : undefined;
|
|
2780
|
+
return message;
|
|
2781
|
+
},
|
|
2782
|
+
};
|
|
2783
|
+
function createBaseCalibratedImuHpTel() {
|
|
2784
|
+
return { imu: undefined };
|
|
2785
|
+
}
|
|
2786
|
+
exports.CalibratedImuHpTel = {
|
|
2787
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2788
|
+
if (message.imu !== undefined) {
|
|
2789
|
+
message_formats_1.Imu.encode(message.imu, writer.uint32(10).fork()).join();
|
|
2790
|
+
}
|
|
2791
|
+
return writer;
|
|
2792
|
+
},
|
|
2793
|
+
decode(input, length) {
|
|
2794
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2795
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2796
|
+
const message = createBaseCalibratedImuHpTel();
|
|
2797
|
+
while (reader.pos < end) {
|
|
2798
|
+
const tag = reader.uint32();
|
|
2799
|
+
switch (tag >>> 3) {
|
|
2800
|
+
case 1: {
|
|
2801
|
+
if (tag !== 10) {
|
|
2802
|
+
break;
|
|
2803
|
+
}
|
|
2804
|
+
message.imu = message_formats_1.Imu.decode(reader, reader.uint32());
|
|
2805
|
+
continue;
|
|
2806
|
+
}
|
|
2807
|
+
}
|
|
2808
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2809
|
+
break;
|
|
2810
|
+
}
|
|
2811
|
+
reader.skip(tag & 7);
|
|
2812
|
+
}
|
|
2813
|
+
return message;
|
|
2814
|
+
},
|
|
2815
|
+
fromJSON(object) {
|
|
2816
|
+
return { imu: isSet(object.imu) ? message_formats_1.Imu.fromJSON(object.imu) : undefined };
|
|
2817
|
+
},
|
|
2818
|
+
toJSON(message) {
|
|
2819
|
+
const obj = {};
|
|
2820
|
+
if (message.imu !== undefined) {
|
|
2821
|
+
obj.imu = message_formats_1.Imu.toJSON(message.imu);
|
|
2822
|
+
}
|
|
2823
|
+
return obj;
|
|
2824
|
+
},
|
|
2825
|
+
create(base) {
|
|
2826
|
+
return exports.CalibratedImuHpTel.fromPartial(base ?? {});
|
|
2827
|
+
},
|
|
2828
|
+
fromPartial(object) {
|
|
2829
|
+
const message = createBaseCalibratedImuHpTel();
|
|
2830
|
+
message.imu = (object.imu !== undefined && object.imu !== null) ? message_formats_1.Imu.fromPartial(object.imu) : undefined;
|
|
2831
|
+
return message;
|
|
2832
|
+
},
|
|
2833
|
+
};
|
|
2732
2834
|
function createBaseMedusaSpectrometerDataTel() {
|
|
2733
2835
|
return { data: undefined };
|
|
2734
2836
|
}
|
|
@@ -3066,6 +3168,78 @@ exports.SurfaceUnitTel = {
|
|
|
3066
3168
|
return message;
|
|
3067
3169
|
},
|
|
3068
3170
|
};
|
|
3171
|
+
function createBaseLogEntryTel() {
|
|
3172
|
+
return { blunux: undefined, kernel: undefined };
|
|
3173
|
+
}
|
|
3174
|
+
exports.LogEntryTel = {
|
|
3175
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3176
|
+
if (message.blunux !== undefined) {
|
|
3177
|
+
message_formats_1.LogEntry.encode(message.blunux, writer.uint32(10).fork()).join();
|
|
3178
|
+
}
|
|
3179
|
+
if (message.kernel !== undefined) {
|
|
3180
|
+
message_formats_1.KernelLogEntry.encode(message.kernel, writer.uint32(18).fork()).join();
|
|
3181
|
+
}
|
|
3182
|
+
return writer;
|
|
3183
|
+
},
|
|
3184
|
+
decode(input, length) {
|
|
3185
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3186
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3187
|
+
const message = createBaseLogEntryTel();
|
|
3188
|
+
while (reader.pos < end) {
|
|
3189
|
+
const tag = reader.uint32();
|
|
3190
|
+
switch (tag >>> 3) {
|
|
3191
|
+
case 1: {
|
|
3192
|
+
if (tag !== 10) {
|
|
3193
|
+
break;
|
|
3194
|
+
}
|
|
3195
|
+
message.blunux = message_formats_1.LogEntry.decode(reader, reader.uint32());
|
|
3196
|
+
continue;
|
|
3197
|
+
}
|
|
3198
|
+
case 2: {
|
|
3199
|
+
if (tag !== 18) {
|
|
3200
|
+
break;
|
|
3201
|
+
}
|
|
3202
|
+
message.kernel = message_formats_1.KernelLogEntry.decode(reader, reader.uint32());
|
|
3203
|
+
continue;
|
|
3204
|
+
}
|
|
3205
|
+
}
|
|
3206
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3207
|
+
break;
|
|
3208
|
+
}
|
|
3209
|
+
reader.skip(tag & 7);
|
|
3210
|
+
}
|
|
3211
|
+
return message;
|
|
3212
|
+
},
|
|
3213
|
+
fromJSON(object) {
|
|
3214
|
+
return {
|
|
3215
|
+
blunux: isSet(object.blunux) ? message_formats_1.LogEntry.fromJSON(object.blunux) : undefined,
|
|
3216
|
+
kernel: isSet(object.kernel) ? message_formats_1.KernelLogEntry.fromJSON(object.kernel) : undefined,
|
|
3217
|
+
};
|
|
3218
|
+
},
|
|
3219
|
+
toJSON(message) {
|
|
3220
|
+
const obj = {};
|
|
3221
|
+
if (message.blunux !== undefined) {
|
|
3222
|
+
obj.blunux = message_formats_1.LogEntry.toJSON(message.blunux);
|
|
3223
|
+
}
|
|
3224
|
+
if (message.kernel !== undefined) {
|
|
3225
|
+
obj.kernel = message_formats_1.KernelLogEntry.toJSON(message.kernel);
|
|
3226
|
+
}
|
|
3227
|
+
return obj;
|
|
3228
|
+
},
|
|
3229
|
+
create(base) {
|
|
3230
|
+
return exports.LogEntryTel.fromPartial(base ?? {});
|
|
3231
|
+
},
|
|
3232
|
+
fromPartial(object) {
|
|
3233
|
+
const message = createBaseLogEntryTel();
|
|
3234
|
+
message.blunux = (object.blunux !== undefined && object.blunux !== null)
|
|
3235
|
+
? message_formats_1.LogEntry.fromPartial(object.blunux)
|
|
3236
|
+
: undefined;
|
|
3237
|
+
message.kernel = (object.kernel !== undefined && object.kernel !== null)
|
|
3238
|
+
? message_formats_1.KernelLogEntry.fromPartial(object.kernel)
|
|
3239
|
+
: undefined;
|
|
3240
|
+
return message;
|
|
3241
|
+
},
|
|
3242
|
+
};
|
|
3069
3243
|
const gt = (() => {
|
|
3070
3244
|
if (typeof globalThis !== "undefined") {
|
|
3071
3245
|
return globalThis;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blueyerobotics/protocol-definitions",
|
|
3
|
-
"version": "3.2.0-
|
|
3
|
+
"version": "3.2.0-946df8e4",
|
|
4
4
|
"license": "LGPL-3.0-only",
|
|
5
5
|
"description": "TypeScript definitions for Blueye Robotics protocols",
|
|
6
6
|
"repository": {
|
|
@@ -9,15 +9,17 @@
|
|
|
9
9
|
},
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"types": "dist/index.d.ts",
|
|
12
|
-
"files": [
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
16
15
|
"dependencies": {
|
|
17
16
|
"@bufbuild/protobuf": "^2.5.2"
|
|
18
17
|
},
|
|
19
18
|
"devDependencies": {
|
|
20
19
|
"ts-proto": "^2.7.5",
|
|
21
20
|
"typescript": "^5.8.3"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsc"
|
|
22
24
|
}
|
|
23
|
-
}
|
|
25
|
+
}
|