@blueyerobotics/protocol-definitions 3.2.0-bb5ffe79 → 3.2.0-c2a9067e
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 +24 -2
- package/dist/control.js +174 -15
- package/dist/message_formats.d.ts +341 -17
- package/dist/message_formats.js +2118 -75
- package/dist/mission_planning.d.ts +54 -0
- package/dist/mission_planning.js +243 -1
- package/dist/req_rep.d.ts +22 -0
- package/dist/req_rep.js +191 -1
- package/dist/telemetry.d.ts +64 -2
- package/dist/telemetry.js +438 -5
- package/package.json +8 -6
|
@@ -90,6 +90,8 @@ export declare enum InstructionType {
|
|
|
90
90
|
INSTRUCTION_TYPE_GO_TO_SEABED = 11,
|
|
91
91
|
/** INSTRUCTION_TYPE_GO_TO_HOME - Returning to home. */
|
|
92
92
|
INSTRUCTION_TYPE_GO_TO_HOME = 12,
|
|
93
|
+
/** INSTRUCTION_TYPE_SURVEY - Execute a survey pattern over a polygon area. */
|
|
94
|
+
INSTRUCTION_TYPE_SURVEY = 13,
|
|
93
95
|
UNRECOGNIZED = -1
|
|
94
96
|
}
|
|
95
97
|
export declare function instructionTypeFromJSON(object: any): InstructionType;
|
|
@@ -166,6 +168,8 @@ export interface Instruction {
|
|
|
166
168
|
goToSeabedCommand?: GoToSeabedCommand | undefined;
|
|
167
169
|
/** Go to home position. */
|
|
168
170
|
goToHomeCommand?: GoToHomeCommand | undefined;
|
|
171
|
+
/** Execute a survey pattern over a polygon area. */
|
|
172
|
+
surveyCommand?: SurveyCommand | undefined;
|
|
169
173
|
}
|
|
170
174
|
/** Depth set point is used to describe a depth set-point relative to the surface or the seabed. */
|
|
171
175
|
export interface DepthSetPoint {
|
|
@@ -245,6 +249,55 @@ export interface GoToHomeCommand {
|
|
|
245
249
|
/** Desired speed to home (m/s). */
|
|
246
250
|
desiredSpeed: number;
|
|
247
251
|
}
|
|
252
|
+
/**
|
|
253
|
+
* A SurveyCommand defines a survey (lawn-mower) pattern over a polygon area.
|
|
254
|
+
* The planner generates waypoints from the polygon + parameters and stores them
|
|
255
|
+
* in the waypoints field. The drone executes these pre-computed waypoints directly
|
|
256
|
+
* without re-running the survey algorithm. The polygon and parameters remain
|
|
257
|
+
* editable in the planner — regenerate waypoints when they change.
|
|
258
|
+
* Planners SHOULD validate that the polygon is simple (non-self-intersecting)
|
|
259
|
+
* before generating waypoints, as behavior is undefined for invalid polygons.
|
|
260
|
+
*/
|
|
261
|
+
export interface SurveyCommand {
|
|
262
|
+
/**
|
|
263
|
+
* Polygon vertices defining the survey area boundary (decimal degrees).
|
|
264
|
+
* The polygon is implicitly closed: the last vertex connects back to the first.
|
|
265
|
+
* Clients MUST NOT repeat the first vertex at the end of the list.
|
|
266
|
+
* Vertices should be ordered clockwise when viewed from above.
|
|
267
|
+
* The boundary must form a simple polygon (no self-intersections).
|
|
268
|
+
* At least three distinct vertices are required.
|
|
269
|
+
*/
|
|
270
|
+
vertices: LatLongPosition[];
|
|
271
|
+
/**
|
|
272
|
+
* Survey line heading relative to north in degrees (0-360).
|
|
273
|
+
* NOTE: Unlike PathSegment.course_to_target (which uses radians), this field
|
|
274
|
+
* uses degrees to match compass convention. Convert radians before assigning.
|
|
275
|
+
*/
|
|
276
|
+
surveyLineHeading: number;
|
|
277
|
+
/** Distance between parallel scan lines (m). */
|
|
278
|
+
laneSpacing: number;
|
|
279
|
+
/** Overshoot distance past polygon boundary at each turn (m). */
|
|
280
|
+
turnaroundDistance: number;
|
|
281
|
+
/** Desired speed over ground during survey (m/s). */
|
|
282
|
+
cruiseSpeed: number;
|
|
283
|
+
/** Radius of acceptance circle for generated waypoints (m). */
|
|
284
|
+
circleOfAcceptance: number;
|
|
285
|
+
/** Optional depth set point for all generated waypoints. */
|
|
286
|
+
depthSetPoint: DepthSetPoint | undefined;
|
|
287
|
+
/** If true, reverse the scan line order (swap start and end points). */
|
|
288
|
+
reverse: boolean;
|
|
289
|
+
/**
|
|
290
|
+
* Pre-computed waypoints generated by the planner from the polygon and parameters.
|
|
291
|
+
* The drone executes these directly. Individual waypoint parameters (speed, CoA,
|
|
292
|
+
* depth) can be tweaked after generation without modifying the survey shape.
|
|
293
|
+
* Regenerated automatically when polygon or survey parameters change.
|
|
294
|
+
*/
|
|
295
|
+
waypoints: Waypoint[];
|
|
296
|
+
/** Sensor swath width (m). When set with overlap_percent, overrides lane_spacing. */
|
|
297
|
+
swathWidth: number;
|
|
298
|
+
/** Desired overlap between adjacent scan lines (0-100%). Used with swath_width. */
|
|
299
|
+
overlapPercent: number;
|
|
300
|
+
}
|
|
248
301
|
/** Path segment used to describe segments of a mission as a line between to waypoints. */
|
|
249
302
|
export interface PathSegment {
|
|
250
303
|
/** Path segment id starting at 0, -1 for inactive. */
|
|
@@ -328,6 +381,7 @@ export declare const CameraCommand: MessageFns<CameraCommand>;
|
|
|
328
381
|
export declare const GoToSurfaceCommand: MessageFns<GoToSurfaceCommand>;
|
|
329
382
|
export declare const GoToSeabedCommand: MessageFns<GoToSeabedCommand>;
|
|
330
383
|
export declare const GoToHomeCommand: MessageFns<GoToHomeCommand>;
|
|
384
|
+
export declare const SurveyCommand: MessageFns<SurveyCommand>;
|
|
331
385
|
export declare const PathSegment: MessageFns<PathSegment>;
|
|
332
386
|
export declare const ReferenceAutoPilot: MessageFns<ReferenceAutoPilot>;
|
|
333
387
|
export declare const MissionStatus: MessageFns<MissionStatus>;
|
package/dist/mission_planning.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: mission_planning.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.MissionStatus = exports.ReferenceAutoPilot = exports.PathSegment = exports.GoToHomeCommand = exports.GoToSeabedCommand = exports.GoToSurfaceCommand = exports.CameraCommand = exports.WaitForCommand = exports.TiltMultibeamCommand = exports.TiltMainCameraCommand = exports.DepthSetPointCommand = exports.WaypointCommand = exports.ControlModeCommand = exports.Waypoint = exports.DepthSetPoint = exports.Instruction = exports.Mission = exports.MissionState = exports.InstructionType = exports.CameraAction = exports.ControlModeHorizontal = exports.ControlModeVertical = exports.DepthZeroReference = void 0;
|
|
8
|
+
exports.MissionStatus = exports.ReferenceAutoPilot = exports.PathSegment = exports.SurveyCommand = exports.GoToHomeCommand = exports.GoToSeabedCommand = exports.GoToSurfaceCommand = exports.CameraCommand = exports.WaitForCommand = exports.TiltMultibeamCommand = exports.TiltMainCameraCommand = exports.DepthSetPointCommand = exports.WaypointCommand = exports.ControlModeCommand = exports.Waypoint = exports.DepthSetPoint = exports.Instruction = exports.Mission = exports.MissionState = exports.InstructionType = exports.CameraAction = exports.ControlModeHorizontal = exports.ControlModeVertical = exports.DepthZeroReference = void 0;
|
|
9
9
|
exports.depthZeroReferenceFromJSON = depthZeroReferenceFromJSON;
|
|
10
10
|
exports.depthZeroReferenceToJSON = depthZeroReferenceToJSON;
|
|
11
11
|
exports.controlModeVerticalFromJSON = controlModeVerticalFromJSON;
|
|
@@ -258,6 +258,8 @@ var InstructionType;
|
|
|
258
258
|
InstructionType[InstructionType["INSTRUCTION_TYPE_GO_TO_SEABED"] = 11] = "INSTRUCTION_TYPE_GO_TO_SEABED";
|
|
259
259
|
/** INSTRUCTION_TYPE_GO_TO_HOME - Returning to home. */
|
|
260
260
|
InstructionType[InstructionType["INSTRUCTION_TYPE_GO_TO_HOME"] = 12] = "INSTRUCTION_TYPE_GO_TO_HOME";
|
|
261
|
+
/** INSTRUCTION_TYPE_SURVEY - Execute a survey pattern over a polygon area. */
|
|
262
|
+
InstructionType[InstructionType["INSTRUCTION_TYPE_SURVEY"] = 13] = "INSTRUCTION_TYPE_SURVEY";
|
|
261
263
|
InstructionType[InstructionType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
262
264
|
})(InstructionType || (exports.InstructionType = InstructionType = {}));
|
|
263
265
|
function instructionTypeFromJSON(object) {
|
|
@@ -301,6 +303,9 @@ function instructionTypeFromJSON(object) {
|
|
|
301
303
|
case 12:
|
|
302
304
|
case "INSTRUCTION_TYPE_GO_TO_HOME":
|
|
303
305
|
return InstructionType.INSTRUCTION_TYPE_GO_TO_HOME;
|
|
306
|
+
case 13:
|
|
307
|
+
case "INSTRUCTION_TYPE_SURVEY":
|
|
308
|
+
return InstructionType.INSTRUCTION_TYPE_SURVEY;
|
|
304
309
|
case -1:
|
|
305
310
|
case "UNRECOGNIZED":
|
|
306
311
|
default:
|
|
@@ -335,6 +340,8 @@ function instructionTypeToJSON(object) {
|
|
|
335
340
|
return "INSTRUCTION_TYPE_GO_TO_SEABED";
|
|
336
341
|
case InstructionType.INSTRUCTION_TYPE_GO_TO_HOME:
|
|
337
342
|
return "INSTRUCTION_TYPE_GO_TO_HOME";
|
|
343
|
+
case InstructionType.INSTRUCTION_TYPE_SURVEY:
|
|
344
|
+
return "INSTRUCTION_TYPE_SURVEY";
|
|
338
345
|
case InstructionType.UNRECOGNIZED:
|
|
339
346
|
default:
|
|
340
347
|
return "UNRECOGNIZED";
|
|
@@ -627,6 +634,7 @@ function createBaseInstruction() {
|
|
|
627
634
|
goToSurfaceCommand: undefined,
|
|
628
635
|
goToSeabedCommand: undefined,
|
|
629
636
|
goToHomeCommand: undefined,
|
|
637
|
+
surveyCommand: undefined,
|
|
630
638
|
};
|
|
631
639
|
}
|
|
632
640
|
exports.Instruction = {
|
|
@@ -670,6 +678,9 @@ exports.Instruction = {
|
|
|
670
678
|
if (message.goToHomeCommand !== undefined) {
|
|
671
679
|
exports.GoToHomeCommand.encode(message.goToHomeCommand, writer.uint32(106).fork()).join();
|
|
672
680
|
}
|
|
681
|
+
if (message.surveyCommand !== undefined) {
|
|
682
|
+
exports.SurveyCommand.encode(message.surveyCommand, writer.uint32(114).fork()).join();
|
|
683
|
+
}
|
|
673
684
|
return writer;
|
|
674
685
|
},
|
|
675
686
|
decode(input, length) {
|
|
@@ -770,6 +781,13 @@ exports.Instruction = {
|
|
|
770
781
|
message.goToHomeCommand = exports.GoToHomeCommand.decode(reader, reader.uint32());
|
|
771
782
|
continue;
|
|
772
783
|
}
|
|
784
|
+
case 14: {
|
|
785
|
+
if (tag !== 114) {
|
|
786
|
+
break;
|
|
787
|
+
}
|
|
788
|
+
message.surveyCommand = exports.SurveyCommand.decode(reader, reader.uint32());
|
|
789
|
+
continue;
|
|
790
|
+
}
|
|
773
791
|
}
|
|
774
792
|
if ((tag & 7) === 4 || tag === 0) {
|
|
775
793
|
break;
|
|
@@ -805,6 +823,7 @@ exports.Instruction = {
|
|
|
805
823
|
? exports.GoToSeabedCommand.fromJSON(object.goToSeabedCommand)
|
|
806
824
|
: undefined,
|
|
807
825
|
goToHomeCommand: isSet(object.goToHomeCommand) ? exports.GoToHomeCommand.fromJSON(object.goToHomeCommand) : undefined,
|
|
826
|
+
surveyCommand: isSet(object.surveyCommand) ? exports.SurveyCommand.fromJSON(object.surveyCommand) : undefined,
|
|
808
827
|
};
|
|
809
828
|
},
|
|
810
829
|
toJSON(message) {
|
|
@@ -848,6 +867,9 @@ exports.Instruction = {
|
|
|
848
867
|
if (message.goToHomeCommand !== undefined) {
|
|
849
868
|
obj.goToHomeCommand = exports.GoToHomeCommand.toJSON(message.goToHomeCommand);
|
|
850
869
|
}
|
|
870
|
+
if (message.surveyCommand !== undefined) {
|
|
871
|
+
obj.surveyCommand = exports.SurveyCommand.toJSON(message.surveyCommand);
|
|
872
|
+
}
|
|
851
873
|
return obj;
|
|
852
874
|
},
|
|
853
875
|
create(base) {
|
|
@@ -889,6 +911,9 @@ exports.Instruction = {
|
|
|
889
911
|
message.goToHomeCommand = (object.goToHomeCommand !== undefined && object.goToHomeCommand !== null)
|
|
890
912
|
? exports.GoToHomeCommand.fromPartial(object.goToHomeCommand)
|
|
891
913
|
: undefined;
|
|
914
|
+
message.surveyCommand = (object.surveyCommand !== undefined && object.surveyCommand !== null)
|
|
915
|
+
? exports.SurveyCommand.fromPartial(object.surveyCommand)
|
|
916
|
+
: undefined;
|
|
892
917
|
return message;
|
|
893
918
|
},
|
|
894
919
|
};
|
|
@@ -1672,6 +1697,223 @@ exports.GoToHomeCommand = {
|
|
|
1672
1697
|
return message;
|
|
1673
1698
|
},
|
|
1674
1699
|
};
|
|
1700
|
+
function createBaseSurveyCommand() {
|
|
1701
|
+
return {
|
|
1702
|
+
vertices: [],
|
|
1703
|
+
surveyLineHeading: 0,
|
|
1704
|
+
laneSpacing: 0,
|
|
1705
|
+
turnaroundDistance: 0,
|
|
1706
|
+
cruiseSpeed: 0,
|
|
1707
|
+
circleOfAcceptance: 0,
|
|
1708
|
+
depthSetPoint: undefined,
|
|
1709
|
+
reverse: false,
|
|
1710
|
+
waypoints: [],
|
|
1711
|
+
swathWidth: 0,
|
|
1712
|
+
overlapPercent: 0,
|
|
1713
|
+
};
|
|
1714
|
+
}
|
|
1715
|
+
exports.SurveyCommand = {
|
|
1716
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1717
|
+
for (const v of message.vertices) {
|
|
1718
|
+
message_formats_1.LatLongPosition.encode(v, writer.uint32(10).fork()).join();
|
|
1719
|
+
}
|
|
1720
|
+
if (message.surveyLineHeading !== 0) {
|
|
1721
|
+
writer.uint32(21).float(message.surveyLineHeading);
|
|
1722
|
+
}
|
|
1723
|
+
if (message.laneSpacing !== 0) {
|
|
1724
|
+
writer.uint32(29).float(message.laneSpacing);
|
|
1725
|
+
}
|
|
1726
|
+
if (message.turnaroundDistance !== 0) {
|
|
1727
|
+
writer.uint32(37).float(message.turnaroundDistance);
|
|
1728
|
+
}
|
|
1729
|
+
if (message.cruiseSpeed !== 0) {
|
|
1730
|
+
writer.uint32(45).float(message.cruiseSpeed);
|
|
1731
|
+
}
|
|
1732
|
+
if (message.circleOfAcceptance !== 0) {
|
|
1733
|
+
writer.uint32(53).float(message.circleOfAcceptance);
|
|
1734
|
+
}
|
|
1735
|
+
if (message.depthSetPoint !== undefined) {
|
|
1736
|
+
exports.DepthSetPoint.encode(message.depthSetPoint, writer.uint32(58).fork()).join();
|
|
1737
|
+
}
|
|
1738
|
+
if (message.reverse !== false) {
|
|
1739
|
+
writer.uint32(64).bool(message.reverse);
|
|
1740
|
+
}
|
|
1741
|
+
for (const v of message.waypoints) {
|
|
1742
|
+
exports.Waypoint.encode(v, writer.uint32(74).fork()).join();
|
|
1743
|
+
}
|
|
1744
|
+
if (message.swathWidth !== 0) {
|
|
1745
|
+
writer.uint32(85).float(message.swathWidth);
|
|
1746
|
+
}
|
|
1747
|
+
if (message.overlapPercent !== 0) {
|
|
1748
|
+
writer.uint32(93).float(message.overlapPercent);
|
|
1749
|
+
}
|
|
1750
|
+
return writer;
|
|
1751
|
+
},
|
|
1752
|
+
decode(input, length) {
|
|
1753
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1754
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1755
|
+
const message = createBaseSurveyCommand();
|
|
1756
|
+
while (reader.pos < end) {
|
|
1757
|
+
const tag = reader.uint32();
|
|
1758
|
+
switch (tag >>> 3) {
|
|
1759
|
+
case 1: {
|
|
1760
|
+
if (tag !== 10) {
|
|
1761
|
+
break;
|
|
1762
|
+
}
|
|
1763
|
+
message.vertices.push(message_formats_1.LatLongPosition.decode(reader, reader.uint32()));
|
|
1764
|
+
continue;
|
|
1765
|
+
}
|
|
1766
|
+
case 2: {
|
|
1767
|
+
if (tag !== 21) {
|
|
1768
|
+
break;
|
|
1769
|
+
}
|
|
1770
|
+
message.surveyLineHeading = reader.float();
|
|
1771
|
+
continue;
|
|
1772
|
+
}
|
|
1773
|
+
case 3: {
|
|
1774
|
+
if (tag !== 29) {
|
|
1775
|
+
break;
|
|
1776
|
+
}
|
|
1777
|
+
message.laneSpacing = reader.float();
|
|
1778
|
+
continue;
|
|
1779
|
+
}
|
|
1780
|
+
case 4: {
|
|
1781
|
+
if (tag !== 37) {
|
|
1782
|
+
break;
|
|
1783
|
+
}
|
|
1784
|
+
message.turnaroundDistance = reader.float();
|
|
1785
|
+
continue;
|
|
1786
|
+
}
|
|
1787
|
+
case 5: {
|
|
1788
|
+
if (tag !== 45) {
|
|
1789
|
+
break;
|
|
1790
|
+
}
|
|
1791
|
+
message.cruiseSpeed = reader.float();
|
|
1792
|
+
continue;
|
|
1793
|
+
}
|
|
1794
|
+
case 6: {
|
|
1795
|
+
if (tag !== 53) {
|
|
1796
|
+
break;
|
|
1797
|
+
}
|
|
1798
|
+
message.circleOfAcceptance = reader.float();
|
|
1799
|
+
continue;
|
|
1800
|
+
}
|
|
1801
|
+
case 7: {
|
|
1802
|
+
if (tag !== 58) {
|
|
1803
|
+
break;
|
|
1804
|
+
}
|
|
1805
|
+
message.depthSetPoint = exports.DepthSetPoint.decode(reader, reader.uint32());
|
|
1806
|
+
continue;
|
|
1807
|
+
}
|
|
1808
|
+
case 8: {
|
|
1809
|
+
if (tag !== 64) {
|
|
1810
|
+
break;
|
|
1811
|
+
}
|
|
1812
|
+
message.reverse = reader.bool();
|
|
1813
|
+
continue;
|
|
1814
|
+
}
|
|
1815
|
+
case 9: {
|
|
1816
|
+
if (tag !== 74) {
|
|
1817
|
+
break;
|
|
1818
|
+
}
|
|
1819
|
+
message.waypoints.push(exports.Waypoint.decode(reader, reader.uint32()));
|
|
1820
|
+
continue;
|
|
1821
|
+
}
|
|
1822
|
+
case 10: {
|
|
1823
|
+
if (tag !== 85) {
|
|
1824
|
+
break;
|
|
1825
|
+
}
|
|
1826
|
+
message.swathWidth = reader.float();
|
|
1827
|
+
continue;
|
|
1828
|
+
}
|
|
1829
|
+
case 11: {
|
|
1830
|
+
if (tag !== 93) {
|
|
1831
|
+
break;
|
|
1832
|
+
}
|
|
1833
|
+
message.overlapPercent = reader.float();
|
|
1834
|
+
continue;
|
|
1835
|
+
}
|
|
1836
|
+
}
|
|
1837
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1838
|
+
break;
|
|
1839
|
+
}
|
|
1840
|
+
reader.skip(tag & 7);
|
|
1841
|
+
}
|
|
1842
|
+
return message;
|
|
1843
|
+
},
|
|
1844
|
+
fromJSON(object) {
|
|
1845
|
+
return {
|
|
1846
|
+
vertices: gt.Array.isArray(object?.vertices) ? object.vertices.map((e) => message_formats_1.LatLongPosition.fromJSON(e)) : [],
|
|
1847
|
+
surveyLineHeading: isSet(object.surveyLineHeading) ? gt.Number(object.surveyLineHeading) : 0,
|
|
1848
|
+
laneSpacing: isSet(object.laneSpacing) ? gt.Number(object.laneSpacing) : 0,
|
|
1849
|
+
turnaroundDistance: isSet(object.turnaroundDistance) ? gt.Number(object.turnaroundDistance) : 0,
|
|
1850
|
+
cruiseSpeed: isSet(object.cruiseSpeed) ? gt.Number(object.cruiseSpeed) : 0,
|
|
1851
|
+
circleOfAcceptance: isSet(object.circleOfAcceptance) ? gt.Number(object.circleOfAcceptance) : 0,
|
|
1852
|
+
depthSetPoint: isSet(object.depthSetPoint) ? exports.DepthSetPoint.fromJSON(object.depthSetPoint) : undefined,
|
|
1853
|
+
reverse: isSet(object.reverse) ? gt.Boolean(object.reverse) : false,
|
|
1854
|
+
waypoints: gt.Array.isArray(object?.waypoints) ? object.waypoints.map((e) => exports.Waypoint.fromJSON(e)) : [],
|
|
1855
|
+
swathWidth: isSet(object.swathWidth) ? gt.Number(object.swathWidth) : 0,
|
|
1856
|
+
overlapPercent: isSet(object.overlapPercent) ? gt.Number(object.overlapPercent) : 0,
|
|
1857
|
+
};
|
|
1858
|
+
},
|
|
1859
|
+
toJSON(message) {
|
|
1860
|
+
const obj = {};
|
|
1861
|
+
if (message.vertices?.length) {
|
|
1862
|
+
obj.vertices = message.vertices.map((e) => message_formats_1.LatLongPosition.toJSON(e));
|
|
1863
|
+
}
|
|
1864
|
+
if (message.surveyLineHeading !== 0) {
|
|
1865
|
+
obj.surveyLineHeading = message.surveyLineHeading;
|
|
1866
|
+
}
|
|
1867
|
+
if (message.laneSpacing !== 0) {
|
|
1868
|
+
obj.laneSpacing = message.laneSpacing;
|
|
1869
|
+
}
|
|
1870
|
+
if (message.turnaroundDistance !== 0) {
|
|
1871
|
+
obj.turnaroundDistance = message.turnaroundDistance;
|
|
1872
|
+
}
|
|
1873
|
+
if (message.cruiseSpeed !== 0) {
|
|
1874
|
+
obj.cruiseSpeed = message.cruiseSpeed;
|
|
1875
|
+
}
|
|
1876
|
+
if (message.circleOfAcceptance !== 0) {
|
|
1877
|
+
obj.circleOfAcceptance = message.circleOfAcceptance;
|
|
1878
|
+
}
|
|
1879
|
+
if (message.depthSetPoint !== undefined) {
|
|
1880
|
+
obj.depthSetPoint = exports.DepthSetPoint.toJSON(message.depthSetPoint);
|
|
1881
|
+
}
|
|
1882
|
+
if (message.reverse !== false) {
|
|
1883
|
+
obj.reverse = message.reverse;
|
|
1884
|
+
}
|
|
1885
|
+
if (message.waypoints?.length) {
|
|
1886
|
+
obj.waypoints = message.waypoints.map((e) => exports.Waypoint.toJSON(e));
|
|
1887
|
+
}
|
|
1888
|
+
if (message.swathWidth !== 0) {
|
|
1889
|
+
obj.swathWidth = message.swathWidth;
|
|
1890
|
+
}
|
|
1891
|
+
if (message.overlapPercent !== 0) {
|
|
1892
|
+
obj.overlapPercent = message.overlapPercent;
|
|
1893
|
+
}
|
|
1894
|
+
return obj;
|
|
1895
|
+
},
|
|
1896
|
+
create(base) {
|
|
1897
|
+
return exports.SurveyCommand.fromPartial(base ?? {});
|
|
1898
|
+
},
|
|
1899
|
+
fromPartial(object) {
|
|
1900
|
+
const message = createBaseSurveyCommand();
|
|
1901
|
+
message.vertices = object.vertices?.map((e) => message_formats_1.LatLongPosition.fromPartial(e)) || [];
|
|
1902
|
+
message.surveyLineHeading = object.surveyLineHeading ?? 0;
|
|
1903
|
+
message.laneSpacing = object.laneSpacing ?? 0;
|
|
1904
|
+
message.turnaroundDistance = object.turnaroundDistance ?? 0;
|
|
1905
|
+
message.cruiseSpeed = object.cruiseSpeed ?? 0;
|
|
1906
|
+
message.circleOfAcceptance = object.circleOfAcceptance ?? 0;
|
|
1907
|
+
message.depthSetPoint = (object.depthSetPoint !== undefined && object.depthSetPoint !== null)
|
|
1908
|
+
? exports.DepthSetPoint.fromPartial(object.depthSetPoint)
|
|
1909
|
+
: undefined;
|
|
1910
|
+
message.reverse = object.reverse ?? false;
|
|
1911
|
+
message.waypoints = object.waypoints?.map((e) => exports.Waypoint.fromPartial(e)) || [];
|
|
1912
|
+
message.swathWidth = object.swathWidth ?? 0;
|
|
1913
|
+
message.overlapPercent = object.overlapPercent ?? 0;
|
|
1914
|
+
return message;
|
|
1915
|
+
},
|
|
1916
|
+
};
|
|
1675
1917
|
function createBasePathSegment() {
|
|
1676
1918
|
return {
|
|
1677
1919
|
id: 0,
|
package/dist/req_rep.d.ts
CHANGED
|
@@ -209,6 +209,24 @@ export interface FlashEscSettingsRep {
|
|
|
209
209
|
/** If the ESC settings were flashed successfully. */
|
|
210
210
|
success: boolean;
|
|
211
211
|
}
|
|
212
|
+
/** Request to set iperf task status. */
|
|
213
|
+
export interface SetIperfStatusReq {
|
|
214
|
+
/** If background iperf task should be enabled or disabled. */
|
|
215
|
+
enabled: boolean;
|
|
216
|
+
}
|
|
217
|
+
/** Response after setting iperf status. */
|
|
218
|
+
export interface SetIperfStatusRep {
|
|
219
|
+
/** If background iperf task is enabled or disabled. */
|
|
220
|
+
enabled: boolean;
|
|
221
|
+
}
|
|
222
|
+
/** Request to get current iperf task status. */
|
|
223
|
+
export interface GetIperfStatusReq {
|
|
224
|
+
}
|
|
225
|
+
/** Response with current iperf status. */
|
|
226
|
+
export interface GetIperfStatusRep {
|
|
227
|
+
/** If background iperf task is enabled or disabled. */
|
|
228
|
+
enabled: boolean;
|
|
229
|
+
}
|
|
212
230
|
export declare const SetOverlayParametersReq: MessageFns<SetOverlayParametersReq>;
|
|
213
231
|
export declare const SetOverlayParametersRep: MessageFns<SetOverlayParametersRep>;
|
|
214
232
|
export declare const GetOverlayParametersReq: MessageFns<GetOverlayParametersReq>;
|
|
@@ -247,6 +265,10 @@ export declare const GetPersistentStorageSettingsReq: MessageFns<GetPersistentSt
|
|
|
247
265
|
export declare const GetPersistentStorageSettingsRep: MessageFns<GetPersistentStorageSettingsRep>;
|
|
248
266
|
export declare const FlashEscSettingsReq: MessageFns<FlashEscSettingsReq>;
|
|
249
267
|
export declare const FlashEscSettingsRep: MessageFns<FlashEscSettingsRep>;
|
|
268
|
+
export declare const SetIperfStatusReq: MessageFns<SetIperfStatusReq>;
|
|
269
|
+
export declare const SetIperfStatusRep: MessageFns<SetIperfStatusRep>;
|
|
270
|
+
export declare const GetIperfStatusReq: MessageFns<GetIperfStatusReq>;
|
|
271
|
+
export declare const GetIperfStatusRep: MessageFns<GetIperfStatusRep>;
|
|
250
272
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
251
273
|
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
274
|
[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.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.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;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const any_1 = require("./google/protobuf/any");
|
|
@@ -1899,6 +1899,196 @@ exports.FlashEscSettingsRep = {
|
|
|
1899
1899
|
return message;
|
|
1900
1900
|
},
|
|
1901
1901
|
};
|
|
1902
|
+
function createBaseSetIperfStatusReq() {
|
|
1903
|
+
return { enabled: false };
|
|
1904
|
+
}
|
|
1905
|
+
exports.SetIperfStatusReq = {
|
|
1906
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1907
|
+
if (message.enabled !== false) {
|
|
1908
|
+
writer.uint32(8).bool(message.enabled);
|
|
1909
|
+
}
|
|
1910
|
+
return writer;
|
|
1911
|
+
},
|
|
1912
|
+
decode(input, length) {
|
|
1913
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1914
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1915
|
+
const message = createBaseSetIperfStatusReq();
|
|
1916
|
+
while (reader.pos < end) {
|
|
1917
|
+
const tag = reader.uint32();
|
|
1918
|
+
switch (tag >>> 3) {
|
|
1919
|
+
case 1: {
|
|
1920
|
+
if (tag !== 8) {
|
|
1921
|
+
break;
|
|
1922
|
+
}
|
|
1923
|
+
message.enabled = reader.bool();
|
|
1924
|
+
continue;
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1928
|
+
break;
|
|
1929
|
+
}
|
|
1930
|
+
reader.skip(tag & 7);
|
|
1931
|
+
}
|
|
1932
|
+
return message;
|
|
1933
|
+
},
|
|
1934
|
+
fromJSON(object) {
|
|
1935
|
+
return { enabled: isSet(object.enabled) ? gt.Boolean(object.enabled) : false };
|
|
1936
|
+
},
|
|
1937
|
+
toJSON(message) {
|
|
1938
|
+
const obj = {};
|
|
1939
|
+
if (message.enabled !== false) {
|
|
1940
|
+
obj.enabled = message.enabled;
|
|
1941
|
+
}
|
|
1942
|
+
return obj;
|
|
1943
|
+
},
|
|
1944
|
+
create(base) {
|
|
1945
|
+
return exports.SetIperfStatusReq.fromPartial(base ?? {});
|
|
1946
|
+
},
|
|
1947
|
+
fromPartial(object) {
|
|
1948
|
+
const message = createBaseSetIperfStatusReq();
|
|
1949
|
+
message.enabled = object.enabled ?? false;
|
|
1950
|
+
return message;
|
|
1951
|
+
},
|
|
1952
|
+
};
|
|
1953
|
+
function createBaseSetIperfStatusRep() {
|
|
1954
|
+
return { enabled: false };
|
|
1955
|
+
}
|
|
1956
|
+
exports.SetIperfStatusRep = {
|
|
1957
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1958
|
+
if (message.enabled !== false) {
|
|
1959
|
+
writer.uint32(8).bool(message.enabled);
|
|
1960
|
+
}
|
|
1961
|
+
return writer;
|
|
1962
|
+
},
|
|
1963
|
+
decode(input, length) {
|
|
1964
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1965
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1966
|
+
const message = createBaseSetIperfStatusRep();
|
|
1967
|
+
while (reader.pos < end) {
|
|
1968
|
+
const tag = reader.uint32();
|
|
1969
|
+
switch (tag >>> 3) {
|
|
1970
|
+
case 1: {
|
|
1971
|
+
if (tag !== 8) {
|
|
1972
|
+
break;
|
|
1973
|
+
}
|
|
1974
|
+
message.enabled = reader.bool();
|
|
1975
|
+
continue;
|
|
1976
|
+
}
|
|
1977
|
+
}
|
|
1978
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1979
|
+
break;
|
|
1980
|
+
}
|
|
1981
|
+
reader.skip(tag & 7);
|
|
1982
|
+
}
|
|
1983
|
+
return message;
|
|
1984
|
+
},
|
|
1985
|
+
fromJSON(object) {
|
|
1986
|
+
return { enabled: isSet(object.enabled) ? gt.Boolean(object.enabled) : false };
|
|
1987
|
+
},
|
|
1988
|
+
toJSON(message) {
|
|
1989
|
+
const obj = {};
|
|
1990
|
+
if (message.enabled !== false) {
|
|
1991
|
+
obj.enabled = message.enabled;
|
|
1992
|
+
}
|
|
1993
|
+
return obj;
|
|
1994
|
+
},
|
|
1995
|
+
create(base) {
|
|
1996
|
+
return exports.SetIperfStatusRep.fromPartial(base ?? {});
|
|
1997
|
+
},
|
|
1998
|
+
fromPartial(object) {
|
|
1999
|
+
const message = createBaseSetIperfStatusRep();
|
|
2000
|
+
message.enabled = object.enabled ?? false;
|
|
2001
|
+
return message;
|
|
2002
|
+
},
|
|
2003
|
+
};
|
|
2004
|
+
function createBaseGetIperfStatusReq() {
|
|
2005
|
+
return {};
|
|
2006
|
+
}
|
|
2007
|
+
exports.GetIperfStatusReq = {
|
|
2008
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
2009
|
+
return writer;
|
|
2010
|
+
},
|
|
2011
|
+
decode(input, length) {
|
|
2012
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2013
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2014
|
+
const message = createBaseGetIperfStatusReq();
|
|
2015
|
+
while (reader.pos < end) {
|
|
2016
|
+
const tag = reader.uint32();
|
|
2017
|
+
switch (tag >>> 3) {
|
|
2018
|
+
}
|
|
2019
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2020
|
+
break;
|
|
2021
|
+
}
|
|
2022
|
+
reader.skip(tag & 7);
|
|
2023
|
+
}
|
|
2024
|
+
return message;
|
|
2025
|
+
},
|
|
2026
|
+
fromJSON(_) {
|
|
2027
|
+
return {};
|
|
2028
|
+
},
|
|
2029
|
+
toJSON(_) {
|
|
2030
|
+
const obj = {};
|
|
2031
|
+
return obj;
|
|
2032
|
+
},
|
|
2033
|
+
create(base) {
|
|
2034
|
+
return exports.GetIperfStatusReq.fromPartial(base ?? {});
|
|
2035
|
+
},
|
|
2036
|
+
fromPartial(_) {
|
|
2037
|
+
const message = createBaseGetIperfStatusReq();
|
|
2038
|
+
return message;
|
|
2039
|
+
},
|
|
2040
|
+
};
|
|
2041
|
+
function createBaseGetIperfStatusRep() {
|
|
2042
|
+
return { enabled: false };
|
|
2043
|
+
}
|
|
2044
|
+
exports.GetIperfStatusRep = {
|
|
2045
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2046
|
+
if (message.enabled !== false) {
|
|
2047
|
+
writer.uint32(8).bool(message.enabled);
|
|
2048
|
+
}
|
|
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 = createBaseGetIperfStatusRep();
|
|
2055
|
+
while (reader.pos < end) {
|
|
2056
|
+
const tag = reader.uint32();
|
|
2057
|
+
switch (tag >>> 3) {
|
|
2058
|
+
case 1: {
|
|
2059
|
+
if (tag !== 8) {
|
|
2060
|
+
break;
|
|
2061
|
+
}
|
|
2062
|
+
message.enabled = reader.bool();
|
|
2063
|
+
continue;
|
|
2064
|
+
}
|
|
2065
|
+
}
|
|
2066
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2067
|
+
break;
|
|
2068
|
+
}
|
|
2069
|
+
reader.skip(tag & 7);
|
|
2070
|
+
}
|
|
2071
|
+
return message;
|
|
2072
|
+
},
|
|
2073
|
+
fromJSON(object) {
|
|
2074
|
+
return { enabled: isSet(object.enabled) ? gt.Boolean(object.enabled) : false };
|
|
2075
|
+
},
|
|
2076
|
+
toJSON(message) {
|
|
2077
|
+
const obj = {};
|
|
2078
|
+
if (message.enabled !== false) {
|
|
2079
|
+
obj.enabled = message.enabled;
|
|
2080
|
+
}
|
|
2081
|
+
return obj;
|
|
2082
|
+
},
|
|
2083
|
+
create(base) {
|
|
2084
|
+
return exports.GetIperfStatusRep.fromPartial(base ?? {});
|
|
2085
|
+
},
|
|
2086
|
+
fromPartial(object) {
|
|
2087
|
+
const message = createBaseGetIperfStatusRep();
|
|
2088
|
+
message.enabled = object.enabled ?? false;
|
|
2089
|
+
return message;
|
|
2090
|
+
},
|
|
2091
|
+
};
|
|
1902
2092
|
const gt = (() => {
|
|
1903
2093
|
if (typeof globalThis !== "undefined") {
|
|
1904
2094
|
return globalThis;
|