@blueyerobotics/protocol-definitions 3.2.0-fcf0b829 → 3.3.0-1fa96b97
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/control.d.ts +73 -2
- package/dist/control.js +325 -1
- package/dist/message_formats.d.ts +587 -10
- package/dist/message_formats.js +3508 -167
- package/dist/req_rep.d.ts +54 -2
- package/dist/req_rep.js +350 -3
- package/dist/telemetry.d.ts +53 -2
- package/dist/telemetry.js +228 -7
- package/package.json +1 -1
package/dist/req_rep.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import { Any } from "./google/protobuf/any";
|
|
3
|
-
import { Battery, Camera, CameraParameters, ClientInfo, ConnectedClient, HeadingMode, OverlayParameters, PersistentStorageSettings, SystemTime } from "./message_formats";
|
|
3
|
+
import { Battery, Camera, CameraParameters, ClientInfo, ConnectedClient, CvModelInfo, HeadingMode, OverlayParameters, PersistentStorageSettings, SystemTime } from "./message_formats";
|
|
4
4
|
import { Instruction, Mission } from "./mission_planning";
|
|
5
5
|
/**
|
|
6
6
|
* Request reply
|
|
@@ -122,10 +122,18 @@ export interface DisconnectClientRep {
|
|
|
122
122
|
*/
|
|
123
123
|
export interface GetBatteryReq {
|
|
124
124
|
}
|
|
125
|
-
/**
|
|
125
|
+
/**
|
|
126
|
+
* Response with essential battery information.
|
|
127
|
+
*
|
|
128
|
+
* On models with two batteries running in parallel (e.g. the X7), second_battery
|
|
129
|
+
* holds the essential information for the second battery. When only a single
|
|
130
|
+
* battery is used, second_battery is undefined (not set).
|
|
131
|
+
*/
|
|
126
132
|
export interface GetBatteryRep {
|
|
127
133
|
/** Essential battery information. */
|
|
128
134
|
battery: Battery | undefined;
|
|
135
|
+
/** Second battery, when present. Not set if only one battery is used. */
|
|
136
|
+
secondBattery: Battery | undefined;
|
|
129
137
|
}
|
|
130
138
|
/** Issue a desired mission to the reference_generator. */
|
|
131
139
|
export interface SetMissionReq {
|
|
@@ -171,6 +179,18 @@ export interface SetPubFrequencyRep {
|
|
|
171
179
|
/** True if message name valid and frequency successfully updated. */
|
|
172
180
|
success: boolean;
|
|
173
181
|
}
|
|
182
|
+
/** Request to update the logging frequency */
|
|
183
|
+
export interface SetLogFrequencyReq {
|
|
184
|
+
/** Message name, f. ex. "AttitudeTel" */
|
|
185
|
+
messageType: string;
|
|
186
|
+
/** Logging frequency (max 100 Hz). */
|
|
187
|
+
frequency: number;
|
|
188
|
+
}
|
|
189
|
+
/** Response after updating logging frequency */
|
|
190
|
+
export interface SetLogFrequencyRep {
|
|
191
|
+
/** True if message name valid and frequency successfully updated. */
|
|
192
|
+
success: boolean;
|
|
193
|
+
}
|
|
174
194
|
/** Request to get latest telemetry data */
|
|
175
195
|
export interface GetTelemetryReq {
|
|
176
196
|
/** Message name, f. ex. "AttitudeTel". */
|
|
@@ -235,6 +255,32 @@ export interface GetLogStreamingStatusRep {
|
|
|
235
255
|
/** If log streaming is enabled or disabled. */
|
|
236
256
|
enabled: boolean;
|
|
237
257
|
}
|
|
258
|
+
/**
|
|
259
|
+
* Request to start or stop a computer vision model.
|
|
260
|
+
*
|
|
261
|
+
* The reply only acknowledges that the model exists and the request was
|
|
262
|
+
* accepted. The model starts or stops asynchronously; track progress through
|
|
263
|
+
* the state field of CvModelInfo in DroneInfoTel or GetCvModelsRep.
|
|
264
|
+
*/
|
|
265
|
+
export interface SetCvModelStateReq {
|
|
266
|
+
/** Identifies the model, from CvModelInfo.package_id. */
|
|
267
|
+
packageId: string;
|
|
268
|
+
/** Desired run state: true to start the model, false to stop it. */
|
|
269
|
+
running: boolean;
|
|
270
|
+
}
|
|
271
|
+
/** Response after accepting a SetCvModelStateReq. */
|
|
272
|
+
export interface SetCvModelStateRep {
|
|
273
|
+
/** True if the model exists and the request was accepted for execution. */
|
|
274
|
+
accepted: boolean;
|
|
275
|
+
}
|
|
276
|
+
/** Request the list of computer vision models installed on the drone. */
|
|
277
|
+
export interface GetCvModelsReq {
|
|
278
|
+
}
|
|
279
|
+
/** Response with the list of installed computer vision models. */
|
|
280
|
+
export interface GetCvModelsRep {
|
|
281
|
+
/** All installed models, including models that are not running. */
|
|
282
|
+
cvModels: CvModelInfo[];
|
|
283
|
+
}
|
|
238
284
|
export declare const SetOverlayParametersReq: MessageFns<SetOverlayParametersReq>;
|
|
239
285
|
export declare const SetOverlayParametersRep: MessageFns<SetOverlayParametersRep>;
|
|
240
286
|
export declare const GetOverlayParametersReq: MessageFns<GetOverlayParametersReq>;
|
|
@@ -265,6 +311,8 @@ export declare const SetHeadingModeReq: MessageFns<SetHeadingModeReq>;
|
|
|
265
311
|
export declare const SetHeadingModeRep: MessageFns<SetHeadingModeRep>;
|
|
266
312
|
export declare const SetPubFrequencyReq: MessageFns<SetPubFrequencyReq>;
|
|
267
313
|
export declare const SetPubFrequencyRep: MessageFns<SetPubFrequencyRep>;
|
|
314
|
+
export declare const SetLogFrequencyReq: MessageFns<SetLogFrequencyReq>;
|
|
315
|
+
export declare const SetLogFrequencyRep: MessageFns<SetLogFrequencyRep>;
|
|
268
316
|
export declare const GetTelemetryReq: MessageFns<GetTelemetryReq>;
|
|
269
317
|
export declare const GetTelemetryRep: MessageFns<GetTelemetryRep>;
|
|
270
318
|
export declare const SetPersistentStorageSettingsReq: MessageFns<SetPersistentStorageSettingsReq>;
|
|
@@ -279,6 +327,10 @@ export declare const GetIperfStatusReq: MessageFns<GetIperfStatusReq>;
|
|
|
279
327
|
export declare const GetIperfStatusRep: MessageFns<GetIperfStatusRep>;
|
|
280
328
|
export declare const GetLogStreamingStatusReq: MessageFns<GetLogStreamingStatusReq>;
|
|
281
329
|
export declare const GetLogStreamingStatusRep: MessageFns<GetLogStreamingStatusRep>;
|
|
330
|
+
export declare const SetCvModelStateReq: MessageFns<SetCvModelStateReq>;
|
|
331
|
+
export declare const SetCvModelStateRep: MessageFns<SetCvModelStateRep>;
|
|
332
|
+
export declare const GetCvModelsReq: MessageFns<GetCvModelsReq>;
|
|
333
|
+
export declare const GetCvModelsRep: MessageFns<GetCvModelsRep>;
|
|
282
334
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
283
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 {} ? {
|
|
284
336
|
[K in keyof T]?: DeepPartial<T[K]>;
|
package/dist/req_rep.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: req_rep.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.GetLogStreamingStatusRep = exports.GetLogStreamingStatusReq = exports.GetIperfStatusRep = exports.GetIperfStatusReq = exports.SetIperfStatusRep = exports.SetIperfStatusReq = exports.FlashEscSettingsRep = exports.FlashEscSettingsReq = exports.GetPersistentStorageSettingsRep = exports.GetPersistentStorageSettingsReq = exports.SetPersistentStorageSettingsRep = exports.SetPersistentStorageSettingsReq = exports.GetTelemetryRep = exports.GetTelemetryReq = exports.SetPubFrequencyRep = exports.SetPubFrequencyReq = exports.SetHeadingModeRep = exports.SetHeadingModeReq = exports.SetInstructionUpdateRep = exports.SetInstructionUpdateReq = exports.GetMissionRep = exports.GetMissionReq = exports.SetMissionRep = exports.SetMissionReq = exports.GetBatteryRep = exports.GetBatteryReq = exports.DisconnectClientRep = exports.DisconnectClientReq = exports.ConnectClientRep = exports.ConnectClientReq = exports.SetThicknessGaugeParametersRep = exports.SetThicknessGaugeParametersReq = exports.PingRep = exports.PingReq = exports.SyncTimeRep = exports.SyncTimeReq = exports.GetCameraParametersRep = exports.GetCameraParametersReq = exports.SetCameraParametersRep = exports.SetCameraParametersReq = exports.GetOverlayParametersRep = exports.GetOverlayParametersReq = exports.SetOverlayParametersRep = exports.SetOverlayParametersReq = void 0;
|
|
8
|
+
exports.GetCvModelsRep = exports.GetCvModelsReq = exports.SetCvModelStateRep = exports.SetCvModelStateReq = exports.GetLogStreamingStatusRep = exports.GetLogStreamingStatusReq = exports.GetIperfStatusRep = exports.GetIperfStatusReq = exports.SetIperfStatusRep = exports.SetIperfStatusReq = exports.FlashEscSettingsRep = exports.FlashEscSettingsReq = exports.GetPersistentStorageSettingsRep = exports.GetPersistentStorageSettingsReq = exports.SetPersistentStorageSettingsRep = exports.SetPersistentStorageSettingsReq = exports.GetTelemetryRep = exports.GetTelemetryReq = exports.SetLogFrequencyRep = exports.SetLogFrequencyReq = exports.SetPubFrequencyRep = exports.SetPubFrequencyReq = exports.SetHeadingModeRep = exports.SetHeadingModeReq = exports.SetInstructionUpdateRep = exports.SetInstructionUpdateReq = exports.GetMissionRep = exports.GetMissionReq = exports.SetMissionRep = exports.SetMissionReq = exports.GetBatteryRep = exports.GetBatteryReq = exports.DisconnectClientRep = exports.DisconnectClientReq = exports.ConnectClientRep = exports.ConnectClientReq = exports.SetThicknessGaugeParametersRep = exports.SetThicknessGaugeParametersReq = exports.PingRep = exports.PingReq = exports.SyncTimeRep = exports.SyncTimeReq = exports.GetCameraParametersRep = exports.GetCameraParametersReq = exports.SetCameraParametersRep = exports.SetCameraParametersReq = exports.GetOverlayParametersRep = exports.GetOverlayParametersReq = exports.SetOverlayParametersRep = exports.SetOverlayParametersReq = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const any_1 = require("./google/protobuf/any");
|
|
@@ -960,13 +960,16 @@ exports.GetBatteryReq = {
|
|
|
960
960
|
},
|
|
961
961
|
};
|
|
962
962
|
function createBaseGetBatteryRep() {
|
|
963
|
-
return { battery: undefined };
|
|
963
|
+
return { battery: undefined, secondBattery: undefined };
|
|
964
964
|
}
|
|
965
965
|
exports.GetBatteryRep = {
|
|
966
966
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
967
967
|
if (message.battery !== undefined) {
|
|
968
968
|
message_formats_1.Battery.encode(message.battery, writer.uint32(10).fork()).join();
|
|
969
969
|
}
|
|
970
|
+
if (message.secondBattery !== undefined) {
|
|
971
|
+
message_formats_1.Battery.encode(message.secondBattery, writer.uint32(18).fork()).join();
|
|
972
|
+
}
|
|
970
973
|
return writer;
|
|
971
974
|
},
|
|
972
975
|
decode(input, length) {
|
|
@@ -983,6 +986,13 @@ exports.GetBatteryRep = {
|
|
|
983
986
|
message.battery = message_formats_1.Battery.decode(reader, reader.uint32());
|
|
984
987
|
continue;
|
|
985
988
|
}
|
|
989
|
+
case 2: {
|
|
990
|
+
if (tag !== 18) {
|
|
991
|
+
break;
|
|
992
|
+
}
|
|
993
|
+
message.secondBattery = message_formats_1.Battery.decode(reader, reader.uint32());
|
|
994
|
+
continue;
|
|
995
|
+
}
|
|
986
996
|
}
|
|
987
997
|
if ((tag & 7) === 4 || tag === 0) {
|
|
988
998
|
break;
|
|
@@ -992,13 +1002,19 @@ exports.GetBatteryRep = {
|
|
|
992
1002
|
return message;
|
|
993
1003
|
},
|
|
994
1004
|
fromJSON(object) {
|
|
995
|
-
return {
|
|
1005
|
+
return {
|
|
1006
|
+
battery: isSet(object.battery) ? message_formats_1.Battery.fromJSON(object.battery) : undefined,
|
|
1007
|
+
secondBattery: isSet(object.secondBattery) ? message_formats_1.Battery.fromJSON(object.secondBattery) : undefined,
|
|
1008
|
+
};
|
|
996
1009
|
},
|
|
997
1010
|
toJSON(message) {
|
|
998
1011
|
const obj = {};
|
|
999
1012
|
if (message.battery !== undefined) {
|
|
1000
1013
|
obj.battery = message_formats_1.Battery.toJSON(message.battery);
|
|
1001
1014
|
}
|
|
1015
|
+
if (message.secondBattery !== undefined) {
|
|
1016
|
+
obj.secondBattery = message_formats_1.Battery.toJSON(message.secondBattery);
|
|
1017
|
+
}
|
|
1002
1018
|
return obj;
|
|
1003
1019
|
},
|
|
1004
1020
|
create(base) {
|
|
@@ -1009,6 +1025,9 @@ exports.GetBatteryRep = {
|
|
|
1009
1025
|
message.battery = (object.battery !== undefined && object.battery !== null)
|
|
1010
1026
|
? message_formats_1.Battery.fromPartial(object.battery)
|
|
1011
1027
|
: undefined;
|
|
1028
|
+
message.secondBattery = (object.secondBattery !== undefined && object.secondBattery !== null)
|
|
1029
|
+
? message_formats_1.Battery.fromPartial(object.secondBattery)
|
|
1030
|
+
: undefined;
|
|
1012
1031
|
return message;
|
|
1013
1032
|
},
|
|
1014
1033
|
};
|
|
@@ -1489,6 +1508,125 @@ exports.SetPubFrequencyRep = {
|
|
|
1489
1508
|
return message;
|
|
1490
1509
|
},
|
|
1491
1510
|
};
|
|
1511
|
+
function createBaseSetLogFrequencyReq() {
|
|
1512
|
+
return { messageType: "", frequency: 0 };
|
|
1513
|
+
}
|
|
1514
|
+
exports.SetLogFrequencyReq = {
|
|
1515
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1516
|
+
if (message.messageType !== "") {
|
|
1517
|
+
writer.uint32(10).string(message.messageType);
|
|
1518
|
+
}
|
|
1519
|
+
if (message.frequency !== 0) {
|
|
1520
|
+
writer.uint32(21).float(message.frequency);
|
|
1521
|
+
}
|
|
1522
|
+
return writer;
|
|
1523
|
+
},
|
|
1524
|
+
decode(input, length) {
|
|
1525
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1526
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1527
|
+
const message = createBaseSetLogFrequencyReq();
|
|
1528
|
+
while (reader.pos < end) {
|
|
1529
|
+
const tag = reader.uint32();
|
|
1530
|
+
switch (tag >>> 3) {
|
|
1531
|
+
case 1: {
|
|
1532
|
+
if (tag !== 10) {
|
|
1533
|
+
break;
|
|
1534
|
+
}
|
|
1535
|
+
message.messageType = reader.string();
|
|
1536
|
+
continue;
|
|
1537
|
+
}
|
|
1538
|
+
case 2: {
|
|
1539
|
+
if (tag !== 21) {
|
|
1540
|
+
break;
|
|
1541
|
+
}
|
|
1542
|
+
message.frequency = reader.float();
|
|
1543
|
+
continue;
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1547
|
+
break;
|
|
1548
|
+
}
|
|
1549
|
+
reader.skip(tag & 7);
|
|
1550
|
+
}
|
|
1551
|
+
return message;
|
|
1552
|
+
},
|
|
1553
|
+
fromJSON(object) {
|
|
1554
|
+
return {
|
|
1555
|
+
messageType: isSet(object.messageType) ? gt.String(object.messageType) : "",
|
|
1556
|
+
frequency: isSet(object.frequency) ? gt.Number(object.frequency) : 0,
|
|
1557
|
+
};
|
|
1558
|
+
},
|
|
1559
|
+
toJSON(message) {
|
|
1560
|
+
const obj = {};
|
|
1561
|
+
if (message.messageType !== "") {
|
|
1562
|
+
obj.messageType = message.messageType;
|
|
1563
|
+
}
|
|
1564
|
+
if (message.frequency !== 0) {
|
|
1565
|
+
obj.frequency = message.frequency;
|
|
1566
|
+
}
|
|
1567
|
+
return obj;
|
|
1568
|
+
},
|
|
1569
|
+
create(base) {
|
|
1570
|
+
return exports.SetLogFrequencyReq.fromPartial(base ?? {});
|
|
1571
|
+
},
|
|
1572
|
+
fromPartial(object) {
|
|
1573
|
+
const message = createBaseSetLogFrequencyReq();
|
|
1574
|
+
message.messageType = object.messageType ?? "";
|
|
1575
|
+
message.frequency = object.frequency ?? 0;
|
|
1576
|
+
return message;
|
|
1577
|
+
},
|
|
1578
|
+
};
|
|
1579
|
+
function createBaseSetLogFrequencyRep() {
|
|
1580
|
+
return { success: false };
|
|
1581
|
+
}
|
|
1582
|
+
exports.SetLogFrequencyRep = {
|
|
1583
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1584
|
+
if (message.success !== false) {
|
|
1585
|
+
writer.uint32(8).bool(message.success);
|
|
1586
|
+
}
|
|
1587
|
+
return writer;
|
|
1588
|
+
},
|
|
1589
|
+
decode(input, length) {
|
|
1590
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1591
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1592
|
+
const message = createBaseSetLogFrequencyRep();
|
|
1593
|
+
while (reader.pos < end) {
|
|
1594
|
+
const tag = reader.uint32();
|
|
1595
|
+
switch (tag >>> 3) {
|
|
1596
|
+
case 1: {
|
|
1597
|
+
if (tag !== 8) {
|
|
1598
|
+
break;
|
|
1599
|
+
}
|
|
1600
|
+
message.success = reader.bool();
|
|
1601
|
+
continue;
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1605
|
+
break;
|
|
1606
|
+
}
|
|
1607
|
+
reader.skip(tag & 7);
|
|
1608
|
+
}
|
|
1609
|
+
return message;
|
|
1610
|
+
},
|
|
1611
|
+
fromJSON(object) {
|
|
1612
|
+
return { success: isSet(object.success) ? gt.Boolean(object.success) : false };
|
|
1613
|
+
},
|
|
1614
|
+
toJSON(message) {
|
|
1615
|
+
const obj = {};
|
|
1616
|
+
if (message.success !== false) {
|
|
1617
|
+
obj.success = message.success;
|
|
1618
|
+
}
|
|
1619
|
+
return obj;
|
|
1620
|
+
},
|
|
1621
|
+
create(base) {
|
|
1622
|
+
return exports.SetLogFrequencyRep.fromPartial(base ?? {});
|
|
1623
|
+
},
|
|
1624
|
+
fromPartial(object) {
|
|
1625
|
+
const message = createBaseSetLogFrequencyRep();
|
|
1626
|
+
message.success = object.success ?? false;
|
|
1627
|
+
return message;
|
|
1628
|
+
},
|
|
1629
|
+
};
|
|
1492
1630
|
function createBaseGetTelemetryReq() {
|
|
1493
1631
|
return { messageType: "" };
|
|
1494
1632
|
}
|
|
@@ -2177,6 +2315,215 @@ exports.GetLogStreamingStatusRep = {
|
|
|
2177
2315
|
return message;
|
|
2178
2316
|
},
|
|
2179
2317
|
};
|
|
2318
|
+
function createBaseSetCvModelStateReq() {
|
|
2319
|
+
return { packageId: "", running: false };
|
|
2320
|
+
}
|
|
2321
|
+
exports.SetCvModelStateReq = {
|
|
2322
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2323
|
+
if (message.packageId !== "") {
|
|
2324
|
+
writer.uint32(10).string(message.packageId);
|
|
2325
|
+
}
|
|
2326
|
+
if (message.running !== false) {
|
|
2327
|
+
writer.uint32(16).bool(message.running);
|
|
2328
|
+
}
|
|
2329
|
+
return writer;
|
|
2330
|
+
},
|
|
2331
|
+
decode(input, length) {
|
|
2332
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2333
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2334
|
+
const message = createBaseSetCvModelStateReq();
|
|
2335
|
+
while (reader.pos < end) {
|
|
2336
|
+
const tag = reader.uint32();
|
|
2337
|
+
switch (tag >>> 3) {
|
|
2338
|
+
case 1: {
|
|
2339
|
+
if (tag !== 10) {
|
|
2340
|
+
break;
|
|
2341
|
+
}
|
|
2342
|
+
message.packageId = reader.string();
|
|
2343
|
+
continue;
|
|
2344
|
+
}
|
|
2345
|
+
case 2: {
|
|
2346
|
+
if (tag !== 16) {
|
|
2347
|
+
break;
|
|
2348
|
+
}
|
|
2349
|
+
message.running = reader.bool();
|
|
2350
|
+
continue;
|
|
2351
|
+
}
|
|
2352
|
+
}
|
|
2353
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2354
|
+
break;
|
|
2355
|
+
}
|
|
2356
|
+
reader.skip(tag & 7);
|
|
2357
|
+
}
|
|
2358
|
+
return message;
|
|
2359
|
+
},
|
|
2360
|
+
fromJSON(object) {
|
|
2361
|
+
return {
|
|
2362
|
+
packageId: isSet(object.packageId) ? gt.String(object.packageId) : "",
|
|
2363
|
+
running: isSet(object.running) ? gt.Boolean(object.running) : false,
|
|
2364
|
+
};
|
|
2365
|
+
},
|
|
2366
|
+
toJSON(message) {
|
|
2367
|
+
const obj = {};
|
|
2368
|
+
if (message.packageId !== "") {
|
|
2369
|
+
obj.packageId = message.packageId;
|
|
2370
|
+
}
|
|
2371
|
+
if (message.running !== false) {
|
|
2372
|
+
obj.running = message.running;
|
|
2373
|
+
}
|
|
2374
|
+
return obj;
|
|
2375
|
+
},
|
|
2376
|
+
create(base) {
|
|
2377
|
+
return exports.SetCvModelStateReq.fromPartial(base ?? {});
|
|
2378
|
+
},
|
|
2379
|
+
fromPartial(object) {
|
|
2380
|
+
const message = createBaseSetCvModelStateReq();
|
|
2381
|
+
message.packageId = object.packageId ?? "";
|
|
2382
|
+
message.running = object.running ?? false;
|
|
2383
|
+
return message;
|
|
2384
|
+
},
|
|
2385
|
+
};
|
|
2386
|
+
function createBaseSetCvModelStateRep() {
|
|
2387
|
+
return { accepted: false };
|
|
2388
|
+
}
|
|
2389
|
+
exports.SetCvModelStateRep = {
|
|
2390
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2391
|
+
if (message.accepted !== false) {
|
|
2392
|
+
writer.uint32(8).bool(message.accepted);
|
|
2393
|
+
}
|
|
2394
|
+
return writer;
|
|
2395
|
+
},
|
|
2396
|
+
decode(input, length) {
|
|
2397
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2398
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2399
|
+
const message = createBaseSetCvModelStateRep();
|
|
2400
|
+
while (reader.pos < end) {
|
|
2401
|
+
const tag = reader.uint32();
|
|
2402
|
+
switch (tag >>> 3) {
|
|
2403
|
+
case 1: {
|
|
2404
|
+
if (tag !== 8) {
|
|
2405
|
+
break;
|
|
2406
|
+
}
|
|
2407
|
+
message.accepted = reader.bool();
|
|
2408
|
+
continue;
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2411
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2412
|
+
break;
|
|
2413
|
+
}
|
|
2414
|
+
reader.skip(tag & 7);
|
|
2415
|
+
}
|
|
2416
|
+
return message;
|
|
2417
|
+
},
|
|
2418
|
+
fromJSON(object) {
|
|
2419
|
+
return { accepted: isSet(object.accepted) ? gt.Boolean(object.accepted) : false };
|
|
2420
|
+
},
|
|
2421
|
+
toJSON(message) {
|
|
2422
|
+
const obj = {};
|
|
2423
|
+
if (message.accepted !== false) {
|
|
2424
|
+
obj.accepted = message.accepted;
|
|
2425
|
+
}
|
|
2426
|
+
return obj;
|
|
2427
|
+
},
|
|
2428
|
+
create(base) {
|
|
2429
|
+
return exports.SetCvModelStateRep.fromPartial(base ?? {});
|
|
2430
|
+
},
|
|
2431
|
+
fromPartial(object) {
|
|
2432
|
+
const message = createBaseSetCvModelStateRep();
|
|
2433
|
+
message.accepted = object.accepted ?? false;
|
|
2434
|
+
return message;
|
|
2435
|
+
},
|
|
2436
|
+
};
|
|
2437
|
+
function createBaseGetCvModelsReq() {
|
|
2438
|
+
return {};
|
|
2439
|
+
}
|
|
2440
|
+
exports.GetCvModelsReq = {
|
|
2441
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
2442
|
+
return writer;
|
|
2443
|
+
},
|
|
2444
|
+
decode(input, length) {
|
|
2445
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2446
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2447
|
+
const message = createBaseGetCvModelsReq();
|
|
2448
|
+
while (reader.pos < end) {
|
|
2449
|
+
const tag = reader.uint32();
|
|
2450
|
+
switch (tag >>> 3) {
|
|
2451
|
+
}
|
|
2452
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2453
|
+
break;
|
|
2454
|
+
}
|
|
2455
|
+
reader.skip(tag & 7);
|
|
2456
|
+
}
|
|
2457
|
+
return message;
|
|
2458
|
+
},
|
|
2459
|
+
fromJSON(_) {
|
|
2460
|
+
return {};
|
|
2461
|
+
},
|
|
2462
|
+
toJSON(_) {
|
|
2463
|
+
const obj = {};
|
|
2464
|
+
return obj;
|
|
2465
|
+
},
|
|
2466
|
+
create(base) {
|
|
2467
|
+
return exports.GetCvModelsReq.fromPartial(base ?? {});
|
|
2468
|
+
},
|
|
2469
|
+
fromPartial(_) {
|
|
2470
|
+
const message = createBaseGetCvModelsReq();
|
|
2471
|
+
return message;
|
|
2472
|
+
},
|
|
2473
|
+
};
|
|
2474
|
+
function createBaseGetCvModelsRep() {
|
|
2475
|
+
return { cvModels: [] };
|
|
2476
|
+
}
|
|
2477
|
+
exports.GetCvModelsRep = {
|
|
2478
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2479
|
+
for (const v of message.cvModels) {
|
|
2480
|
+
message_formats_1.CvModelInfo.encode(v, writer.uint32(10).fork()).join();
|
|
2481
|
+
}
|
|
2482
|
+
return writer;
|
|
2483
|
+
},
|
|
2484
|
+
decode(input, length) {
|
|
2485
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2486
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2487
|
+
const message = createBaseGetCvModelsRep();
|
|
2488
|
+
while (reader.pos < end) {
|
|
2489
|
+
const tag = reader.uint32();
|
|
2490
|
+
switch (tag >>> 3) {
|
|
2491
|
+
case 1: {
|
|
2492
|
+
if (tag !== 10) {
|
|
2493
|
+
break;
|
|
2494
|
+
}
|
|
2495
|
+
message.cvModels.push(message_formats_1.CvModelInfo.decode(reader, reader.uint32()));
|
|
2496
|
+
continue;
|
|
2497
|
+
}
|
|
2498
|
+
}
|
|
2499
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2500
|
+
break;
|
|
2501
|
+
}
|
|
2502
|
+
reader.skip(tag & 7);
|
|
2503
|
+
}
|
|
2504
|
+
return message;
|
|
2505
|
+
},
|
|
2506
|
+
fromJSON(object) {
|
|
2507
|
+
return {
|
|
2508
|
+
cvModels: gt.Array.isArray(object?.cvModels) ? object.cvModels.map((e) => message_formats_1.CvModelInfo.fromJSON(e)) : [],
|
|
2509
|
+
};
|
|
2510
|
+
},
|
|
2511
|
+
toJSON(message) {
|
|
2512
|
+
const obj = {};
|
|
2513
|
+
if (message.cvModels?.length) {
|
|
2514
|
+
obj.cvModels = message.cvModels.map((e) => message_formats_1.CvModelInfo.toJSON(e));
|
|
2515
|
+
}
|
|
2516
|
+
return obj;
|
|
2517
|
+
},
|
|
2518
|
+
create(base) {
|
|
2519
|
+
return exports.GetCvModelsRep.fromPartial(base ?? {});
|
|
2520
|
+
},
|
|
2521
|
+
fromPartial(object) {
|
|
2522
|
+
const message = createBaseGetCvModelsRep();
|
|
2523
|
+
message.cvModels = object.cvModels?.map((e) => message_formats_1.CvModelInfo.fromPartial(e)) || [];
|
|
2524
|
+
return message;
|
|
2525
|
+
},
|
|
2526
|
+
};
|
|
2180
2527
|
const gt = (() => {
|
|
2181
2528
|
if (typeof globalThis !== "undefined") {
|
|
2182
2529
|
return globalThis;
|
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, CameraPanTiltZoom, CanisterHumidity, CanisterTemperature, ConnectedClient, ControlForce, ControllerHealth, ControlMode, CpProbe, CPUInfo, CPUTemperature, Depth, DiveTime, DroneInfo, DvlVelocity, ErrorFlags, FilterMessage, ForwardDistance, GenericServo, GuestPortCurrent, Imu, IperfStatus, KernelLogEntry, Laser, LatLongPosition, Lights, LogEntry, MagneticDeclination, MedusaSpectrometerData, ModelDetections, MultibeamConfig, MultibeamDiscovery, MultibeamPing, MultibeamServo, Notification, NStreamers, PositionEstimate, RecordState, Reference, RemovableStorageDevice, StorageSpace, SurfaceUnitBatteryInfo, SurfaceUnitVersionInfo, SystemPerformanceInfo, SystemTime, ThicknessGauge, TiltAngle, TiltStabilizationState, TimeLapseState, WaterTemperature } from "./message_formats";
|
|
3
|
+
import { Altitude, Annotation, Attitude, Battery, BatteryBQ40Z50, CalibrationState, CameraPanTiltZoom, CanisterHumidity, CanisterTemperature, ConnectedClient, ControlForce, ControllerHealth, ControlMode, CpProbe, CPUInfo, CPUTemperature, Depth, DiveTime, DroneInfo, DvlVelocity, ErrorFlags, FilterMessage, ForwardDistance, GenericServo, GuestPortCurrent, Imu, IperfStatus, KernelLogEntry, Laser, LaserDetection, LatLongPosition, Lights, LogEntry, MagneticDeclination, MedusaSpectrometerData, ModelDetections, MultibeamConfig, MultibeamDiscovery, MultibeamPing, MultibeamServo, Notification, NStreamers, PositionEstimate, RecordState, Reference, RemovableStorageDevice, SotState, StorageSpace, SurfaceUnitBatteryInfo, SurfaceUnitVersionInfo, SystemPerformanceInfo, SystemTime, ThicknessGauge, TiltAngle, TiltStabilizationState, TimeLapseState, WaterTemperature } from "./message_formats";
|
|
4
4
|
import { MissionStatus, ReferenceAutoPilot } from "./mission_planning";
|
|
5
5
|
/**
|
|
6
6
|
* Telemetry
|
|
@@ -86,6 +86,8 @@ export interface GuestPortLightsTel {
|
|
|
86
86
|
export interface LaserTel {
|
|
87
87
|
/** Laser status. */
|
|
88
88
|
laser: Laser | undefined;
|
|
89
|
+
/** Detection of the laser by the computer vision pipeline. Only */
|
|
90
|
+
laserDetection: LaserDetection | undefined;
|
|
89
91
|
}
|
|
90
92
|
/** Pilot position (originating from device GPS) for logging. */
|
|
91
93
|
export interface PilotGPSPositionTel {
|
|
@@ -102,18 +104,32 @@ export interface TimeLapseStateTel {
|
|
|
102
104
|
/** Time-lapse state. */
|
|
103
105
|
timeLapseState: TimeLapseState | undefined;
|
|
104
106
|
}
|
|
105
|
-
/**
|
|
107
|
+
/**
|
|
108
|
+
* Receive essential information about the battery status.
|
|
109
|
+
*
|
|
110
|
+
* On models with two batteries running in parallel (e.g. the X7), second_battery
|
|
111
|
+
* holds the essential information for the second battery. When only a single
|
|
112
|
+
* battery is used, second_battery is undefined (not set).
|
|
113
|
+
*/
|
|
106
114
|
export interface BatteryTel {
|
|
107
115
|
/** Essential battery information. */
|
|
108
116
|
battery: Battery | undefined;
|
|
117
|
+
/** Second battery, when present. Not set if only one battery is used. */
|
|
118
|
+
secondBattery: Battery | undefined;
|
|
109
119
|
}
|
|
110
120
|
/**
|
|
111
121
|
* Receive detailed information about a battery using the
|
|
112
122
|
* BQ40Z50 battery management system.
|
|
123
|
+
*
|
|
124
|
+
* On models with two batteries running in parallel (e.g. the X7), second_battery
|
|
125
|
+
* holds the detailed information for the second battery. When only a single
|
|
126
|
+
* battery is used, second_battery is undefined (not set).
|
|
113
127
|
*/
|
|
114
128
|
export interface BatteryBQ40Z50Tel {
|
|
115
129
|
/** Detailed battery information. */
|
|
116
130
|
battery: BatteryBQ40Z50 | undefined;
|
|
131
|
+
/** Second battery, when present. Not set if only one battery is used. */
|
|
132
|
+
secondBattery: BatteryBQ40Z50 | undefined;
|
|
117
133
|
}
|
|
118
134
|
/** Receive the dive time of the drone. */
|
|
119
135
|
export interface DiveTimeTel {
|
|
@@ -343,6 +359,15 @@ export interface TurbidityFilterTel {
|
|
|
343
359
|
/** Turbidity filter settings. */
|
|
344
360
|
turbidityFilter: FilterMessage | undefined;
|
|
345
361
|
}
|
|
362
|
+
/**
|
|
363
|
+
* Color correction settings telemetry message.
|
|
364
|
+
*
|
|
365
|
+
* Message is published when the filter settings are changed.
|
|
366
|
+
*/
|
|
367
|
+
export interface ColorCorrectionTel {
|
|
368
|
+
/** Color correction settings. */
|
|
369
|
+
colorCorrectionFilter: FilterMessage | undefined;
|
|
370
|
+
}
|
|
346
371
|
/**
|
|
347
372
|
* Digital pan, tilt, and zoom telemetry from the main camera.
|
|
348
373
|
*
|
|
@@ -353,6 +378,29 @@ export interface CameraPanTiltZoomTel {
|
|
|
353
378
|
/** Current pan, tilt, and zoom state. */
|
|
354
379
|
cameraPanTiltZoom: CameraPanTiltZoom | undefined;
|
|
355
380
|
}
|
|
381
|
+
/**
|
|
382
|
+
* Single-object tracking (SOT) state telemetry from the computer vision pipeline.
|
|
383
|
+
*
|
|
384
|
+
* Reports the current tracking state and the tracked bounding box when active.
|
|
385
|
+
* Published periodically while the SOT pipeline is running.
|
|
386
|
+
*/
|
|
387
|
+
export interface SotStateTel {
|
|
388
|
+
/** Current SOT state and bounding box. */
|
|
389
|
+
sotState: SotState | undefined;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* An annotation that now exists on the dive.
|
|
393
|
+
*
|
|
394
|
+
* Either added by a client (the drone echoes its AnnotationCtrl here, source APP)
|
|
395
|
+
* or emitted by the drone itself (source DRONE); CLOUD is the post-dive Blueye
|
|
396
|
+
* Cloud path and is not seen here. Published to every connected client and
|
|
397
|
+
* written to the dive logfile. A late-joining client can fetch the most recent
|
|
398
|
+
* one with GetTelemetryReq("AnnotationTel").
|
|
399
|
+
*/
|
|
400
|
+
export interface AnnotationTel {
|
|
401
|
+
/** The annotation that was added. */
|
|
402
|
+
annotation: Annotation | undefined;
|
|
403
|
+
}
|
|
356
404
|
export declare const AttitudeTel: MessageFns<AttitudeTel>;
|
|
357
405
|
export declare const MagneticDeclinationTel: MessageFns<MagneticDeclinationTel>;
|
|
358
406
|
export declare const AltitudeTel: MessageFns<AltitudeTel>;
|
|
@@ -415,7 +463,10 @@ export declare const SurfaceUnitTel: MessageFns<SurfaceUnitTel>;
|
|
|
415
463
|
export declare const LogEntryTel: MessageFns<LogEntryTel>;
|
|
416
464
|
export declare const ObjectDetectionsTel: MessageFns<ObjectDetectionsTel>;
|
|
417
465
|
export declare const TurbidityFilterTel: MessageFns<TurbidityFilterTel>;
|
|
466
|
+
export declare const ColorCorrectionTel: MessageFns<ColorCorrectionTel>;
|
|
418
467
|
export declare const CameraPanTiltZoomTel: MessageFns<CameraPanTiltZoomTel>;
|
|
468
|
+
export declare const SotStateTel: MessageFns<SotStateTel>;
|
|
469
|
+
export declare const AnnotationTel: MessageFns<AnnotationTel>;
|
|
419
470
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
420
471
|
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 {} ? {
|
|
421
472
|
[K in keyof T]?: DeepPartial<T[K]>;
|