@blueyerobotics/protocol-definitions 3.3.0-e472bef2 → 3.4.0-38c6a3b0
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/README.md +24 -0
- package/README.npm.md +24 -0
- package/dist/aquatroll.js +113 -132
- package/dist/control.d.ts +32 -3
- package/dist/control.js +539 -399
- package/dist/google/protobuf/any.js +5 -8
- package/dist/google/protobuf/duration.js +5 -8
- package/dist/google/protobuf/timestamp.js +5 -8
- package/dist/index.blueye.d.ts +1 -1
- package/dist/index.blueye.js +1 -37
- package/dist/index.blueye.protocol.d.ts +6 -6
- package/dist/index.blueye.protocol.js +6 -22
- package/dist/index.d.ts +2 -2
- package/dist/index.google.d.ts +1 -1
- package/dist/index.google.js +1 -37
- package/dist/index.google.protobuf.d.ts +3 -3
- package/dist/index.google.protobuf.js +3 -19
- package/dist/index.js +2 -38
- package/dist/message_formats.d.ts +390 -14
- package/dist/message_formats.js +8311 -5956
- package/dist/mission_planning.d.ts +1 -1
- package/dist/mission_planning.js +208 -223
- package/dist/req_rep.d.ts +23 -3
- package/dist/req_rep.js +473 -296
- package/dist/telemetry.d.ts +51 -3
- package/dist/telemetry.js +974 -637
- package/package.json +13 -3
package/dist/mission_planning.js
CHANGED
|
@@ -1,40 +1,25 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
2
|
// versions:
|
|
4
3
|
// protoc-gen-ts_proto v2.7.7
|
|
5
4
|
// protoc v3.21.12
|
|
6
5
|
// source: mission_planning.proto
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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
|
-
exports.depthZeroReferenceFromJSON = depthZeroReferenceFromJSON;
|
|
10
|
-
exports.depthZeroReferenceToJSON = depthZeroReferenceToJSON;
|
|
11
|
-
exports.controlModeVerticalFromJSON = controlModeVerticalFromJSON;
|
|
12
|
-
exports.controlModeVerticalToJSON = controlModeVerticalToJSON;
|
|
13
|
-
exports.controlModeHorizontalFromJSON = controlModeHorizontalFromJSON;
|
|
14
|
-
exports.controlModeHorizontalToJSON = controlModeHorizontalToJSON;
|
|
15
|
-
exports.cameraActionFromJSON = cameraActionFromJSON;
|
|
16
|
-
exports.cameraActionToJSON = cameraActionToJSON;
|
|
17
|
-
exports.instructionTypeFromJSON = instructionTypeFromJSON;
|
|
18
|
-
exports.instructionTypeToJSON = instructionTypeToJSON;
|
|
19
|
-
exports.missionStateFromJSON = missionStateFromJSON;
|
|
20
|
-
exports.missionStateToJSON = missionStateToJSON;
|
|
21
6
|
/* eslint-disable */
|
|
22
|
-
|
|
23
|
-
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
|
+
import { LatLongPosition, MultibeamServo, TiltAngle } from "./message_formats.js";
|
|
24
9
|
/**
|
|
25
10
|
* Mission Planning Protocol.
|
|
26
11
|
*
|
|
27
12
|
* These messages are used to start a mission and to monitor the status of the mission.
|
|
28
13
|
*/
|
|
29
14
|
/** Depth zero reference from surface for depth, and seabed for altitude. */
|
|
30
|
-
var DepthZeroReference;
|
|
15
|
+
export var DepthZeroReference;
|
|
31
16
|
(function (DepthZeroReference) {
|
|
32
17
|
DepthZeroReference[DepthZeroReference["DEPTH_ZERO_REFERENCE_UNSPECIFIED"] = 0] = "DEPTH_ZERO_REFERENCE_UNSPECIFIED";
|
|
33
18
|
DepthZeroReference[DepthZeroReference["DEPTH_ZERO_REFERENCE_SURFACE"] = 1] = "DEPTH_ZERO_REFERENCE_SURFACE";
|
|
34
19
|
DepthZeroReference[DepthZeroReference["DEPTH_ZERO_REFERENCE_SEABED"] = 2] = "DEPTH_ZERO_REFERENCE_SEABED";
|
|
35
20
|
DepthZeroReference[DepthZeroReference["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
36
|
-
})(DepthZeroReference || (
|
|
37
|
-
function depthZeroReferenceFromJSON(object) {
|
|
21
|
+
})(DepthZeroReference || (DepthZeroReference = {}));
|
|
22
|
+
export function depthZeroReferenceFromJSON(object) {
|
|
38
23
|
switch (object) {
|
|
39
24
|
case 0:
|
|
40
25
|
case "DEPTH_ZERO_REFERENCE_UNSPECIFIED":
|
|
@@ -51,7 +36,7 @@ function depthZeroReferenceFromJSON(object) {
|
|
|
51
36
|
return DepthZeroReference.UNRECOGNIZED;
|
|
52
37
|
}
|
|
53
38
|
}
|
|
54
|
-
function depthZeroReferenceToJSON(object) {
|
|
39
|
+
export function depthZeroReferenceToJSON(object) {
|
|
55
40
|
switch (object) {
|
|
56
41
|
case DepthZeroReference.DEPTH_ZERO_REFERENCE_UNSPECIFIED:
|
|
57
42
|
return "DEPTH_ZERO_REFERENCE_UNSPECIFIED";
|
|
@@ -65,7 +50,7 @@ function depthZeroReferenceToJSON(object) {
|
|
|
65
50
|
}
|
|
66
51
|
}
|
|
67
52
|
/** Control mode for the vertical axis of the drone. */
|
|
68
|
-
var ControlModeVertical;
|
|
53
|
+
export var ControlModeVertical;
|
|
69
54
|
(function (ControlModeVertical) {
|
|
70
55
|
/** CONTROL_MODE_VERTICAL_UNSPECIFIED - Unspecified. */
|
|
71
56
|
ControlModeVertical[ControlModeVertical["CONTROL_MODE_VERTICAL_UNSPECIFIED"] = 0] = "CONTROL_MODE_VERTICAL_UNSPECIFIED";
|
|
@@ -76,8 +61,8 @@ var ControlModeVertical;
|
|
|
76
61
|
/** CONTROL_MODE_VERTICAL_AUTO_ALTITUDE - Auto altitude control mode. */
|
|
77
62
|
ControlModeVertical[ControlModeVertical["CONTROL_MODE_VERTICAL_AUTO_ALTITUDE"] = 3] = "CONTROL_MODE_VERTICAL_AUTO_ALTITUDE";
|
|
78
63
|
ControlModeVertical[ControlModeVertical["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
79
|
-
})(ControlModeVertical || (
|
|
80
|
-
function controlModeVerticalFromJSON(object) {
|
|
64
|
+
})(ControlModeVertical || (ControlModeVertical = {}));
|
|
65
|
+
export function controlModeVerticalFromJSON(object) {
|
|
81
66
|
switch (object) {
|
|
82
67
|
case 0:
|
|
83
68
|
case "CONTROL_MODE_VERTICAL_UNSPECIFIED":
|
|
@@ -97,7 +82,7 @@ function controlModeVerticalFromJSON(object) {
|
|
|
97
82
|
return ControlModeVertical.UNRECOGNIZED;
|
|
98
83
|
}
|
|
99
84
|
}
|
|
100
|
-
function controlModeVerticalToJSON(object) {
|
|
85
|
+
export function controlModeVerticalToJSON(object) {
|
|
101
86
|
switch (object) {
|
|
102
87
|
case ControlModeVertical.CONTROL_MODE_VERTICAL_UNSPECIFIED:
|
|
103
88
|
return "CONTROL_MODE_VERTICAL_UNSPECIFIED";
|
|
@@ -113,7 +98,7 @@ function controlModeVerticalToJSON(object) {
|
|
|
113
98
|
}
|
|
114
99
|
}
|
|
115
100
|
/** Control mode for the horizontal axis of the drone. */
|
|
116
|
-
var ControlModeHorizontal;
|
|
101
|
+
export var ControlModeHorizontal;
|
|
117
102
|
(function (ControlModeHorizontal) {
|
|
118
103
|
/** CONTROL_MODE_HORIZONTAL_UNSPECIFIED - Unspecified. */
|
|
119
104
|
ControlModeHorizontal[ControlModeHorizontal["CONTROL_MODE_HORIZONTAL_UNSPECIFIED"] = 0] = "CONTROL_MODE_HORIZONTAL_UNSPECIFIED";
|
|
@@ -124,8 +109,8 @@ var ControlModeHorizontal;
|
|
|
124
109
|
/** CONTROL_MODE_HORIZONTAL_STATION_KEEPING - Station keeping control mode. */
|
|
125
110
|
ControlModeHorizontal[ControlModeHorizontal["CONTROL_MODE_HORIZONTAL_STATION_KEEPING"] = 3] = "CONTROL_MODE_HORIZONTAL_STATION_KEEPING";
|
|
126
111
|
ControlModeHorizontal[ControlModeHorizontal["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
127
|
-
})(ControlModeHorizontal || (
|
|
128
|
-
function controlModeHorizontalFromJSON(object) {
|
|
112
|
+
})(ControlModeHorizontal || (ControlModeHorizontal = {}));
|
|
113
|
+
export function controlModeHorizontalFromJSON(object) {
|
|
129
114
|
switch (object) {
|
|
130
115
|
case 0:
|
|
131
116
|
case "CONTROL_MODE_HORIZONTAL_UNSPECIFIED":
|
|
@@ -145,7 +130,7 @@ function controlModeHorizontalFromJSON(object) {
|
|
|
145
130
|
return ControlModeHorizontal.UNRECOGNIZED;
|
|
146
131
|
}
|
|
147
132
|
}
|
|
148
|
-
function controlModeHorizontalToJSON(object) {
|
|
133
|
+
export function controlModeHorizontalToJSON(object) {
|
|
149
134
|
switch (object) {
|
|
150
135
|
case ControlModeHorizontal.CONTROL_MODE_HORIZONTAL_UNSPECIFIED:
|
|
151
136
|
return "CONTROL_MODE_HORIZONTAL_UNSPECIFIED";
|
|
@@ -161,7 +146,7 @@ function controlModeHorizontalToJSON(object) {
|
|
|
161
146
|
}
|
|
162
147
|
}
|
|
163
148
|
/** List of available camera actions. */
|
|
164
|
-
var CameraAction;
|
|
149
|
+
export var CameraAction;
|
|
165
150
|
(function (CameraAction) {
|
|
166
151
|
/** CAMERA_ACTION_UNSPECIFIED - Unspecified command. */
|
|
167
152
|
CameraAction[CameraAction["CAMERA_ACTION_UNSPECIFIED"] = 0] = "CAMERA_ACTION_UNSPECIFIED";
|
|
@@ -178,8 +163,8 @@ var CameraAction;
|
|
|
178
163
|
/** CAMERA_ACTION_STOP_RECORDING - Stop recording. */
|
|
179
164
|
CameraAction[CameraAction["CAMERA_ACTION_STOP_RECORDING"] = 6] = "CAMERA_ACTION_STOP_RECORDING";
|
|
180
165
|
CameraAction[CameraAction["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
181
|
-
})(CameraAction || (
|
|
182
|
-
function cameraActionFromJSON(object) {
|
|
166
|
+
})(CameraAction || (CameraAction = {}));
|
|
167
|
+
export function cameraActionFromJSON(object) {
|
|
183
168
|
switch (object) {
|
|
184
169
|
case 0:
|
|
185
170
|
case "CAMERA_ACTION_UNSPECIFIED":
|
|
@@ -208,7 +193,7 @@ function cameraActionFromJSON(object) {
|
|
|
208
193
|
return CameraAction.UNRECOGNIZED;
|
|
209
194
|
}
|
|
210
195
|
}
|
|
211
|
-
function cameraActionToJSON(object) {
|
|
196
|
+
export function cameraActionToJSON(object) {
|
|
212
197
|
switch (object) {
|
|
213
198
|
case CameraAction.CAMERA_ACTION_UNSPECIFIED:
|
|
214
199
|
return "CAMERA_ACTION_UNSPECIFIED";
|
|
@@ -230,7 +215,7 @@ function cameraActionToJSON(object) {
|
|
|
230
215
|
}
|
|
231
216
|
}
|
|
232
217
|
/** List of available instruction types. */
|
|
233
|
-
var InstructionType;
|
|
218
|
+
export var InstructionType;
|
|
234
219
|
(function (InstructionType) {
|
|
235
220
|
/** INSTRUCTION_TYPE_UNSPECIFIED - Unspecified. */
|
|
236
221
|
InstructionType[InstructionType["INSTRUCTION_TYPE_UNSPECIFIED"] = 0] = "INSTRUCTION_TYPE_UNSPECIFIED";
|
|
@@ -261,8 +246,8 @@ var InstructionType;
|
|
|
261
246
|
/** INSTRUCTION_TYPE_SURVEY - Execute a survey pattern over a polygon area. */
|
|
262
247
|
InstructionType[InstructionType["INSTRUCTION_TYPE_SURVEY"] = 13] = "INSTRUCTION_TYPE_SURVEY";
|
|
263
248
|
InstructionType[InstructionType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
264
|
-
})(InstructionType || (
|
|
265
|
-
function instructionTypeFromJSON(object) {
|
|
249
|
+
})(InstructionType || (InstructionType = {}));
|
|
250
|
+
export function instructionTypeFromJSON(object) {
|
|
266
251
|
switch (object) {
|
|
267
252
|
case 0:
|
|
268
253
|
case "INSTRUCTION_TYPE_UNSPECIFIED":
|
|
@@ -312,7 +297,7 @@ function instructionTypeFromJSON(object) {
|
|
|
312
297
|
return InstructionType.UNRECOGNIZED;
|
|
313
298
|
}
|
|
314
299
|
}
|
|
315
|
-
function instructionTypeToJSON(object) {
|
|
300
|
+
export function instructionTypeToJSON(object) {
|
|
316
301
|
switch (object) {
|
|
317
302
|
case InstructionType.INSTRUCTION_TYPE_UNSPECIFIED:
|
|
318
303
|
return "INSTRUCTION_TYPE_UNSPECIFIED";
|
|
@@ -348,7 +333,7 @@ function instructionTypeToJSON(object) {
|
|
|
348
333
|
}
|
|
349
334
|
}
|
|
350
335
|
/** List of mission supervisor states. */
|
|
351
|
-
var MissionState;
|
|
336
|
+
export var MissionState;
|
|
352
337
|
(function (MissionState) {
|
|
353
338
|
/** MISSION_STATE_UNSPECIFIED - Unspecified. */
|
|
354
339
|
MissionState[MissionState["MISSION_STATE_UNSPECIFIED"] = 0] = "MISSION_STATE_UNSPECIFIED";
|
|
@@ -369,8 +354,8 @@ var MissionState;
|
|
|
369
354
|
/** MISSION_STATE_FAILED_TO_START_MISSION - Mission has failed to start. */
|
|
370
355
|
MissionState[MissionState["MISSION_STATE_FAILED_TO_START_MISSION"] = 8] = "MISSION_STATE_FAILED_TO_START_MISSION";
|
|
371
356
|
MissionState[MissionState["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
372
|
-
})(MissionState || (
|
|
373
|
-
function missionStateFromJSON(object) {
|
|
357
|
+
})(MissionState || (MissionState = {}));
|
|
358
|
+
export function missionStateFromJSON(object) {
|
|
374
359
|
switch (object) {
|
|
375
360
|
case 0:
|
|
376
361
|
case "MISSION_STATE_UNSPECIFIED":
|
|
@@ -405,7 +390,7 @@ function missionStateFromJSON(object) {
|
|
|
405
390
|
return MissionState.UNRECOGNIZED;
|
|
406
391
|
}
|
|
407
392
|
}
|
|
408
|
-
function missionStateToJSON(object) {
|
|
393
|
+
export function missionStateToJSON(object) {
|
|
409
394
|
switch (object) {
|
|
410
395
|
case MissionState.MISSION_STATE_UNSPECIFIED:
|
|
411
396
|
return "MISSION_STATE_UNSPECIFIED";
|
|
@@ -443,8 +428,8 @@ function createBaseMission() {
|
|
|
443
428
|
defaultCircleOfAcceptance: 0,
|
|
444
429
|
};
|
|
445
430
|
}
|
|
446
|
-
|
|
447
|
-
encode(message, writer = new
|
|
431
|
+
export const Mission = {
|
|
432
|
+
encode(message, writer = new BinaryWriter()) {
|
|
448
433
|
if (message.id !== 0) {
|
|
449
434
|
writer.uint32(8).uint32(message.id);
|
|
450
435
|
}
|
|
@@ -452,10 +437,10 @@ exports.Mission = {
|
|
|
452
437
|
writer.uint32(18).string(message.name);
|
|
453
438
|
}
|
|
454
439
|
for (const v of message.instructions) {
|
|
455
|
-
|
|
440
|
+
Instruction.encode(v, writer.uint32(26).fork()).join();
|
|
456
441
|
}
|
|
457
442
|
for (const v of message.pathSegments) {
|
|
458
|
-
|
|
443
|
+
PathSegment.encode(v, writer.uint32(34).fork()).join();
|
|
459
444
|
}
|
|
460
445
|
if (message.totalDistance !== 0) {
|
|
461
446
|
writer.uint32(40).uint32(message.totalDistance);
|
|
@@ -475,7 +460,7 @@ exports.Mission = {
|
|
|
475
460
|
return writer;
|
|
476
461
|
},
|
|
477
462
|
decode(input, length) {
|
|
478
|
-
const reader = input instanceof
|
|
463
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
479
464
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
480
465
|
const message = createBaseMission();
|
|
481
466
|
while (reader.pos < end) {
|
|
@@ -499,14 +484,14 @@ exports.Mission = {
|
|
|
499
484
|
if (tag !== 26) {
|
|
500
485
|
break;
|
|
501
486
|
}
|
|
502
|
-
message.instructions.push(
|
|
487
|
+
message.instructions.push(Instruction.decode(reader, reader.uint32()));
|
|
503
488
|
continue;
|
|
504
489
|
}
|
|
505
490
|
case 4: {
|
|
506
491
|
if (tag !== 34) {
|
|
507
492
|
break;
|
|
508
493
|
}
|
|
509
|
-
message.pathSegments.push(
|
|
494
|
+
message.pathSegments.push(PathSegment.decode(reader, reader.uint32()));
|
|
510
495
|
continue;
|
|
511
496
|
}
|
|
512
497
|
case 5: {
|
|
@@ -557,10 +542,10 @@ exports.Mission = {
|
|
|
557
542
|
id: isSet(object.id) ? gt.Number(object.id) : 0,
|
|
558
543
|
name: isSet(object.name) ? gt.String(object.name) : "",
|
|
559
544
|
instructions: gt.Array.isArray(object?.instructions)
|
|
560
|
-
? object.instructions.map((e) =>
|
|
545
|
+
? object.instructions.map((e) => Instruction.fromJSON(e))
|
|
561
546
|
: [],
|
|
562
547
|
pathSegments: gt.Array.isArray(object?.pathSegments)
|
|
563
|
-
? object.pathSegments.map((e) =>
|
|
548
|
+
? object.pathSegments.map((e) => PathSegment.fromJSON(e))
|
|
564
549
|
: [],
|
|
565
550
|
totalDistance: isSet(object.totalDistance) ? gt.Number(object.totalDistance) : 0,
|
|
566
551
|
totalDurationTime: isSet(object.totalDurationTime) ? gt.Number(object.totalDurationTime) : 0,
|
|
@@ -580,10 +565,10 @@ exports.Mission = {
|
|
|
580
565
|
obj.name = message.name;
|
|
581
566
|
}
|
|
582
567
|
if (message.instructions?.length) {
|
|
583
|
-
obj.instructions = message.instructions.map((e) =>
|
|
568
|
+
obj.instructions = message.instructions.map((e) => Instruction.toJSON(e));
|
|
584
569
|
}
|
|
585
570
|
if (message.pathSegments?.length) {
|
|
586
|
-
obj.pathSegments = message.pathSegments.map((e) =>
|
|
571
|
+
obj.pathSegments = message.pathSegments.map((e) => PathSegment.toJSON(e));
|
|
587
572
|
}
|
|
588
573
|
if (message.totalDistance !== 0) {
|
|
589
574
|
obj.totalDistance = Math.round(message.totalDistance);
|
|
@@ -603,14 +588,14 @@ exports.Mission = {
|
|
|
603
588
|
return obj;
|
|
604
589
|
},
|
|
605
590
|
create(base) {
|
|
606
|
-
return
|
|
591
|
+
return Mission.fromPartial(base ?? {});
|
|
607
592
|
},
|
|
608
593
|
fromPartial(object) {
|
|
609
594
|
const message = createBaseMission();
|
|
610
595
|
message.id = object.id ?? 0;
|
|
611
596
|
message.name = object.name ?? "";
|
|
612
|
-
message.instructions = object.instructions?.map((e) =>
|
|
613
|
-
message.pathSegments = object.pathSegments?.map((e) =>
|
|
597
|
+
message.instructions = object.instructions?.map((e) => Instruction.fromPartial(e)) || [];
|
|
598
|
+
message.pathSegments = object.pathSegments?.map((e) => PathSegment.fromPartial(e)) || [];
|
|
614
599
|
message.totalDistance = object.totalDistance ?? 0;
|
|
615
600
|
message.totalDurationTime = object.totalDurationTime ?? 0;
|
|
616
601
|
message.defaultSurgeSpeed = object.defaultSurgeSpeed ?? 0;
|
|
@@ -637,8 +622,8 @@ function createBaseInstruction() {
|
|
|
637
622
|
surveyCommand: undefined,
|
|
638
623
|
};
|
|
639
624
|
}
|
|
640
|
-
|
|
641
|
-
encode(message, writer = new
|
|
625
|
+
export const Instruction = {
|
|
626
|
+
encode(message, writer = new BinaryWriter()) {
|
|
642
627
|
if (message.id !== 0) {
|
|
643
628
|
writer.uint32(8).uint32(message.id);
|
|
644
629
|
}
|
|
@@ -649,42 +634,42 @@ exports.Instruction = {
|
|
|
649
634
|
writer.uint32(24).bool(message.autoContinue);
|
|
650
635
|
}
|
|
651
636
|
if (message.waypointCommand !== undefined) {
|
|
652
|
-
|
|
637
|
+
WaypointCommand.encode(message.waypointCommand, writer.uint32(34).fork()).join();
|
|
653
638
|
}
|
|
654
639
|
if (message.depthSetPointCommand !== undefined) {
|
|
655
|
-
|
|
640
|
+
DepthSetPointCommand.encode(message.depthSetPointCommand, writer.uint32(42).fork()).join();
|
|
656
641
|
}
|
|
657
642
|
if (message.cameraCommand !== undefined) {
|
|
658
|
-
|
|
643
|
+
CameraCommand.encode(message.cameraCommand, writer.uint32(50).fork()).join();
|
|
659
644
|
}
|
|
660
645
|
if (message.controlModeCommand !== undefined) {
|
|
661
|
-
|
|
646
|
+
ControlModeCommand.encode(message.controlModeCommand, writer.uint32(58).fork()).join();
|
|
662
647
|
}
|
|
663
648
|
if (message.tiltMainCameraCommand !== undefined) {
|
|
664
|
-
|
|
649
|
+
TiltMainCameraCommand.encode(message.tiltMainCameraCommand, writer.uint32(66).fork()).join();
|
|
665
650
|
}
|
|
666
651
|
if (message.tiltMultibeamCommand !== undefined) {
|
|
667
|
-
|
|
652
|
+
TiltMultibeamCommand.encode(message.tiltMultibeamCommand, writer.uint32(74).fork()).join();
|
|
668
653
|
}
|
|
669
654
|
if (message.waitForCommand !== undefined) {
|
|
670
|
-
|
|
655
|
+
WaitForCommand.encode(message.waitForCommand, writer.uint32(82).fork()).join();
|
|
671
656
|
}
|
|
672
657
|
if (message.goToSurfaceCommand !== undefined) {
|
|
673
|
-
|
|
658
|
+
GoToSurfaceCommand.encode(message.goToSurfaceCommand, writer.uint32(90).fork()).join();
|
|
674
659
|
}
|
|
675
660
|
if (message.goToSeabedCommand !== undefined) {
|
|
676
|
-
|
|
661
|
+
GoToSeabedCommand.encode(message.goToSeabedCommand, writer.uint32(98).fork()).join();
|
|
677
662
|
}
|
|
678
663
|
if (message.goToHomeCommand !== undefined) {
|
|
679
|
-
|
|
664
|
+
GoToHomeCommand.encode(message.goToHomeCommand, writer.uint32(106).fork()).join();
|
|
680
665
|
}
|
|
681
666
|
if (message.surveyCommand !== undefined) {
|
|
682
|
-
|
|
667
|
+
SurveyCommand.encode(message.surveyCommand, writer.uint32(114).fork()).join();
|
|
683
668
|
}
|
|
684
669
|
return writer;
|
|
685
670
|
},
|
|
686
671
|
decode(input, length) {
|
|
687
|
-
const reader = input instanceof
|
|
672
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
688
673
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
689
674
|
const message = createBaseInstruction();
|
|
690
675
|
while (reader.pos < end) {
|
|
@@ -715,77 +700,77 @@ exports.Instruction = {
|
|
|
715
700
|
if (tag !== 34) {
|
|
716
701
|
break;
|
|
717
702
|
}
|
|
718
|
-
message.waypointCommand =
|
|
703
|
+
message.waypointCommand = WaypointCommand.decode(reader, reader.uint32());
|
|
719
704
|
continue;
|
|
720
705
|
}
|
|
721
706
|
case 5: {
|
|
722
707
|
if (tag !== 42) {
|
|
723
708
|
break;
|
|
724
709
|
}
|
|
725
|
-
message.depthSetPointCommand =
|
|
710
|
+
message.depthSetPointCommand = DepthSetPointCommand.decode(reader, reader.uint32());
|
|
726
711
|
continue;
|
|
727
712
|
}
|
|
728
713
|
case 6: {
|
|
729
714
|
if (tag !== 50) {
|
|
730
715
|
break;
|
|
731
716
|
}
|
|
732
|
-
message.cameraCommand =
|
|
717
|
+
message.cameraCommand = CameraCommand.decode(reader, reader.uint32());
|
|
733
718
|
continue;
|
|
734
719
|
}
|
|
735
720
|
case 7: {
|
|
736
721
|
if (tag !== 58) {
|
|
737
722
|
break;
|
|
738
723
|
}
|
|
739
|
-
message.controlModeCommand =
|
|
724
|
+
message.controlModeCommand = ControlModeCommand.decode(reader, reader.uint32());
|
|
740
725
|
continue;
|
|
741
726
|
}
|
|
742
727
|
case 8: {
|
|
743
728
|
if (tag !== 66) {
|
|
744
729
|
break;
|
|
745
730
|
}
|
|
746
|
-
message.tiltMainCameraCommand =
|
|
731
|
+
message.tiltMainCameraCommand = TiltMainCameraCommand.decode(reader, reader.uint32());
|
|
747
732
|
continue;
|
|
748
733
|
}
|
|
749
734
|
case 9: {
|
|
750
735
|
if (tag !== 74) {
|
|
751
736
|
break;
|
|
752
737
|
}
|
|
753
|
-
message.tiltMultibeamCommand =
|
|
738
|
+
message.tiltMultibeamCommand = TiltMultibeamCommand.decode(reader, reader.uint32());
|
|
754
739
|
continue;
|
|
755
740
|
}
|
|
756
741
|
case 10: {
|
|
757
742
|
if (tag !== 82) {
|
|
758
743
|
break;
|
|
759
744
|
}
|
|
760
|
-
message.waitForCommand =
|
|
745
|
+
message.waitForCommand = WaitForCommand.decode(reader, reader.uint32());
|
|
761
746
|
continue;
|
|
762
747
|
}
|
|
763
748
|
case 11: {
|
|
764
749
|
if (tag !== 90) {
|
|
765
750
|
break;
|
|
766
751
|
}
|
|
767
|
-
message.goToSurfaceCommand =
|
|
752
|
+
message.goToSurfaceCommand = GoToSurfaceCommand.decode(reader, reader.uint32());
|
|
768
753
|
continue;
|
|
769
754
|
}
|
|
770
755
|
case 12: {
|
|
771
756
|
if (tag !== 98) {
|
|
772
757
|
break;
|
|
773
758
|
}
|
|
774
|
-
message.goToSeabedCommand =
|
|
759
|
+
message.goToSeabedCommand = GoToSeabedCommand.decode(reader, reader.uint32());
|
|
775
760
|
continue;
|
|
776
761
|
}
|
|
777
762
|
case 13: {
|
|
778
763
|
if (tag !== 106) {
|
|
779
764
|
break;
|
|
780
765
|
}
|
|
781
|
-
message.goToHomeCommand =
|
|
766
|
+
message.goToHomeCommand = GoToHomeCommand.decode(reader, reader.uint32());
|
|
782
767
|
continue;
|
|
783
768
|
}
|
|
784
769
|
case 14: {
|
|
785
770
|
if (tag !== 114) {
|
|
786
771
|
break;
|
|
787
772
|
}
|
|
788
|
-
message.surveyCommand =
|
|
773
|
+
message.surveyCommand = SurveyCommand.decode(reader, reader.uint32());
|
|
789
774
|
continue;
|
|
790
775
|
}
|
|
791
776
|
}
|
|
@@ -801,29 +786,29 @@ exports.Instruction = {
|
|
|
801
786
|
id: isSet(object.id) ? gt.Number(object.id) : 0,
|
|
802
787
|
groupId: isSet(object.groupId) ? gt.Number(object.groupId) : 0,
|
|
803
788
|
autoContinue: isSet(object.autoContinue) ? gt.Boolean(object.autoContinue) : false,
|
|
804
|
-
waypointCommand: isSet(object.waypointCommand) ?
|
|
789
|
+
waypointCommand: isSet(object.waypointCommand) ? WaypointCommand.fromJSON(object.waypointCommand) : undefined,
|
|
805
790
|
depthSetPointCommand: isSet(object.depthSetPointCommand)
|
|
806
|
-
?
|
|
791
|
+
? DepthSetPointCommand.fromJSON(object.depthSetPointCommand)
|
|
807
792
|
: undefined,
|
|
808
|
-
cameraCommand: isSet(object.cameraCommand) ?
|
|
793
|
+
cameraCommand: isSet(object.cameraCommand) ? CameraCommand.fromJSON(object.cameraCommand) : undefined,
|
|
809
794
|
controlModeCommand: isSet(object.controlModeCommand)
|
|
810
|
-
?
|
|
795
|
+
? ControlModeCommand.fromJSON(object.controlModeCommand)
|
|
811
796
|
: undefined,
|
|
812
797
|
tiltMainCameraCommand: isSet(object.tiltMainCameraCommand)
|
|
813
|
-
?
|
|
798
|
+
? TiltMainCameraCommand.fromJSON(object.tiltMainCameraCommand)
|
|
814
799
|
: undefined,
|
|
815
800
|
tiltMultibeamCommand: isSet(object.tiltMultibeamCommand)
|
|
816
|
-
?
|
|
801
|
+
? TiltMultibeamCommand.fromJSON(object.tiltMultibeamCommand)
|
|
817
802
|
: undefined,
|
|
818
|
-
waitForCommand: isSet(object.waitForCommand) ?
|
|
803
|
+
waitForCommand: isSet(object.waitForCommand) ? WaitForCommand.fromJSON(object.waitForCommand) : undefined,
|
|
819
804
|
goToSurfaceCommand: isSet(object.goToSurfaceCommand)
|
|
820
|
-
?
|
|
805
|
+
? GoToSurfaceCommand.fromJSON(object.goToSurfaceCommand)
|
|
821
806
|
: undefined,
|
|
822
807
|
goToSeabedCommand: isSet(object.goToSeabedCommand)
|
|
823
|
-
?
|
|
808
|
+
? GoToSeabedCommand.fromJSON(object.goToSeabedCommand)
|
|
824
809
|
: undefined,
|
|
825
|
-
goToHomeCommand: isSet(object.goToHomeCommand) ?
|
|
826
|
-
surveyCommand: isSet(object.surveyCommand) ?
|
|
810
|
+
goToHomeCommand: isSet(object.goToHomeCommand) ? GoToHomeCommand.fromJSON(object.goToHomeCommand) : undefined,
|
|
811
|
+
surveyCommand: isSet(object.surveyCommand) ? SurveyCommand.fromJSON(object.surveyCommand) : undefined,
|
|
827
812
|
};
|
|
828
813
|
},
|
|
829
814
|
toJSON(message) {
|
|
@@ -838,42 +823,42 @@ exports.Instruction = {
|
|
|
838
823
|
obj.autoContinue = message.autoContinue;
|
|
839
824
|
}
|
|
840
825
|
if (message.waypointCommand !== undefined) {
|
|
841
|
-
obj.waypointCommand =
|
|
826
|
+
obj.waypointCommand = WaypointCommand.toJSON(message.waypointCommand);
|
|
842
827
|
}
|
|
843
828
|
if (message.depthSetPointCommand !== undefined) {
|
|
844
|
-
obj.depthSetPointCommand =
|
|
829
|
+
obj.depthSetPointCommand = DepthSetPointCommand.toJSON(message.depthSetPointCommand);
|
|
845
830
|
}
|
|
846
831
|
if (message.cameraCommand !== undefined) {
|
|
847
|
-
obj.cameraCommand =
|
|
832
|
+
obj.cameraCommand = CameraCommand.toJSON(message.cameraCommand);
|
|
848
833
|
}
|
|
849
834
|
if (message.controlModeCommand !== undefined) {
|
|
850
|
-
obj.controlModeCommand =
|
|
835
|
+
obj.controlModeCommand = ControlModeCommand.toJSON(message.controlModeCommand);
|
|
851
836
|
}
|
|
852
837
|
if (message.tiltMainCameraCommand !== undefined) {
|
|
853
|
-
obj.tiltMainCameraCommand =
|
|
838
|
+
obj.tiltMainCameraCommand = TiltMainCameraCommand.toJSON(message.tiltMainCameraCommand);
|
|
854
839
|
}
|
|
855
840
|
if (message.tiltMultibeamCommand !== undefined) {
|
|
856
|
-
obj.tiltMultibeamCommand =
|
|
841
|
+
obj.tiltMultibeamCommand = TiltMultibeamCommand.toJSON(message.tiltMultibeamCommand);
|
|
857
842
|
}
|
|
858
843
|
if (message.waitForCommand !== undefined) {
|
|
859
|
-
obj.waitForCommand =
|
|
844
|
+
obj.waitForCommand = WaitForCommand.toJSON(message.waitForCommand);
|
|
860
845
|
}
|
|
861
846
|
if (message.goToSurfaceCommand !== undefined) {
|
|
862
|
-
obj.goToSurfaceCommand =
|
|
847
|
+
obj.goToSurfaceCommand = GoToSurfaceCommand.toJSON(message.goToSurfaceCommand);
|
|
863
848
|
}
|
|
864
849
|
if (message.goToSeabedCommand !== undefined) {
|
|
865
|
-
obj.goToSeabedCommand =
|
|
850
|
+
obj.goToSeabedCommand = GoToSeabedCommand.toJSON(message.goToSeabedCommand);
|
|
866
851
|
}
|
|
867
852
|
if (message.goToHomeCommand !== undefined) {
|
|
868
|
-
obj.goToHomeCommand =
|
|
853
|
+
obj.goToHomeCommand = GoToHomeCommand.toJSON(message.goToHomeCommand);
|
|
869
854
|
}
|
|
870
855
|
if (message.surveyCommand !== undefined) {
|
|
871
|
-
obj.surveyCommand =
|
|
856
|
+
obj.surveyCommand = SurveyCommand.toJSON(message.surveyCommand);
|
|
872
857
|
}
|
|
873
858
|
return obj;
|
|
874
859
|
},
|
|
875
860
|
create(base) {
|
|
876
|
-
return
|
|
861
|
+
return Instruction.fromPartial(base ?? {});
|
|
877
862
|
},
|
|
878
863
|
fromPartial(object) {
|
|
879
864
|
const message = createBaseInstruction();
|
|
@@ -881,38 +866,38 @@ exports.Instruction = {
|
|
|
881
866
|
message.groupId = object.groupId ?? 0;
|
|
882
867
|
message.autoContinue = object.autoContinue ?? false;
|
|
883
868
|
message.waypointCommand = (object.waypointCommand !== undefined && object.waypointCommand !== null)
|
|
884
|
-
?
|
|
869
|
+
? WaypointCommand.fromPartial(object.waypointCommand)
|
|
885
870
|
: undefined;
|
|
886
871
|
message.depthSetPointCommand = (object.depthSetPointCommand !== undefined && object.depthSetPointCommand !== null)
|
|
887
|
-
?
|
|
872
|
+
? DepthSetPointCommand.fromPartial(object.depthSetPointCommand)
|
|
888
873
|
: undefined;
|
|
889
874
|
message.cameraCommand = (object.cameraCommand !== undefined && object.cameraCommand !== null)
|
|
890
|
-
?
|
|
875
|
+
? CameraCommand.fromPartial(object.cameraCommand)
|
|
891
876
|
: undefined;
|
|
892
877
|
message.controlModeCommand = (object.controlModeCommand !== undefined && object.controlModeCommand !== null)
|
|
893
|
-
?
|
|
878
|
+
? ControlModeCommand.fromPartial(object.controlModeCommand)
|
|
894
879
|
: undefined;
|
|
895
880
|
message.tiltMainCameraCommand =
|
|
896
881
|
(object.tiltMainCameraCommand !== undefined && object.tiltMainCameraCommand !== null)
|
|
897
|
-
?
|
|
882
|
+
? TiltMainCameraCommand.fromPartial(object.tiltMainCameraCommand)
|
|
898
883
|
: undefined;
|
|
899
884
|
message.tiltMultibeamCommand = (object.tiltMultibeamCommand !== undefined && object.tiltMultibeamCommand !== null)
|
|
900
|
-
?
|
|
885
|
+
? TiltMultibeamCommand.fromPartial(object.tiltMultibeamCommand)
|
|
901
886
|
: undefined;
|
|
902
887
|
message.waitForCommand = (object.waitForCommand !== undefined && object.waitForCommand !== null)
|
|
903
|
-
?
|
|
888
|
+
? WaitForCommand.fromPartial(object.waitForCommand)
|
|
904
889
|
: undefined;
|
|
905
890
|
message.goToSurfaceCommand = (object.goToSurfaceCommand !== undefined && object.goToSurfaceCommand !== null)
|
|
906
|
-
?
|
|
891
|
+
? GoToSurfaceCommand.fromPartial(object.goToSurfaceCommand)
|
|
907
892
|
: undefined;
|
|
908
893
|
message.goToSeabedCommand = (object.goToSeabedCommand !== undefined && object.goToSeabedCommand !== null)
|
|
909
|
-
?
|
|
894
|
+
? GoToSeabedCommand.fromPartial(object.goToSeabedCommand)
|
|
910
895
|
: undefined;
|
|
911
896
|
message.goToHomeCommand = (object.goToHomeCommand !== undefined && object.goToHomeCommand !== null)
|
|
912
|
-
?
|
|
897
|
+
? GoToHomeCommand.fromPartial(object.goToHomeCommand)
|
|
913
898
|
: undefined;
|
|
914
899
|
message.surveyCommand = (object.surveyCommand !== undefined && object.surveyCommand !== null)
|
|
915
|
-
?
|
|
900
|
+
? SurveyCommand.fromPartial(object.surveyCommand)
|
|
916
901
|
: undefined;
|
|
917
902
|
return message;
|
|
918
903
|
},
|
|
@@ -920,8 +905,8 @@ exports.Instruction = {
|
|
|
920
905
|
function createBaseDepthSetPoint() {
|
|
921
906
|
return { depth: 0, speedToDepth: 0, depthZeroReference: 0 };
|
|
922
907
|
}
|
|
923
|
-
|
|
924
|
-
encode(message, writer = new
|
|
908
|
+
export const DepthSetPoint = {
|
|
909
|
+
encode(message, writer = new BinaryWriter()) {
|
|
925
910
|
if (message.depth !== 0) {
|
|
926
911
|
writer.uint32(13).float(message.depth);
|
|
927
912
|
}
|
|
@@ -934,7 +919,7 @@ exports.DepthSetPoint = {
|
|
|
934
919
|
return writer;
|
|
935
920
|
},
|
|
936
921
|
decode(input, length) {
|
|
937
|
-
const reader = input instanceof
|
|
922
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
938
923
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
939
924
|
const message = createBaseDepthSetPoint();
|
|
940
925
|
while (reader.pos < end) {
|
|
@@ -990,7 +975,7 @@ exports.DepthSetPoint = {
|
|
|
990
975
|
return obj;
|
|
991
976
|
},
|
|
992
977
|
create(base) {
|
|
993
|
-
return
|
|
978
|
+
return DepthSetPoint.fromPartial(base ?? {});
|
|
994
979
|
},
|
|
995
980
|
fromPartial(object) {
|
|
996
981
|
const message = createBaseDepthSetPoint();
|
|
@@ -1010,8 +995,8 @@ function createBaseWaypoint() {
|
|
|
1010
995
|
depthSetPoint: undefined,
|
|
1011
996
|
};
|
|
1012
997
|
}
|
|
1013
|
-
|
|
1014
|
-
encode(message, writer = new
|
|
998
|
+
export const Waypoint = {
|
|
999
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1015
1000
|
if (message.id !== 0) {
|
|
1016
1001
|
writer.uint32(8).uint32(message.id);
|
|
1017
1002
|
}
|
|
@@ -1019,7 +1004,7 @@ exports.Waypoint = {
|
|
|
1019
1004
|
writer.uint32(18).string(message.name);
|
|
1020
1005
|
}
|
|
1021
1006
|
if (message.globalPosition !== undefined) {
|
|
1022
|
-
|
|
1007
|
+
LatLongPosition.encode(message.globalPosition, writer.uint32(26).fork()).join();
|
|
1023
1008
|
}
|
|
1024
1009
|
if (message.circleOfAcceptance !== 0) {
|
|
1025
1010
|
writer.uint32(37).float(message.circleOfAcceptance);
|
|
@@ -1028,12 +1013,12 @@ exports.Waypoint = {
|
|
|
1028
1013
|
writer.uint32(45).float(message.speedToTarget);
|
|
1029
1014
|
}
|
|
1030
1015
|
if (message.depthSetPoint !== undefined) {
|
|
1031
|
-
|
|
1016
|
+
DepthSetPoint.encode(message.depthSetPoint, writer.uint32(50).fork()).join();
|
|
1032
1017
|
}
|
|
1033
1018
|
return writer;
|
|
1034
1019
|
},
|
|
1035
1020
|
decode(input, length) {
|
|
1036
|
-
const reader = input instanceof
|
|
1021
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1037
1022
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1038
1023
|
const message = createBaseWaypoint();
|
|
1039
1024
|
while (reader.pos < end) {
|
|
@@ -1057,7 +1042,7 @@ exports.Waypoint = {
|
|
|
1057
1042
|
if (tag !== 26) {
|
|
1058
1043
|
break;
|
|
1059
1044
|
}
|
|
1060
|
-
message.globalPosition =
|
|
1045
|
+
message.globalPosition = LatLongPosition.decode(reader, reader.uint32());
|
|
1061
1046
|
continue;
|
|
1062
1047
|
}
|
|
1063
1048
|
case 4: {
|
|
@@ -1078,7 +1063,7 @@ exports.Waypoint = {
|
|
|
1078
1063
|
if (tag !== 50) {
|
|
1079
1064
|
break;
|
|
1080
1065
|
}
|
|
1081
|
-
message.depthSetPoint =
|
|
1066
|
+
message.depthSetPoint = DepthSetPoint.decode(reader, reader.uint32());
|
|
1082
1067
|
continue;
|
|
1083
1068
|
}
|
|
1084
1069
|
}
|
|
@@ -1093,10 +1078,10 @@ exports.Waypoint = {
|
|
|
1093
1078
|
return {
|
|
1094
1079
|
id: isSet(object.id) ? gt.Number(object.id) : 0,
|
|
1095
1080
|
name: isSet(object.name) ? gt.String(object.name) : "",
|
|
1096
|
-
globalPosition: isSet(object.globalPosition) ?
|
|
1081
|
+
globalPosition: isSet(object.globalPosition) ? LatLongPosition.fromJSON(object.globalPosition) : undefined,
|
|
1097
1082
|
circleOfAcceptance: isSet(object.circleOfAcceptance) ? gt.Number(object.circleOfAcceptance) : 0,
|
|
1098
1083
|
speedToTarget: isSet(object.speedToTarget) ? gt.Number(object.speedToTarget) : 0,
|
|
1099
|
-
depthSetPoint: isSet(object.depthSetPoint) ?
|
|
1084
|
+
depthSetPoint: isSet(object.depthSetPoint) ? DepthSetPoint.fromJSON(object.depthSetPoint) : undefined,
|
|
1100
1085
|
};
|
|
1101
1086
|
},
|
|
1102
1087
|
toJSON(message) {
|
|
@@ -1108,7 +1093,7 @@ exports.Waypoint = {
|
|
|
1108
1093
|
obj.name = message.name;
|
|
1109
1094
|
}
|
|
1110
1095
|
if (message.globalPosition !== undefined) {
|
|
1111
|
-
obj.globalPosition =
|
|
1096
|
+
obj.globalPosition = LatLongPosition.toJSON(message.globalPosition);
|
|
1112
1097
|
}
|
|
1113
1098
|
if (message.circleOfAcceptance !== 0) {
|
|
1114
1099
|
obj.circleOfAcceptance = message.circleOfAcceptance;
|
|
@@ -1117,24 +1102,24 @@ exports.Waypoint = {
|
|
|
1117
1102
|
obj.speedToTarget = message.speedToTarget;
|
|
1118
1103
|
}
|
|
1119
1104
|
if (message.depthSetPoint !== undefined) {
|
|
1120
|
-
obj.depthSetPoint =
|
|
1105
|
+
obj.depthSetPoint = DepthSetPoint.toJSON(message.depthSetPoint);
|
|
1121
1106
|
}
|
|
1122
1107
|
return obj;
|
|
1123
1108
|
},
|
|
1124
1109
|
create(base) {
|
|
1125
|
-
return
|
|
1110
|
+
return Waypoint.fromPartial(base ?? {});
|
|
1126
1111
|
},
|
|
1127
1112
|
fromPartial(object) {
|
|
1128
1113
|
const message = createBaseWaypoint();
|
|
1129
1114
|
message.id = object.id ?? 0;
|
|
1130
1115
|
message.name = object.name ?? "";
|
|
1131
1116
|
message.globalPosition = (object.globalPosition !== undefined && object.globalPosition !== null)
|
|
1132
|
-
?
|
|
1117
|
+
? LatLongPosition.fromPartial(object.globalPosition)
|
|
1133
1118
|
: undefined;
|
|
1134
1119
|
message.circleOfAcceptance = object.circleOfAcceptance ?? 0;
|
|
1135
1120
|
message.speedToTarget = object.speedToTarget ?? 0;
|
|
1136
1121
|
message.depthSetPoint = (object.depthSetPoint !== undefined && object.depthSetPoint !== null)
|
|
1137
|
-
?
|
|
1122
|
+
? DepthSetPoint.fromPartial(object.depthSetPoint)
|
|
1138
1123
|
: undefined;
|
|
1139
1124
|
return message;
|
|
1140
1125
|
},
|
|
@@ -1142,8 +1127,8 @@ exports.Waypoint = {
|
|
|
1142
1127
|
function createBaseControlModeCommand() {
|
|
1143
1128
|
return { controlModeVertical: 0, controlModeHorizontal: 0 };
|
|
1144
1129
|
}
|
|
1145
|
-
|
|
1146
|
-
encode(message, writer = new
|
|
1130
|
+
export const ControlModeCommand = {
|
|
1131
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1147
1132
|
if (message.controlModeVertical !== 0) {
|
|
1148
1133
|
writer.uint32(40).int32(message.controlModeVertical);
|
|
1149
1134
|
}
|
|
@@ -1153,7 +1138,7 @@ exports.ControlModeCommand = {
|
|
|
1153
1138
|
return writer;
|
|
1154
1139
|
},
|
|
1155
1140
|
decode(input, length) {
|
|
1156
|
-
const reader = input instanceof
|
|
1141
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1157
1142
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1158
1143
|
const message = createBaseControlModeCommand();
|
|
1159
1144
|
while (reader.pos < end) {
|
|
@@ -1202,7 +1187,7 @@ exports.ControlModeCommand = {
|
|
|
1202
1187
|
return obj;
|
|
1203
1188
|
},
|
|
1204
1189
|
create(base) {
|
|
1205
|
-
return
|
|
1190
|
+
return ControlModeCommand.fromPartial(base ?? {});
|
|
1206
1191
|
},
|
|
1207
1192
|
fromPartial(object) {
|
|
1208
1193
|
const message = createBaseControlModeCommand();
|
|
@@ -1214,15 +1199,15 @@ exports.ControlModeCommand = {
|
|
|
1214
1199
|
function createBaseWaypointCommand() {
|
|
1215
1200
|
return { waypoint: undefined };
|
|
1216
1201
|
}
|
|
1217
|
-
|
|
1218
|
-
encode(message, writer = new
|
|
1202
|
+
export const WaypointCommand = {
|
|
1203
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1219
1204
|
if (message.waypoint !== undefined) {
|
|
1220
|
-
|
|
1205
|
+
Waypoint.encode(message.waypoint, writer.uint32(10).fork()).join();
|
|
1221
1206
|
}
|
|
1222
1207
|
return writer;
|
|
1223
1208
|
},
|
|
1224
1209
|
decode(input, length) {
|
|
1225
|
-
const reader = input instanceof
|
|
1210
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1226
1211
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1227
1212
|
const message = createBaseWaypointCommand();
|
|
1228
1213
|
while (reader.pos < end) {
|
|
@@ -1232,7 +1217,7 @@ exports.WaypointCommand = {
|
|
|
1232
1217
|
if (tag !== 10) {
|
|
1233
1218
|
break;
|
|
1234
1219
|
}
|
|
1235
|
-
message.waypoint =
|
|
1220
|
+
message.waypoint = Waypoint.decode(reader, reader.uint32());
|
|
1236
1221
|
continue;
|
|
1237
1222
|
}
|
|
1238
1223
|
}
|
|
@@ -1244,22 +1229,22 @@ exports.WaypointCommand = {
|
|
|
1244
1229
|
return message;
|
|
1245
1230
|
},
|
|
1246
1231
|
fromJSON(object) {
|
|
1247
|
-
return { waypoint: isSet(object.waypoint) ?
|
|
1232
|
+
return { waypoint: isSet(object.waypoint) ? Waypoint.fromJSON(object.waypoint) : undefined };
|
|
1248
1233
|
},
|
|
1249
1234
|
toJSON(message) {
|
|
1250
1235
|
const obj = {};
|
|
1251
1236
|
if (message.waypoint !== undefined) {
|
|
1252
|
-
obj.waypoint =
|
|
1237
|
+
obj.waypoint = Waypoint.toJSON(message.waypoint);
|
|
1253
1238
|
}
|
|
1254
1239
|
return obj;
|
|
1255
1240
|
},
|
|
1256
1241
|
create(base) {
|
|
1257
|
-
return
|
|
1242
|
+
return WaypointCommand.fromPartial(base ?? {});
|
|
1258
1243
|
},
|
|
1259
1244
|
fromPartial(object) {
|
|
1260
1245
|
const message = createBaseWaypointCommand();
|
|
1261
1246
|
message.waypoint = (object.waypoint !== undefined && object.waypoint !== null)
|
|
1262
|
-
?
|
|
1247
|
+
? Waypoint.fromPartial(object.waypoint)
|
|
1263
1248
|
: undefined;
|
|
1264
1249
|
return message;
|
|
1265
1250
|
},
|
|
@@ -1267,15 +1252,15 @@ exports.WaypointCommand = {
|
|
|
1267
1252
|
function createBaseDepthSetPointCommand() {
|
|
1268
1253
|
return { depthSetPoint: undefined };
|
|
1269
1254
|
}
|
|
1270
|
-
|
|
1271
|
-
encode(message, writer = new
|
|
1255
|
+
export const DepthSetPointCommand = {
|
|
1256
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1272
1257
|
if (message.depthSetPoint !== undefined) {
|
|
1273
|
-
|
|
1258
|
+
DepthSetPoint.encode(message.depthSetPoint, writer.uint32(10).fork()).join();
|
|
1274
1259
|
}
|
|
1275
1260
|
return writer;
|
|
1276
1261
|
},
|
|
1277
1262
|
decode(input, length) {
|
|
1278
|
-
const reader = input instanceof
|
|
1263
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1279
1264
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1280
1265
|
const message = createBaseDepthSetPointCommand();
|
|
1281
1266
|
while (reader.pos < end) {
|
|
@@ -1285,7 +1270,7 @@ exports.DepthSetPointCommand = {
|
|
|
1285
1270
|
if (tag !== 10) {
|
|
1286
1271
|
break;
|
|
1287
1272
|
}
|
|
1288
|
-
message.depthSetPoint =
|
|
1273
|
+
message.depthSetPoint = DepthSetPoint.decode(reader, reader.uint32());
|
|
1289
1274
|
continue;
|
|
1290
1275
|
}
|
|
1291
1276
|
}
|
|
@@ -1297,22 +1282,22 @@ exports.DepthSetPointCommand = {
|
|
|
1297
1282
|
return message;
|
|
1298
1283
|
},
|
|
1299
1284
|
fromJSON(object) {
|
|
1300
|
-
return { depthSetPoint: isSet(object.depthSetPoint) ?
|
|
1285
|
+
return { depthSetPoint: isSet(object.depthSetPoint) ? DepthSetPoint.fromJSON(object.depthSetPoint) : undefined };
|
|
1301
1286
|
},
|
|
1302
1287
|
toJSON(message) {
|
|
1303
1288
|
const obj = {};
|
|
1304
1289
|
if (message.depthSetPoint !== undefined) {
|
|
1305
|
-
obj.depthSetPoint =
|
|
1290
|
+
obj.depthSetPoint = DepthSetPoint.toJSON(message.depthSetPoint);
|
|
1306
1291
|
}
|
|
1307
1292
|
return obj;
|
|
1308
1293
|
},
|
|
1309
1294
|
create(base) {
|
|
1310
|
-
return
|
|
1295
|
+
return DepthSetPointCommand.fromPartial(base ?? {});
|
|
1311
1296
|
},
|
|
1312
1297
|
fromPartial(object) {
|
|
1313
1298
|
const message = createBaseDepthSetPointCommand();
|
|
1314
1299
|
message.depthSetPoint = (object.depthSetPoint !== undefined && object.depthSetPoint !== null)
|
|
1315
|
-
?
|
|
1300
|
+
? DepthSetPoint.fromPartial(object.depthSetPoint)
|
|
1316
1301
|
: undefined;
|
|
1317
1302
|
return message;
|
|
1318
1303
|
},
|
|
@@ -1320,15 +1305,15 @@ exports.DepthSetPointCommand = {
|
|
|
1320
1305
|
function createBaseTiltMainCameraCommand() {
|
|
1321
1306
|
return { tiltAngle: undefined };
|
|
1322
1307
|
}
|
|
1323
|
-
|
|
1324
|
-
encode(message, writer = new
|
|
1308
|
+
export const TiltMainCameraCommand = {
|
|
1309
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1325
1310
|
if (message.tiltAngle !== undefined) {
|
|
1326
|
-
|
|
1311
|
+
TiltAngle.encode(message.tiltAngle, writer.uint32(10).fork()).join();
|
|
1327
1312
|
}
|
|
1328
1313
|
return writer;
|
|
1329
1314
|
},
|
|
1330
1315
|
decode(input, length) {
|
|
1331
|
-
const reader = input instanceof
|
|
1316
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1332
1317
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1333
1318
|
const message = createBaseTiltMainCameraCommand();
|
|
1334
1319
|
while (reader.pos < end) {
|
|
@@ -1338,7 +1323,7 @@ exports.TiltMainCameraCommand = {
|
|
|
1338
1323
|
if (tag !== 10) {
|
|
1339
1324
|
break;
|
|
1340
1325
|
}
|
|
1341
|
-
message.tiltAngle =
|
|
1326
|
+
message.tiltAngle = TiltAngle.decode(reader, reader.uint32());
|
|
1342
1327
|
continue;
|
|
1343
1328
|
}
|
|
1344
1329
|
}
|
|
@@ -1350,22 +1335,22 @@ exports.TiltMainCameraCommand = {
|
|
|
1350
1335
|
return message;
|
|
1351
1336
|
},
|
|
1352
1337
|
fromJSON(object) {
|
|
1353
|
-
return { tiltAngle: isSet(object.tiltAngle) ?
|
|
1338
|
+
return { tiltAngle: isSet(object.tiltAngle) ? TiltAngle.fromJSON(object.tiltAngle) : undefined };
|
|
1354
1339
|
},
|
|
1355
1340
|
toJSON(message) {
|
|
1356
1341
|
const obj = {};
|
|
1357
1342
|
if (message.tiltAngle !== undefined) {
|
|
1358
|
-
obj.tiltAngle =
|
|
1343
|
+
obj.tiltAngle = TiltAngle.toJSON(message.tiltAngle);
|
|
1359
1344
|
}
|
|
1360
1345
|
return obj;
|
|
1361
1346
|
},
|
|
1362
1347
|
create(base) {
|
|
1363
|
-
return
|
|
1348
|
+
return TiltMainCameraCommand.fromPartial(base ?? {});
|
|
1364
1349
|
},
|
|
1365
1350
|
fromPartial(object) {
|
|
1366
1351
|
const message = createBaseTiltMainCameraCommand();
|
|
1367
1352
|
message.tiltAngle = (object.tiltAngle !== undefined && object.tiltAngle !== null)
|
|
1368
|
-
?
|
|
1353
|
+
? TiltAngle.fromPartial(object.tiltAngle)
|
|
1369
1354
|
: undefined;
|
|
1370
1355
|
return message;
|
|
1371
1356
|
},
|
|
@@ -1373,15 +1358,15 @@ exports.TiltMainCameraCommand = {
|
|
|
1373
1358
|
function createBaseTiltMultibeamCommand() {
|
|
1374
1359
|
return { multibeamServo: undefined };
|
|
1375
1360
|
}
|
|
1376
|
-
|
|
1377
|
-
encode(message, writer = new
|
|
1361
|
+
export const TiltMultibeamCommand = {
|
|
1362
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1378
1363
|
if (message.multibeamServo !== undefined) {
|
|
1379
|
-
|
|
1364
|
+
MultibeamServo.encode(message.multibeamServo, writer.uint32(10).fork()).join();
|
|
1380
1365
|
}
|
|
1381
1366
|
return writer;
|
|
1382
1367
|
},
|
|
1383
1368
|
decode(input, length) {
|
|
1384
|
-
const reader = input instanceof
|
|
1369
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1385
1370
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1386
1371
|
const message = createBaseTiltMultibeamCommand();
|
|
1387
1372
|
while (reader.pos < end) {
|
|
@@ -1391,7 +1376,7 @@ exports.TiltMultibeamCommand = {
|
|
|
1391
1376
|
if (tag !== 10) {
|
|
1392
1377
|
break;
|
|
1393
1378
|
}
|
|
1394
|
-
message.multibeamServo =
|
|
1379
|
+
message.multibeamServo = MultibeamServo.decode(reader, reader.uint32());
|
|
1395
1380
|
continue;
|
|
1396
1381
|
}
|
|
1397
1382
|
}
|
|
@@ -1404,23 +1389,23 @@ exports.TiltMultibeamCommand = {
|
|
|
1404
1389
|
},
|
|
1405
1390
|
fromJSON(object) {
|
|
1406
1391
|
return {
|
|
1407
|
-
multibeamServo: isSet(object.multibeamServo) ?
|
|
1392
|
+
multibeamServo: isSet(object.multibeamServo) ? MultibeamServo.fromJSON(object.multibeamServo) : undefined,
|
|
1408
1393
|
};
|
|
1409
1394
|
},
|
|
1410
1395
|
toJSON(message) {
|
|
1411
1396
|
const obj = {};
|
|
1412
1397
|
if (message.multibeamServo !== undefined) {
|
|
1413
|
-
obj.multibeamServo =
|
|
1398
|
+
obj.multibeamServo = MultibeamServo.toJSON(message.multibeamServo);
|
|
1414
1399
|
}
|
|
1415
1400
|
return obj;
|
|
1416
1401
|
},
|
|
1417
1402
|
create(base) {
|
|
1418
|
-
return
|
|
1403
|
+
return TiltMultibeamCommand.fromPartial(base ?? {});
|
|
1419
1404
|
},
|
|
1420
1405
|
fromPartial(object) {
|
|
1421
1406
|
const message = createBaseTiltMultibeamCommand();
|
|
1422
1407
|
message.multibeamServo = (object.multibeamServo !== undefined && object.multibeamServo !== null)
|
|
1423
|
-
?
|
|
1408
|
+
? MultibeamServo.fromPartial(object.multibeamServo)
|
|
1424
1409
|
: undefined;
|
|
1425
1410
|
return message;
|
|
1426
1411
|
},
|
|
@@ -1428,15 +1413,15 @@ exports.TiltMultibeamCommand = {
|
|
|
1428
1413
|
function createBaseWaitForCommand() {
|
|
1429
1414
|
return { waitForSeconds: 0 };
|
|
1430
1415
|
}
|
|
1431
|
-
|
|
1432
|
-
encode(message, writer = new
|
|
1416
|
+
export const WaitForCommand = {
|
|
1417
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1433
1418
|
if (message.waitForSeconds !== 0) {
|
|
1434
1419
|
writer.uint32(13).float(message.waitForSeconds);
|
|
1435
1420
|
}
|
|
1436
1421
|
return writer;
|
|
1437
1422
|
},
|
|
1438
1423
|
decode(input, length) {
|
|
1439
|
-
const reader = input instanceof
|
|
1424
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1440
1425
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1441
1426
|
const message = createBaseWaitForCommand();
|
|
1442
1427
|
while (reader.pos < end) {
|
|
@@ -1468,7 +1453,7 @@ exports.WaitForCommand = {
|
|
|
1468
1453
|
return obj;
|
|
1469
1454
|
},
|
|
1470
1455
|
create(base) {
|
|
1471
|
-
return
|
|
1456
|
+
return WaitForCommand.fromPartial(base ?? {});
|
|
1472
1457
|
},
|
|
1473
1458
|
fromPartial(object) {
|
|
1474
1459
|
const message = createBaseWaitForCommand();
|
|
@@ -1479,8 +1464,8 @@ exports.WaitForCommand = {
|
|
|
1479
1464
|
function createBaseCameraCommand() {
|
|
1480
1465
|
return { cameraAction: 0, actionParam: 0 };
|
|
1481
1466
|
}
|
|
1482
|
-
|
|
1483
|
-
encode(message, writer = new
|
|
1467
|
+
export const CameraCommand = {
|
|
1468
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1484
1469
|
if (message.cameraAction !== 0) {
|
|
1485
1470
|
writer.uint32(8).int32(message.cameraAction);
|
|
1486
1471
|
}
|
|
@@ -1490,7 +1475,7 @@ exports.CameraCommand = {
|
|
|
1490
1475
|
return writer;
|
|
1491
1476
|
},
|
|
1492
1477
|
decode(input, length) {
|
|
1493
|
-
const reader = input instanceof
|
|
1478
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1494
1479
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1495
1480
|
const message = createBaseCameraCommand();
|
|
1496
1481
|
while (reader.pos < end) {
|
|
@@ -1535,7 +1520,7 @@ exports.CameraCommand = {
|
|
|
1535
1520
|
return obj;
|
|
1536
1521
|
},
|
|
1537
1522
|
create(base) {
|
|
1538
|
-
return
|
|
1523
|
+
return CameraCommand.fromPartial(base ?? {});
|
|
1539
1524
|
},
|
|
1540
1525
|
fromPartial(object) {
|
|
1541
1526
|
const message = createBaseCameraCommand();
|
|
@@ -1547,15 +1532,15 @@ exports.CameraCommand = {
|
|
|
1547
1532
|
function createBaseGoToSurfaceCommand() {
|
|
1548
1533
|
return { desiredSpeed: 0 };
|
|
1549
1534
|
}
|
|
1550
|
-
|
|
1551
|
-
encode(message, writer = new
|
|
1535
|
+
export const GoToSurfaceCommand = {
|
|
1536
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1552
1537
|
if (message.desiredSpeed !== 0) {
|
|
1553
1538
|
writer.uint32(13).float(message.desiredSpeed);
|
|
1554
1539
|
}
|
|
1555
1540
|
return writer;
|
|
1556
1541
|
},
|
|
1557
1542
|
decode(input, length) {
|
|
1558
|
-
const reader = input instanceof
|
|
1543
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1559
1544
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1560
1545
|
const message = createBaseGoToSurfaceCommand();
|
|
1561
1546
|
while (reader.pos < end) {
|
|
@@ -1587,7 +1572,7 @@ exports.GoToSurfaceCommand = {
|
|
|
1587
1572
|
return obj;
|
|
1588
1573
|
},
|
|
1589
1574
|
create(base) {
|
|
1590
|
-
return
|
|
1575
|
+
return GoToSurfaceCommand.fromPartial(base ?? {});
|
|
1591
1576
|
},
|
|
1592
1577
|
fromPartial(object) {
|
|
1593
1578
|
const message = createBaseGoToSurfaceCommand();
|
|
@@ -1598,15 +1583,15 @@ exports.GoToSurfaceCommand = {
|
|
|
1598
1583
|
function createBaseGoToSeabedCommand() {
|
|
1599
1584
|
return { desiredSpeed: 0 };
|
|
1600
1585
|
}
|
|
1601
|
-
|
|
1602
|
-
encode(message, writer = new
|
|
1586
|
+
export const GoToSeabedCommand = {
|
|
1587
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1603
1588
|
if (message.desiredSpeed !== 0) {
|
|
1604
1589
|
writer.uint32(13).float(message.desiredSpeed);
|
|
1605
1590
|
}
|
|
1606
1591
|
return writer;
|
|
1607
1592
|
},
|
|
1608
1593
|
decode(input, length) {
|
|
1609
|
-
const reader = input instanceof
|
|
1594
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1610
1595
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1611
1596
|
const message = createBaseGoToSeabedCommand();
|
|
1612
1597
|
while (reader.pos < end) {
|
|
@@ -1638,7 +1623,7 @@ exports.GoToSeabedCommand = {
|
|
|
1638
1623
|
return obj;
|
|
1639
1624
|
},
|
|
1640
1625
|
create(base) {
|
|
1641
|
-
return
|
|
1626
|
+
return GoToSeabedCommand.fromPartial(base ?? {});
|
|
1642
1627
|
},
|
|
1643
1628
|
fromPartial(object) {
|
|
1644
1629
|
const message = createBaseGoToSeabedCommand();
|
|
@@ -1649,15 +1634,15 @@ exports.GoToSeabedCommand = {
|
|
|
1649
1634
|
function createBaseGoToHomeCommand() {
|
|
1650
1635
|
return { desiredSpeed: 0 };
|
|
1651
1636
|
}
|
|
1652
|
-
|
|
1653
|
-
encode(message, writer = new
|
|
1637
|
+
export const GoToHomeCommand = {
|
|
1638
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1654
1639
|
if (message.desiredSpeed !== 0) {
|
|
1655
1640
|
writer.uint32(13).float(message.desiredSpeed);
|
|
1656
1641
|
}
|
|
1657
1642
|
return writer;
|
|
1658
1643
|
},
|
|
1659
1644
|
decode(input, length) {
|
|
1660
|
-
const reader = input instanceof
|
|
1645
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1661
1646
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1662
1647
|
const message = createBaseGoToHomeCommand();
|
|
1663
1648
|
while (reader.pos < end) {
|
|
@@ -1689,7 +1674,7 @@ exports.GoToHomeCommand = {
|
|
|
1689
1674
|
return obj;
|
|
1690
1675
|
},
|
|
1691
1676
|
create(base) {
|
|
1692
|
-
return
|
|
1677
|
+
return GoToHomeCommand.fromPartial(base ?? {});
|
|
1693
1678
|
},
|
|
1694
1679
|
fromPartial(object) {
|
|
1695
1680
|
const message = createBaseGoToHomeCommand();
|
|
@@ -1712,10 +1697,10 @@ function createBaseSurveyCommand() {
|
|
|
1712
1697
|
overlapPercent: 0,
|
|
1713
1698
|
};
|
|
1714
1699
|
}
|
|
1715
|
-
|
|
1716
|
-
encode(message, writer = new
|
|
1700
|
+
export const SurveyCommand = {
|
|
1701
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1717
1702
|
for (const v of message.vertices) {
|
|
1718
|
-
|
|
1703
|
+
LatLongPosition.encode(v, writer.uint32(10).fork()).join();
|
|
1719
1704
|
}
|
|
1720
1705
|
if (message.surveyLineHeading !== 0) {
|
|
1721
1706
|
writer.uint32(21).float(message.surveyLineHeading);
|
|
@@ -1733,13 +1718,13 @@ exports.SurveyCommand = {
|
|
|
1733
1718
|
writer.uint32(53).float(message.circleOfAcceptance);
|
|
1734
1719
|
}
|
|
1735
1720
|
if (message.depthSetPoint !== undefined) {
|
|
1736
|
-
|
|
1721
|
+
DepthSetPoint.encode(message.depthSetPoint, writer.uint32(58).fork()).join();
|
|
1737
1722
|
}
|
|
1738
1723
|
if (message.reverse !== false) {
|
|
1739
1724
|
writer.uint32(64).bool(message.reverse);
|
|
1740
1725
|
}
|
|
1741
1726
|
for (const v of message.waypoints) {
|
|
1742
|
-
|
|
1727
|
+
Waypoint.encode(v, writer.uint32(74).fork()).join();
|
|
1743
1728
|
}
|
|
1744
1729
|
if (message.swathWidth !== 0) {
|
|
1745
1730
|
writer.uint32(85).float(message.swathWidth);
|
|
@@ -1750,7 +1735,7 @@ exports.SurveyCommand = {
|
|
|
1750
1735
|
return writer;
|
|
1751
1736
|
},
|
|
1752
1737
|
decode(input, length) {
|
|
1753
|
-
const reader = input instanceof
|
|
1738
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1754
1739
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1755
1740
|
const message = createBaseSurveyCommand();
|
|
1756
1741
|
while (reader.pos < end) {
|
|
@@ -1760,7 +1745,7 @@ exports.SurveyCommand = {
|
|
|
1760
1745
|
if (tag !== 10) {
|
|
1761
1746
|
break;
|
|
1762
1747
|
}
|
|
1763
|
-
message.vertices.push(
|
|
1748
|
+
message.vertices.push(LatLongPosition.decode(reader, reader.uint32()));
|
|
1764
1749
|
continue;
|
|
1765
1750
|
}
|
|
1766
1751
|
case 2: {
|
|
@@ -1802,7 +1787,7 @@ exports.SurveyCommand = {
|
|
|
1802
1787
|
if (tag !== 58) {
|
|
1803
1788
|
break;
|
|
1804
1789
|
}
|
|
1805
|
-
message.depthSetPoint =
|
|
1790
|
+
message.depthSetPoint = DepthSetPoint.decode(reader, reader.uint32());
|
|
1806
1791
|
continue;
|
|
1807
1792
|
}
|
|
1808
1793
|
case 8: {
|
|
@@ -1816,7 +1801,7 @@ exports.SurveyCommand = {
|
|
|
1816
1801
|
if (tag !== 74) {
|
|
1817
1802
|
break;
|
|
1818
1803
|
}
|
|
1819
|
-
message.waypoints.push(
|
|
1804
|
+
message.waypoints.push(Waypoint.decode(reader, reader.uint32()));
|
|
1820
1805
|
continue;
|
|
1821
1806
|
}
|
|
1822
1807
|
case 10: {
|
|
@@ -1843,15 +1828,15 @@ exports.SurveyCommand = {
|
|
|
1843
1828
|
},
|
|
1844
1829
|
fromJSON(object) {
|
|
1845
1830
|
return {
|
|
1846
|
-
vertices: gt.Array.isArray(object?.vertices) ? object.vertices.map((e) =>
|
|
1831
|
+
vertices: gt.Array.isArray(object?.vertices) ? object.vertices.map((e) => LatLongPosition.fromJSON(e)) : [],
|
|
1847
1832
|
surveyLineHeading: isSet(object.surveyLineHeading) ? gt.Number(object.surveyLineHeading) : 0,
|
|
1848
1833
|
laneSpacing: isSet(object.laneSpacing) ? gt.Number(object.laneSpacing) : 0,
|
|
1849
1834
|
turnaroundDistance: isSet(object.turnaroundDistance) ? gt.Number(object.turnaroundDistance) : 0,
|
|
1850
1835
|
cruiseSpeed: isSet(object.cruiseSpeed) ? gt.Number(object.cruiseSpeed) : 0,
|
|
1851
1836
|
circleOfAcceptance: isSet(object.circleOfAcceptance) ? gt.Number(object.circleOfAcceptance) : 0,
|
|
1852
|
-
depthSetPoint: isSet(object.depthSetPoint) ?
|
|
1837
|
+
depthSetPoint: isSet(object.depthSetPoint) ? DepthSetPoint.fromJSON(object.depthSetPoint) : undefined,
|
|
1853
1838
|
reverse: isSet(object.reverse) ? gt.Boolean(object.reverse) : false,
|
|
1854
|
-
waypoints: gt.Array.isArray(object?.waypoints) ? object.waypoints.map((e) =>
|
|
1839
|
+
waypoints: gt.Array.isArray(object?.waypoints) ? object.waypoints.map((e) => Waypoint.fromJSON(e)) : [],
|
|
1855
1840
|
swathWidth: isSet(object.swathWidth) ? gt.Number(object.swathWidth) : 0,
|
|
1856
1841
|
overlapPercent: isSet(object.overlapPercent) ? gt.Number(object.overlapPercent) : 0,
|
|
1857
1842
|
};
|
|
@@ -1859,7 +1844,7 @@ exports.SurveyCommand = {
|
|
|
1859
1844
|
toJSON(message) {
|
|
1860
1845
|
const obj = {};
|
|
1861
1846
|
if (message.vertices?.length) {
|
|
1862
|
-
obj.vertices = message.vertices.map((e) =>
|
|
1847
|
+
obj.vertices = message.vertices.map((e) => LatLongPosition.toJSON(e));
|
|
1863
1848
|
}
|
|
1864
1849
|
if (message.surveyLineHeading !== 0) {
|
|
1865
1850
|
obj.surveyLineHeading = message.surveyLineHeading;
|
|
@@ -1877,13 +1862,13 @@ exports.SurveyCommand = {
|
|
|
1877
1862
|
obj.circleOfAcceptance = message.circleOfAcceptance;
|
|
1878
1863
|
}
|
|
1879
1864
|
if (message.depthSetPoint !== undefined) {
|
|
1880
|
-
obj.depthSetPoint =
|
|
1865
|
+
obj.depthSetPoint = DepthSetPoint.toJSON(message.depthSetPoint);
|
|
1881
1866
|
}
|
|
1882
1867
|
if (message.reverse !== false) {
|
|
1883
1868
|
obj.reverse = message.reverse;
|
|
1884
1869
|
}
|
|
1885
1870
|
if (message.waypoints?.length) {
|
|
1886
|
-
obj.waypoints = message.waypoints.map((e) =>
|
|
1871
|
+
obj.waypoints = message.waypoints.map((e) => Waypoint.toJSON(e));
|
|
1887
1872
|
}
|
|
1888
1873
|
if (message.swathWidth !== 0) {
|
|
1889
1874
|
obj.swathWidth = message.swathWidth;
|
|
@@ -1894,21 +1879,21 @@ exports.SurveyCommand = {
|
|
|
1894
1879
|
return obj;
|
|
1895
1880
|
},
|
|
1896
1881
|
create(base) {
|
|
1897
|
-
return
|
|
1882
|
+
return SurveyCommand.fromPartial(base ?? {});
|
|
1898
1883
|
},
|
|
1899
1884
|
fromPartial(object) {
|
|
1900
1885
|
const message = createBaseSurveyCommand();
|
|
1901
|
-
message.vertices = object.vertices?.map((e) =>
|
|
1886
|
+
message.vertices = object.vertices?.map((e) => LatLongPosition.fromPartial(e)) || [];
|
|
1902
1887
|
message.surveyLineHeading = object.surveyLineHeading ?? 0;
|
|
1903
1888
|
message.laneSpacing = object.laneSpacing ?? 0;
|
|
1904
1889
|
message.turnaroundDistance = object.turnaroundDistance ?? 0;
|
|
1905
1890
|
message.cruiseSpeed = object.cruiseSpeed ?? 0;
|
|
1906
1891
|
message.circleOfAcceptance = object.circleOfAcceptance ?? 0;
|
|
1907
1892
|
message.depthSetPoint = (object.depthSetPoint !== undefined && object.depthSetPoint !== null)
|
|
1908
|
-
?
|
|
1893
|
+
? DepthSetPoint.fromPartial(object.depthSetPoint)
|
|
1909
1894
|
: undefined;
|
|
1910
1895
|
message.reverse = object.reverse ?? false;
|
|
1911
|
-
message.waypoints = object.waypoints?.map((e) =>
|
|
1896
|
+
message.waypoints = object.waypoints?.map((e) => Waypoint.fromPartial(e)) || [];
|
|
1912
1897
|
message.swathWidth = object.swathWidth ?? 0;
|
|
1913
1898
|
message.overlapPercent = object.overlapPercent ?? 0;
|
|
1914
1899
|
return message;
|
|
@@ -1927,8 +1912,8 @@ function createBasePathSegment() {
|
|
|
1927
1912
|
durationTime: 0,
|
|
1928
1913
|
};
|
|
1929
1914
|
}
|
|
1930
|
-
|
|
1931
|
-
encode(message, writer = new
|
|
1915
|
+
export const PathSegment = {
|
|
1916
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1932
1917
|
if (message.id !== 0) {
|
|
1933
1918
|
writer.uint32(8).uint32(message.id);
|
|
1934
1919
|
}
|
|
@@ -1959,7 +1944,7 @@ exports.PathSegment = {
|
|
|
1959
1944
|
return writer;
|
|
1960
1945
|
},
|
|
1961
1946
|
decode(input, length) {
|
|
1962
|
-
const reader = input instanceof
|
|
1947
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1963
1948
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1964
1949
|
const message = createBasePathSegment();
|
|
1965
1950
|
while (reader.pos < end) {
|
|
@@ -2081,7 +2066,7 @@ exports.PathSegment = {
|
|
|
2081
2066
|
return obj;
|
|
2082
2067
|
},
|
|
2083
2068
|
create(base) {
|
|
2084
|
-
return
|
|
2069
|
+
return PathSegment.fromPartial(base ?? {});
|
|
2085
2070
|
},
|
|
2086
2071
|
fromPartial(object) {
|
|
2087
2072
|
const message = createBasePathSegment();
|
|
@@ -2113,8 +2098,8 @@ function createBaseReferenceAutoPilot() {
|
|
|
2113
2098
|
timeToComplete: 0,
|
|
2114
2099
|
};
|
|
2115
2100
|
}
|
|
2116
|
-
|
|
2117
|
-
encode(message, writer = new
|
|
2101
|
+
export const ReferenceAutoPilot = {
|
|
2102
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2118
2103
|
if (message.instructionType !== 0) {
|
|
2119
2104
|
writer.uint32(8).int32(message.instructionType);
|
|
2120
2105
|
}
|
|
@@ -2154,7 +2139,7 @@ exports.ReferenceAutoPilot = {
|
|
|
2154
2139
|
return writer;
|
|
2155
2140
|
},
|
|
2156
2141
|
decode(input, length) {
|
|
2157
|
-
const reader = input instanceof
|
|
2142
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2158
2143
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2159
2144
|
const message = createBaseReferenceAutoPilot();
|
|
2160
2145
|
while (reader.pos < end) {
|
|
@@ -2311,7 +2296,7 @@ exports.ReferenceAutoPilot = {
|
|
|
2311
2296
|
return obj;
|
|
2312
2297
|
},
|
|
2313
2298
|
create(base) {
|
|
2314
|
-
return
|
|
2299
|
+
return ReferenceAutoPilot.fromPartial(base ?? {});
|
|
2315
2300
|
},
|
|
2316
2301
|
fromPartial(object) {
|
|
2317
2302
|
const message = createBaseReferenceAutoPilot();
|
|
@@ -2343,8 +2328,8 @@ function createBaseMissionStatus() {
|
|
|
2343
2328
|
id: 0,
|
|
2344
2329
|
};
|
|
2345
2330
|
}
|
|
2346
|
-
|
|
2347
|
-
encode(message, writer = new
|
|
2331
|
+
export const MissionStatus = {
|
|
2332
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2348
2333
|
if (message.state !== 0) {
|
|
2349
2334
|
writer.uint32(8).int32(message.state);
|
|
2350
2335
|
}
|
|
@@ -2379,7 +2364,7 @@ exports.MissionStatus = {
|
|
|
2379
2364
|
return writer;
|
|
2380
2365
|
},
|
|
2381
2366
|
decode(input, length) {
|
|
2382
|
-
const reader = input instanceof
|
|
2367
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2383
2368
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2384
2369
|
const message = createBaseMissionStatus();
|
|
2385
2370
|
while (reader.pos < end) {
|
|
@@ -2523,7 +2508,7 @@ exports.MissionStatus = {
|
|
|
2523
2508
|
return obj;
|
|
2524
2509
|
},
|
|
2525
2510
|
create(base) {
|
|
2526
|
-
return
|
|
2511
|
+
return MissionStatus.fromPartial(base ?? {});
|
|
2527
2512
|
},
|
|
2528
2513
|
fromPartial(object) {
|
|
2529
2514
|
const message = createBaseMissionStatus();
|