@blueyerobotics/protocol-definitions 3.2.0-0f5b72ba
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 +40 -0
- package/dist/aquatroll.d.ts +441 -0
- package/dist/aquatroll.js +3160 -0
- package/dist/control.d.ts +268 -0
- package/dist/control.js +2061 -0
- package/dist/google/protobuf/any.d.ts +138 -0
- package/dist/google/protobuf/any.js +121 -0
- package/dist/google/protobuf/duration.d.ts +98 -0
- package/dist/google/protobuf/duration.js +106 -0
- package/dist/google/protobuf/timestamp.d.ts +127 -0
- package/dist/google/protobuf/timestamp.js +106 -0
- package/dist/index.blueye.d.ts +1 -0
- package/dist/index.blueye.js +42 -0
- package/dist/index.blueye.protocol.d.ts +6 -0
- package/dist/index.blueye.protocol.js +27 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.google.d.ts +1 -0
- package/dist/index.google.js +42 -0
- package/dist/index.google.protobuf.d.ts +3 -0
- package/dist/index.google.protobuf.js +24 -0
- package/dist/index.js +43 -0
- package/dist/message_formats.d.ts +1852 -0
- package/dist/message_formats.js +12001 -0
- package/dist/mission_planning.d.ts +352 -0
- package/dist/mission_planning.js +2317 -0
- package/dist/req_rep.d.ts +268 -0
- package/dist/req_rep.js +1919 -0
- package/dist/telemetry.d.ts +359 -0
- package/dist/telemetry.js +2940 -0
- package/package.json +23 -0
package/dist/control.js
ADDED
|
@@ -0,0 +1,2061 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.7.5
|
|
5
|
+
// protoc v3.21.12
|
|
6
|
+
// source: control.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.EndDiveCtrl = exports.StartDiveCtrl = exports.DeactivateMultibeamCtrl = exports.ActivateMultibeamCtrl = exports.SetMultibeamConfigCtrl = exports.SetAquaTrollConnectionStatusCtrl = exports.SetAquaTrollParameterUnitCtrl = exports.RestartGuestPortsCtrl = exports.ActivateGuestPortsCtrl = exports.DeactivateGuestPortsCtrl = exports.MultibeamServoCtrl = exports.GenericServoCtrl = exports.GripperCtrl = exports.SystemTimeCtrl = exports.PingerConfigurationCtrl = exports.WaterDensityCtrl = exports.TiltStabilizationCtrl = exports.CalibrateDvlGyroCtrl = exports.ResetOdometerCtrl = exports.ResetPositionCtrl = exports.ClearMissionCtrl = exports.PauseMissionCtrl = exports.RunMissionCtrl = exports.AutoPilotHeaveCtrl = exports.AutoPilotSurgeYawCtrl = exports.WeatherVaningCtrl = exports.StationKeepingCtrl = exports.AutoAltitudeCtrl = exports.AutoDepthCtrl = exports.AutoHeadingCtrl = exports.FinishCalibrationCtrl = exports.CancelCalibrationCtrl = exports.StartCalibrationCtrl = exports.TakePictureCtrl = exports.RecordCtrl = exports.WatchdogCtrl = exports.PilotGPSPositionCtrl = exports.LaserCtrl = exports.GuestportLightsCtrl = exports.LightsCtrl = exports.TiltVelocityCtrl = exports.MotionInputCtrl = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
const aquatroll_1 = require("./aquatroll");
|
|
12
|
+
const message_formats_1 = require("./message_formats");
|
|
13
|
+
function createBaseMotionInputCtrl() {
|
|
14
|
+
return { motionInput: undefined };
|
|
15
|
+
}
|
|
16
|
+
exports.MotionInputCtrl = {
|
|
17
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
18
|
+
if (message.motionInput !== undefined) {
|
|
19
|
+
message_formats_1.MotionInput.encode(message.motionInput, writer.uint32(10).fork()).join();
|
|
20
|
+
}
|
|
21
|
+
return writer;
|
|
22
|
+
},
|
|
23
|
+
decode(input, length) {
|
|
24
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
25
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
26
|
+
const message = createBaseMotionInputCtrl();
|
|
27
|
+
while (reader.pos < end) {
|
|
28
|
+
const tag = reader.uint32();
|
|
29
|
+
switch (tag >>> 3) {
|
|
30
|
+
case 1: {
|
|
31
|
+
if (tag !== 10) {
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
message.motionInput = message_formats_1.MotionInput.decode(reader, reader.uint32());
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
reader.skip(tag & 7);
|
|
42
|
+
}
|
|
43
|
+
return message;
|
|
44
|
+
},
|
|
45
|
+
fromJSON(object) {
|
|
46
|
+
return { motionInput: isSet(object.motionInput) ? message_formats_1.MotionInput.fromJSON(object.motionInput) : undefined };
|
|
47
|
+
},
|
|
48
|
+
toJSON(message) {
|
|
49
|
+
const obj = {};
|
|
50
|
+
if (message.motionInput !== undefined) {
|
|
51
|
+
obj.motionInput = message_formats_1.MotionInput.toJSON(message.motionInput);
|
|
52
|
+
}
|
|
53
|
+
return obj;
|
|
54
|
+
},
|
|
55
|
+
create(base) {
|
|
56
|
+
return exports.MotionInputCtrl.fromPartial(base ?? {});
|
|
57
|
+
},
|
|
58
|
+
fromPartial(object) {
|
|
59
|
+
const message = createBaseMotionInputCtrl();
|
|
60
|
+
message.motionInput = (object.motionInput !== undefined && object.motionInput !== null)
|
|
61
|
+
? message_formats_1.MotionInput.fromPartial(object.motionInput)
|
|
62
|
+
: undefined;
|
|
63
|
+
return message;
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
function createBaseTiltVelocityCtrl() {
|
|
67
|
+
return { velocity: undefined };
|
|
68
|
+
}
|
|
69
|
+
exports.TiltVelocityCtrl = {
|
|
70
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
71
|
+
if (message.velocity !== undefined) {
|
|
72
|
+
message_formats_1.TiltVelocity.encode(message.velocity, writer.uint32(10).fork()).join();
|
|
73
|
+
}
|
|
74
|
+
return writer;
|
|
75
|
+
},
|
|
76
|
+
decode(input, length) {
|
|
77
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
78
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
79
|
+
const message = createBaseTiltVelocityCtrl();
|
|
80
|
+
while (reader.pos < end) {
|
|
81
|
+
const tag = reader.uint32();
|
|
82
|
+
switch (tag >>> 3) {
|
|
83
|
+
case 1: {
|
|
84
|
+
if (tag !== 10) {
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
message.velocity = message_formats_1.TiltVelocity.decode(reader, reader.uint32());
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
reader.skip(tag & 7);
|
|
95
|
+
}
|
|
96
|
+
return message;
|
|
97
|
+
},
|
|
98
|
+
fromJSON(object) {
|
|
99
|
+
return { velocity: isSet(object.velocity) ? message_formats_1.TiltVelocity.fromJSON(object.velocity) : undefined };
|
|
100
|
+
},
|
|
101
|
+
toJSON(message) {
|
|
102
|
+
const obj = {};
|
|
103
|
+
if (message.velocity !== undefined) {
|
|
104
|
+
obj.velocity = message_formats_1.TiltVelocity.toJSON(message.velocity);
|
|
105
|
+
}
|
|
106
|
+
return obj;
|
|
107
|
+
},
|
|
108
|
+
create(base) {
|
|
109
|
+
return exports.TiltVelocityCtrl.fromPartial(base ?? {});
|
|
110
|
+
},
|
|
111
|
+
fromPartial(object) {
|
|
112
|
+
const message = createBaseTiltVelocityCtrl();
|
|
113
|
+
message.velocity = (object.velocity !== undefined && object.velocity !== null)
|
|
114
|
+
? message_formats_1.TiltVelocity.fromPartial(object.velocity)
|
|
115
|
+
: undefined;
|
|
116
|
+
return message;
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
function createBaseLightsCtrl() {
|
|
120
|
+
return { lights: undefined };
|
|
121
|
+
}
|
|
122
|
+
exports.LightsCtrl = {
|
|
123
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
124
|
+
if (message.lights !== undefined) {
|
|
125
|
+
message_formats_1.Lights.encode(message.lights, writer.uint32(10).fork()).join();
|
|
126
|
+
}
|
|
127
|
+
return writer;
|
|
128
|
+
},
|
|
129
|
+
decode(input, length) {
|
|
130
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
131
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
132
|
+
const message = createBaseLightsCtrl();
|
|
133
|
+
while (reader.pos < end) {
|
|
134
|
+
const tag = reader.uint32();
|
|
135
|
+
switch (tag >>> 3) {
|
|
136
|
+
case 1: {
|
|
137
|
+
if (tag !== 10) {
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
message.lights = message_formats_1.Lights.decode(reader, reader.uint32());
|
|
141
|
+
continue;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
147
|
+
reader.skip(tag & 7);
|
|
148
|
+
}
|
|
149
|
+
return message;
|
|
150
|
+
},
|
|
151
|
+
fromJSON(object) {
|
|
152
|
+
return { lights: isSet(object.lights) ? message_formats_1.Lights.fromJSON(object.lights) : undefined };
|
|
153
|
+
},
|
|
154
|
+
toJSON(message) {
|
|
155
|
+
const obj = {};
|
|
156
|
+
if (message.lights !== undefined) {
|
|
157
|
+
obj.lights = message_formats_1.Lights.toJSON(message.lights);
|
|
158
|
+
}
|
|
159
|
+
return obj;
|
|
160
|
+
},
|
|
161
|
+
create(base) {
|
|
162
|
+
return exports.LightsCtrl.fromPartial(base ?? {});
|
|
163
|
+
},
|
|
164
|
+
fromPartial(object) {
|
|
165
|
+
const message = createBaseLightsCtrl();
|
|
166
|
+
message.lights = (object.lights !== undefined && object.lights !== null)
|
|
167
|
+
? message_formats_1.Lights.fromPartial(object.lights)
|
|
168
|
+
: undefined;
|
|
169
|
+
return message;
|
|
170
|
+
},
|
|
171
|
+
};
|
|
172
|
+
function createBaseGuestportLightsCtrl() {
|
|
173
|
+
return { lights: undefined };
|
|
174
|
+
}
|
|
175
|
+
exports.GuestportLightsCtrl = {
|
|
176
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
177
|
+
if (message.lights !== undefined) {
|
|
178
|
+
message_formats_1.Lights.encode(message.lights, writer.uint32(10).fork()).join();
|
|
179
|
+
}
|
|
180
|
+
return writer;
|
|
181
|
+
},
|
|
182
|
+
decode(input, length) {
|
|
183
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
184
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
185
|
+
const message = createBaseGuestportLightsCtrl();
|
|
186
|
+
while (reader.pos < end) {
|
|
187
|
+
const tag = reader.uint32();
|
|
188
|
+
switch (tag >>> 3) {
|
|
189
|
+
case 1: {
|
|
190
|
+
if (tag !== 10) {
|
|
191
|
+
break;
|
|
192
|
+
}
|
|
193
|
+
message.lights = message_formats_1.Lights.decode(reader, reader.uint32());
|
|
194
|
+
continue;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
198
|
+
break;
|
|
199
|
+
}
|
|
200
|
+
reader.skip(tag & 7);
|
|
201
|
+
}
|
|
202
|
+
return message;
|
|
203
|
+
},
|
|
204
|
+
fromJSON(object) {
|
|
205
|
+
return { lights: isSet(object.lights) ? message_formats_1.Lights.fromJSON(object.lights) : undefined };
|
|
206
|
+
},
|
|
207
|
+
toJSON(message) {
|
|
208
|
+
const obj = {};
|
|
209
|
+
if (message.lights !== undefined) {
|
|
210
|
+
obj.lights = message_formats_1.Lights.toJSON(message.lights);
|
|
211
|
+
}
|
|
212
|
+
return obj;
|
|
213
|
+
},
|
|
214
|
+
create(base) {
|
|
215
|
+
return exports.GuestportLightsCtrl.fromPartial(base ?? {});
|
|
216
|
+
},
|
|
217
|
+
fromPartial(object) {
|
|
218
|
+
const message = createBaseGuestportLightsCtrl();
|
|
219
|
+
message.lights = (object.lights !== undefined && object.lights !== null)
|
|
220
|
+
? message_formats_1.Lights.fromPartial(object.lights)
|
|
221
|
+
: undefined;
|
|
222
|
+
return message;
|
|
223
|
+
},
|
|
224
|
+
};
|
|
225
|
+
function createBaseLaserCtrl() {
|
|
226
|
+
return { laser: undefined };
|
|
227
|
+
}
|
|
228
|
+
exports.LaserCtrl = {
|
|
229
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
230
|
+
if (message.laser !== undefined) {
|
|
231
|
+
message_formats_1.Laser.encode(message.laser, writer.uint32(10).fork()).join();
|
|
232
|
+
}
|
|
233
|
+
return writer;
|
|
234
|
+
},
|
|
235
|
+
decode(input, length) {
|
|
236
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
237
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
238
|
+
const message = createBaseLaserCtrl();
|
|
239
|
+
while (reader.pos < end) {
|
|
240
|
+
const tag = reader.uint32();
|
|
241
|
+
switch (tag >>> 3) {
|
|
242
|
+
case 1: {
|
|
243
|
+
if (tag !== 10) {
|
|
244
|
+
break;
|
|
245
|
+
}
|
|
246
|
+
message.laser = message_formats_1.Laser.decode(reader, reader.uint32());
|
|
247
|
+
continue;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
251
|
+
break;
|
|
252
|
+
}
|
|
253
|
+
reader.skip(tag & 7);
|
|
254
|
+
}
|
|
255
|
+
return message;
|
|
256
|
+
},
|
|
257
|
+
fromJSON(object) {
|
|
258
|
+
return { laser: isSet(object.laser) ? message_formats_1.Laser.fromJSON(object.laser) : undefined };
|
|
259
|
+
},
|
|
260
|
+
toJSON(message) {
|
|
261
|
+
const obj = {};
|
|
262
|
+
if (message.laser !== undefined) {
|
|
263
|
+
obj.laser = message_formats_1.Laser.toJSON(message.laser);
|
|
264
|
+
}
|
|
265
|
+
return obj;
|
|
266
|
+
},
|
|
267
|
+
create(base) {
|
|
268
|
+
return exports.LaserCtrl.fromPartial(base ?? {});
|
|
269
|
+
},
|
|
270
|
+
fromPartial(object) {
|
|
271
|
+
const message = createBaseLaserCtrl();
|
|
272
|
+
message.laser = (object.laser !== undefined && object.laser !== null) ? message_formats_1.Laser.fromPartial(object.laser) : undefined;
|
|
273
|
+
return message;
|
|
274
|
+
},
|
|
275
|
+
};
|
|
276
|
+
function createBasePilotGPSPositionCtrl() {
|
|
277
|
+
return { position: undefined };
|
|
278
|
+
}
|
|
279
|
+
exports.PilotGPSPositionCtrl = {
|
|
280
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
281
|
+
if (message.position !== undefined) {
|
|
282
|
+
message_formats_1.LatLongPosition.encode(message.position, writer.uint32(10).fork()).join();
|
|
283
|
+
}
|
|
284
|
+
return writer;
|
|
285
|
+
},
|
|
286
|
+
decode(input, length) {
|
|
287
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
288
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
289
|
+
const message = createBasePilotGPSPositionCtrl();
|
|
290
|
+
while (reader.pos < end) {
|
|
291
|
+
const tag = reader.uint32();
|
|
292
|
+
switch (tag >>> 3) {
|
|
293
|
+
case 1: {
|
|
294
|
+
if (tag !== 10) {
|
|
295
|
+
break;
|
|
296
|
+
}
|
|
297
|
+
message.position = message_formats_1.LatLongPosition.decode(reader, reader.uint32());
|
|
298
|
+
continue;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
302
|
+
break;
|
|
303
|
+
}
|
|
304
|
+
reader.skip(tag & 7);
|
|
305
|
+
}
|
|
306
|
+
return message;
|
|
307
|
+
},
|
|
308
|
+
fromJSON(object) {
|
|
309
|
+
return { position: isSet(object.position) ? message_formats_1.LatLongPosition.fromJSON(object.position) : undefined };
|
|
310
|
+
},
|
|
311
|
+
toJSON(message) {
|
|
312
|
+
const obj = {};
|
|
313
|
+
if (message.position !== undefined) {
|
|
314
|
+
obj.position = message_formats_1.LatLongPosition.toJSON(message.position);
|
|
315
|
+
}
|
|
316
|
+
return obj;
|
|
317
|
+
},
|
|
318
|
+
create(base) {
|
|
319
|
+
return exports.PilotGPSPositionCtrl.fromPartial(base ?? {});
|
|
320
|
+
},
|
|
321
|
+
fromPartial(object) {
|
|
322
|
+
const message = createBasePilotGPSPositionCtrl();
|
|
323
|
+
message.position = (object.position !== undefined && object.position !== null)
|
|
324
|
+
? message_formats_1.LatLongPosition.fromPartial(object.position)
|
|
325
|
+
: undefined;
|
|
326
|
+
return message;
|
|
327
|
+
},
|
|
328
|
+
};
|
|
329
|
+
function createBaseWatchdogCtrl() {
|
|
330
|
+
return { connectionDuration: undefined, clientId: 0 };
|
|
331
|
+
}
|
|
332
|
+
exports.WatchdogCtrl = {
|
|
333
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
334
|
+
if (message.connectionDuration !== undefined) {
|
|
335
|
+
message_formats_1.ConnectionDuration.encode(message.connectionDuration, writer.uint32(10).fork()).join();
|
|
336
|
+
}
|
|
337
|
+
if (message.clientId !== 0) {
|
|
338
|
+
writer.uint32(16).uint32(message.clientId);
|
|
339
|
+
}
|
|
340
|
+
return writer;
|
|
341
|
+
},
|
|
342
|
+
decode(input, length) {
|
|
343
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
344
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
345
|
+
const message = createBaseWatchdogCtrl();
|
|
346
|
+
while (reader.pos < end) {
|
|
347
|
+
const tag = reader.uint32();
|
|
348
|
+
switch (tag >>> 3) {
|
|
349
|
+
case 1: {
|
|
350
|
+
if (tag !== 10) {
|
|
351
|
+
break;
|
|
352
|
+
}
|
|
353
|
+
message.connectionDuration = message_formats_1.ConnectionDuration.decode(reader, reader.uint32());
|
|
354
|
+
continue;
|
|
355
|
+
}
|
|
356
|
+
case 2: {
|
|
357
|
+
if (tag !== 16) {
|
|
358
|
+
break;
|
|
359
|
+
}
|
|
360
|
+
message.clientId = reader.uint32();
|
|
361
|
+
continue;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
365
|
+
break;
|
|
366
|
+
}
|
|
367
|
+
reader.skip(tag & 7);
|
|
368
|
+
}
|
|
369
|
+
return message;
|
|
370
|
+
},
|
|
371
|
+
fromJSON(object) {
|
|
372
|
+
return {
|
|
373
|
+
connectionDuration: isSet(object.connectionDuration)
|
|
374
|
+
? message_formats_1.ConnectionDuration.fromJSON(object.connectionDuration)
|
|
375
|
+
: undefined,
|
|
376
|
+
clientId: isSet(object.clientId) ? gt.Number(object.clientId) : 0,
|
|
377
|
+
};
|
|
378
|
+
},
|
|
379
|
+
toJSON(message) {
|
|
380
|
+
const obj = {};
|
|
381
|
+
if (message.connectionDuration !== undefined) {
|
|
382
|
+
obj.connectionDuration = message_formats_1.ConnectionDuration.toJSON(message.connectionDuration);
|
|
383
|
+
}
|
|
384
|
+
if (message.clientId !== 0) {
|
|
385
|
+
obj.clientId = Math.round(message.clientId);
|
|
386
|
+
}
|
|
387
|
+
return obj;
|
|
388
|
+
},
|
|
389
|
+
create(base) {
|
|
390
|
+
return exports.WatchdogCtrl.fromPartial(base ?? {});
|
|
391
|
+
},
|
|
392
|
+
fromPartial(object) {
|
|
393
|
+
const message = createBaseWatchdogCtrl();
|
|
394
|
+
message.connectionDuration = (object.connectionDuration !== undefined && object.connectionDuration !== null)
|
|
395
|
+
? message_formats_1.ConnectionDuration.fromPartial(object.connectionDuration)
|
|
396
|
+
: undefined;
|
|
397
|
+
message.clientId = object.clientId ?? 0;
|
|
398
|
+
return message;
|
|
399
|
+
},
|
|
400
|
+
};
|
|
401
|
+
function createBaseRecordCtrl() {
|
|
402
|
+
return { recordOn: undefined };
|
|
403
|
+
}
|
|
404
|
+
exports.RecordCtrl = {
|
|
405
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
406
|
+
if (message.recordOn !== undefined) {
|
|
407
|
+
message_formats_1.RecordOn.encode(message.recordOn, writer.uint32(10).fork()).join();
|
|
408
|
+
}
|
|
409
|
+
return writer;
|
|
410
|
+
},
|
|
411
|
+
decode(input, length) {
|
|
412
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
413
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
414
|
+
const message = createBaseRecordCtrl();
|
|
415
|
+
while (reader.pos < end) {
|
|
416
|
+
const tag = reader.uint32();
|
|
417
|
+
switch (tag >>> 3) {
|
|
418
|
+
case 1: {
|
|
419
|
+
if (tag !== 10) {
|
|
420
|
+
break;
|
|
421
|
+
}
|
|
422
|
+
message.recordOn = message_formats_1.RecordOn.decode(reader, reader.uint32());
|
|
423
|
+
continue;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
427
|
+
break;
|
|
428
|
+
}
|
|
429
|
+
reader.skip(tag & 7);
|
|
430
|
+
}
|
|
431
|
+
return message;
|
|
432
|
+
},
|
|
433
|
+
fromJSON(object) {
|
|
434
|
+
return { recordOn: isSet(object.recordOn) ? message_formats_1.RecordOn.fromJSON(object.recordOn) : undefined };
|
|
435
|
+
},
|
|
436
|
+
toJSON(message) {
|
|
437
|
+
const obj = {};
|
|
438
|
+
if (message.recordOn !== undefined) {
|
|
439
|
+
obj.recordOn = message_formats_1.RecordOn.toJSON(message.recordOn);
|
|
440
|
+
}
|
|
441
|
+
return obj;
|
|
442
|
+
},
|
|
443
|
+
create(base) {
|
|
444
|
+
return exports.RecordCtrl.fromPartial(base ?? {});
|
|
445
|
+
},
|
|
446
|
+
fromPartial(object) {
|
|
447
|
+
const message = createBaseRecordCtrl();
|
|
448
|
+
message.recordOn = (object.recordOn !== undefined && object.recordOn !== null)
|
|
449
|
+
? message_formats_1.RecordOn.fromPartial(object.recordOn)
|
|
450
|
+
: undefined;
|
|
451
|
+
return message;
|
|
452
|
+
},
|
|
453
|
+
};
|
|
454
|
+
function createBaseTakePictureCtrl() {
|
|
455
|
+
return {};
|
|
456
|
+
}
|
|
457
|
+
exports.TakePictureCtrl = {
|
|
458
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
459
|
+
return writer;
|
|
460
|
+
},
|
|
461
|
+
decode(input, length) {
|
|
462
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
463
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
464
|
+
const message = createBaseTakePictureCtrl();
|
|
465
|
+
while (reader.pos < end) {
|
|
466
|
+
const tag = reader.uint32();
|
|
467
|
+
switch (tag >>> 3) {
|
|
468
|
+
}
|
|
469
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
470
|
+
break;
|
|
471
|
+
}
|
|
472
|
+
reader.skip(tag & 7);
|
|
473
|
+
}
|
|
474
|
+
return message;
|
|
475
|
+
},
|
|
476
|
+
fromJSON(_) {
|
|
477
|
+
return {};
|
|
478
|
+
},
|
|
479
|
+
toJSON(_) {
|
|
480
|
+
const obj = {};
|
|
481
|
+
return obj;
|
|
482
|
+
},
|
|
483
|
+
create(base) {
|
|
484
|
+
return exports.TakePictureCtrl.fromPartial(base ?? {});
|
|
485
|
+
},
|
|
486
|
+
fromPartial(_) {
|
|
487
|
+
const message = createBaseTakePictureCtrl();
|
|
488
|
+
return message;
|
|
489
|
+
},
|
|
490
|
+
};
|
|
491
|
+
function createBaseStartCalibrationCtrl() {
|
|
492
|
+
return {};
|
|
493
|
+
}
|
|
494
|
+
exports.StartCalibrationCtrl = {
|
|
495
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
496
|
+
return writer;
|
|
497
|
+
},
|
|
498
|
+
decode(input, length) {
|
|
499
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
500
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
501
|
+
const message = createBaseStartCalibrationCtrl();
|
|
502
|
+
while (reader.pos < end) {
|
|
503
|
+
const tag = reader.uint32();
|
|
504
|
+
switch (tag >>> 3) {
|
|
505
|
+
}
|
|
506
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
507
|
+
break;
|
|
508
|
+
}
|
|
509
|
+
reader.skip(tag & 7);
|
|
510
|
+
}
|
|
511
|
+
return message;
|
|
512
|
+
},
|
|
513
|
+
fromJSON(_) {
|
|
514
|
+
return {};
|
|
515
|
+
},
|
|
516
|
+
toJSON(_) {
|
|
517
|
+
const obj = {};
|
|
518
|
+
return obj;
|
|
519
|
+
},
|
|
520
|
+
create(base) {
|
|
521
|
+
return exports.StartCalibrationCtrl.fromPartial(base ?? {});
|
|
522
|
+
},
|
|
523
|
+
fromPartial(_) {
|
|
524
|
+
const message = createBaseStartCalibrationCtrl();
|
|
525
|
+
return message;
|
|
526
|
+
},
|
|
527
|
+
};
|
|
528
|
+
function createBaseCancelCalibrationCtrl() {
|
|
529
|
+
return {};
|
|
530
|
+
}
|
|
531
|
+
exports.CancelCalibrationCtrl = {
|
|
532
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
533
|
+
return writer;
|
|
534
|
+
},
|
|
535
|
+
decode(input, length) {
|
|
536
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
537
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
538
|
+
const message = createBaseCancelCalibrationCtrl();
|
|
539
|
+
while (reader.pos < end) {
|
|
540
|
+
const tag = reader.uint32();
|
|
541
|
+
switch (tag >>> 3) {
|
|
542
|
+
}
|
|
543
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
544
|
+
break;
|
|
545
|
+
}
|
|
546
|
+
reader.skip(tag & 7);
|
|
547
|
+
}
|
|
548
|
+
return message;
|
|
549
|
+
},
|
|
550
|
+
fromJSON(_) {
|
|
551
|
+
return {};
|
|
552
|
+
},
|
|
553
|
+
toJSON(_) {
|
|
554
|
+
const obj = {};
|
|
555
|
+
return obj;
|
|
556
|
+
},
|
|
557
|
+
create(base) {
|
|
558
|
+
return exports.CancelCalibrationCtrl.fromPartial(base ?? {});
|
|
559
|
+
},
|
|
560
|
+
fromPartial(_) {
|
|
561
|
+
const message = createBaseCancelCalibrationCtrl();
|
|
562
|
+
return message;
|
|
563
|
+
},
|
|
564
|
+
};
|
|
565
|
+
function createBaseFinishCalibrationCtrl() {
|
|
566
|
+
return {};
|
|
567
|
+
}
|
|
568
|
+
exports.FinishCalibrationCtrl = {
|
|
569
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
570
|
+
return writer;
|
|
571
|
+
},
|
|
572
|
+
decode(input, length) {
|
|
573
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
574
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
575
|
+
const message = createBaseFinishCalibrationCtrl();
|
|
576
|
+
while (reader.pos < end) {
|
|
577
|
+
const tag = reader.uint32();
|
|
578
|
+
switch (tag >>> 3) {
|
|
579
|
+
}
|
|
580
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
581
|
+
break;
|
|
582
|
+
}
|
|
583
|
+
reader.skip(tag & 7);
|
|
584
|
+
}
|
|
585
|
+
return message;
|
|
586
|
+
},
|
|
587
|
+
fromJSON(_) {
|
|
588
|
+
return {};
|
|
589
|
+
},
|
|
590
|
+
toJSON(_) {
|
|
591
|
+
const obj = {};
|
|
592
|
+
return obj;
|
|
593
|
+
},
|
|
594
|
+
create(base) {
|
|
595
|
+
return exports.FinishCalibrationCtrl.fromPartial(base ?? {});
|
|
596
|
+
},
|
|
597
|
+
fromPartial(_) {
|
|
598
|
+
const message = createBaseFinishCalibrationCtrl();
|
|
599
|
+
return message;
|
|
600
|
+
},
|
|
601
|
+
};
|
|
602
|
+
function createBaseAutoHeadingCtrl() {
|
|
603
|
+
return { state: undefined };
|
|
604
|
+
}
|
|
605
|
+
exports.AutoHeadingCtrl = {
|
|
606
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
607
|
+
if (message.state !== undefined) {
|
|
608
|
+
message_formats_1.AutoHeadingState.encode(message.state, writer.uint32(10).fork()).join();
|
|
609
|
+
}
|
|
610
|
+
return writer;
|
|
611
|
+
},
|
|
612
|
+
decode(input, length) {
|
|
613
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
614
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
615
|
+
const message = createBaseAutoHeadingCtrl();
|
|
616
|
+
while (reader.pos < end) {
|
|
617
|
+
const tag = reader.uint32();
|
|
618
|
+
switch (tag >>> 3) {
|
|
619
|
+
case 1: {
|
|
620
|
+
if (tag !== 10) {
|
|
621
|
+
break;
|
|
622
|
+
}
|
|
623
|
+
message.state = message_formats_1.AutoHeadingState.decode(reader, reader.uint32());
|
|
624
|
+
continue;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
628
|
+
break;
|
|
629
|
+
}
|
|
630
|
+
reader.skip(tag & 7);
|
|
631
|
+
}
|
|
632
|
+
return message;
|
|
633
|
+
},
|
|
634
|
+
fromJSON(object) {
|
|
635
|
+
return { state: isSet(object.state) ? message_formats_1.AutoHeadingState.fromJSON(object.state) : undefined };
|
|
636
|
+
},
|
|
637
|
+
toJSON(message) {
|
|
638
|
+
const obj = {};
|
|
639
|
+
if (message.state !== undefined) {
|
|
640
|
+
obj.state = message_formats_1.AutoHeadingState.toJSON(message.state);
|
|
641
|
+
}
|
|
642
|
+
return obj;
|
|
643
|
+
},
|
|
644
|
+
create(base) {
|
|
645
|
+
return exports.AutoHeadingCtrl.fromPartial(base ?? {});
|
|
646
|
+
},
|
|
647
|
+
fromPartial(object) {
|
|
648
|
+
const message = createBaseAutoHeadingCtrl();
|
|
649
|
+
message.state = (object.state !== undefined && object.state !== null)
|
|
650
|
+
? message_formats_1.AutoHeadingState.fromPartial(object.state)
|
|
651
|
+
: undefined;
|
|
652
|
+
return message;
|
|
653
|
+
},
|
|
654
|
+
};
|
|
655
|
+
function createBaseAutoDepthCtrl() {
|
|
656
|
+
return { state: undefined };
|
|
657
|
+
}
|
|
658
|
+
exports.AutoDepthCtrl = {
|
|
659
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
660
|
+
if (message.state !== undefined) {
|
|
661
|
+
message_formats_1.AutoDepthState.encode(message.state, writer.uint32(10).fork()).join();
|
|
662
|
+
}
|
|
663
|
+
return writer;
|
|
664
|
+
},
|
|
665
|
+
decode(input, length) {
|
|
666
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
667
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
668
|
+
const message = createBaseAutoDepthCtrl();
|
|
669
|
+
while (reader.pos < end) {
|
|
670
|
+
const tag = reader.uint32();
|
|
671
|
+
switch (tag >>> 3) {
|
|
672
|
+
case 1: {
|
|
673
|
+
if (tag !== 10) {
|
|
674
|
+
break;
|
|
675
|
+
}
|
|
676
|
+
message.state = message_formats_1.AutoDepthState.decode(reader, reader.uint32());
|
|
677
|
+
continue;
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
681
|
+
break;
|
|
682
|
+
}
|
|
683
|
+
reader.skip(tag & 7);
|
|
684
|
+
}
|
|
685
|
+
return message;
|
|
686
|
+
},
|
|
687
|
+
fromJSON(object) {
|
|
688
|
+
return { state: isSet(object.state) ? message_formats_1.AutoDepthState.fromJSON(object.state) : undefined };
|
|
689
|
+
},
|
|
690
|
+
toJSON(message) {
|
|
691
|
+
const obj = {};
|
|
692
|
+
if (message.state !== undefined) {
|
|
693
|
+
obj.state = message_formats_1.AutoDepthState.toJSON(message.state);
|
|
694
|
+
}
|
|
695
|
+
return obj;
|
|
696
|
+
},
|
|
697
|
+
create(base) {
|
|
698
|
+
return exports.AutoDepthCtrl.fromPartial(base ?? {});
|
|
699
|
+
},
|
|
700
|
+
fromPartial(object) {
|
|
701
|
+
const message = createBaseAutoDepthCtrl();
|
|
702
|
+
message.state = (object.state !== undefined && object.state !== null)
|
|
703
|
+
? message_formats_1.AutoDepthState.fromPartial(object.state)
|
|
704
|
+
: undefined;
|
|
705
|
+
return message;
|
|
706
|
+
},
|
|
707
|
+
};
|
|
708
|
+
function createBaseAutoAltitudeCtrl() {
|
|
709
|
+
return { state: undefined };
|
|
710
|
+
}
|
|
711
|
+
exports.AutoAltitudeCtrl = {
|
|
712
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
713
|
+
if (message.state !== undefined) {
|
|
714
|
+
message_formats_1.AutoAltitudeState.encode(message.state, writer.uint32(10).fork()).join();
|
|
715
|
+
}
|
|
716
|
+
return writer;
|
|
717
|
+
},
|
|
718
|
+
decode(input, length) {
|
|
719
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
720
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
721
|
+
const message = createBaseAutoAltitudeCtrl();
|
|
722
|
+
while (reader.pos < end) {
|
|
723
|
+
const tag = reader.uint32();
|
|
724
|
+
switch (tag >>> 3) {
|
|
725
|
+
case 1: {
|
|
726
|
+
if (tag !== 10) {
|
|
727
|
+
break;
|
|
728
|
+
}
|
|
729
|
+
message.state = message_formats_1.AutoAltitudeState.decode(reader, reader.uint32());
|
|
730
|
+
continue;
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
734
|
+
break;
|
|
735
|
+
}
|
|
736
|
+
reader.skip(tag & 7);
|
|
737
|
+
}
|
|
738
|
+
return message;
|
|
739
|
+
},
|
|
740
|
+
fromJSON(object) {
|
|
741
|
+
return { state: isSet(object.state) ? message_formats_1.AutoAltitudeState.fromJSON(object.state) : undefined };
|
|
742
|
+
},
|
|
743
|
+
toJSON(message) {
|
|
744
|
+
const obj = {};
|
|
745
|
+
if (message.state !== undefined) {
|
|
746
|
+
obj.state = message_formats_1.AutoAltitudeState.toJSON(message.state);
|
|
747
|
+
}
|
|
748
|
+
return obj;
|
|
749
|
+
},
|
|
750
|
+
create(base) {
|
|
751
|
+
return exports.AutoAltitudeCtrl.fromPartial(base ?? {});
|
|
752
|
+
},
|
|
753
|
+
fromPartial(object) {
|
|
754
|
+
const message = createBaseAutoAltitudeCtrl();
|
|
755
|
+
message.state = (object.state !== undefined && object.state !== null)
|
|
756
|
+
? message_formats_1.AutoAltitudeState.fromPartial(object.state)
|
|
757
|
+
: undefined;
|
|
758
|
+
return message;
|
|
759
|
+
},
|
|
760
|
+
};
|
|
761
|
+
function createBaseStationKeepingCtrl() {
|
|
762
|
+
return { state: undefined };
|
|
763
|
+
}
|
|
764
|
+
exports.StationKeepingCtrl = {
|
|
765
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
766
|
+
if (message.state !== undefined) {
|
|
767
|
+
message_formats_1.StationKeepingState.encode(message.state, writer.uint32(10).fork()).join();
|
|
768
|
+
}
|
|
769
|
+
return writer;
|
|
770
|
+
},
|
|
771
|
+
decode(input, length) {
|
|
772
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
773
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
774
|
+
const message = createBaseStationKeepingCtrl();
|
|
775
|
+
while (reader.pos < end) {
|
|
776
|
+
const tag = reader.uint32();
|
|
777
|
+
switch (tag >>> 3) {
|
|
778
|
+
case 1: {
|
|
779
|
+
if (tag !== 10) {
|
|
780
|
+
break;
|
|
781
|
+
}
|
|
782
|
+
message.state = message_formats_1.StationKeepingState.decode(reader, reader.uint32());
|
|
783
|
+
continue;
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
787
|
+
break;
|
|
788
|
+
}
|
|
789
|
+
reader.skip(tag & 7);
|
|
790
|
+
}
|
|
791
|
+
return message;
|
|
792
|
+
},
|
|
793
|
+
fromJSON(object) {
|
|
794
|
+
return { state: isSet(object.state) ? message_formats_1.StationKeepingState.fromJSON(object.state) : undefined };
|
|
795
|
+
},
|
|
796
|
+
toJSON(message) {
|
|
797
|
+
const obj = {};
|
|
798
|
+
if (message.state !== undefined) {
|
|
799
|
+
obj.state = message_formats_1.StationKeepingState.toJSON(message.state);
|
|
800
|
+
}
|
|
801
|
+
return obj;
|
|
802
|
+
},
|
|
803
|
+
create(base) {
|
|
804
|
+
return exports.StationKeepingCtrl.fromPartial(base ?? {});
|
|
805
|
+
},
|
|
806
|
+
fromPartial(object) {
|
|
807
|
+
const message = createBaseStationKeepingCtrl();
|
|
808
|
+
message.state = (object.state !== undefined && object.state !== null)
|
|
809
|
+
? message_formats_1.StationKeepingState.fromPartial(object.state)
|
|
810
|
+
: undefined;
|
|
811
|
+
return message;
|
|
812
|
+
},
|
|
813
|
+
};
|
|
814
|
+
function createBaseWeatherVaningCtrl() {
|
|
815
|
+
return { state: undefined };
|
|
816
|
+
}
|
|
817
|
+
exports.WeatherVaningCtrl = {
|
|
818
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
819
|
+
if (message.state !== undefined) {
|
|
820
|
+
message_formats_1.WeatherVaningState.encode(message.state, writer.uint32(10).fork()).join();
|
|
821
|
+
}
|
|
822
|
+
return writer;
|
|
823
|
+
},
|
|
824
|
+
decode(input, length) {
|
|
825
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
826
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
827
|
+
const message = createBaseWeatherVaningCtrl();
|
|
828
|
+
while (reader.pos < end) {
|
|
829
|
+
const tag = reader.uint32();
|
|
830
|
+
switch (tag >>> 3) {
|
|
831
|
+
case 1: {
|
|
832
|
+
if (tag !== 10) {
|
|
833
|
+
break;
|
|
834
|
+
}
|
|
835
|
+
message.state = message_formats_1.WeatherVaningState.decode(reader, reader.uint32());
|
|
836
|
+
continue;
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
840
|
+
break;
|
|
841
|
+
}
|
|
842
|
+
reader.skip(tag & 7);
|
|
843
|
+
}
|
|
844
|
+
return message;
|
|
845
|
+
},
|
|
846
|
+
fromJSON(object) {
|
|
847
|
+
return { state: isSet(object.state) ? message_formats_1.WeatherVaningState.fromJSON(object.state) : undefined };
|
|
848
|
+
},
|
|
849
|
+
toJSON(message) {
|
|
850
|
+
const obj = {};
|
|
851
|
+
if (message.state !== undefined) {
|
|
852
|
+
obj.state = message_formats_1.WeatherVaningState.toJSON(message.state);
|
|
853
|
+
}
|
|
854
|
+
return obj;
|
|
855
|
+
},
|
|
856
|
+
create(base) {
|
|
857
|
+
return exports.WeatherVaningCtrl.fromPartial(base ?? {});
|
|
858
|
+
},
|
|
859
|
+
fromPartial(object) {
|
|
860
|
+
const message = createBaseWeatherVaningCtrl();
|
|
861
|
+
message.state = (object.state !== undefined && object.state !== null)
|
|
862
|
+
? message_formats_1.WeatherVaningState.fromPartial(object.state)
|
|
863
|
+
: undefined;
|
|
864
|
+
return message;
|
|
865
|
+
},
|
|
866
|
+
};
|
|
867
|
+
function createBaseAutoPilotSurgeYawCtrl() {
|
|
868
|
+
return { state: undefined };
|
|
869
|
+
}
|
|
870
|
+
exports.AutoPilotSurgeYawCtrl = {
|
|
871
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
872
|
+
if (message.state !== undefined) {
|
|
873
|
+
message_formats_1.AutoPilotSurgeYawState.encode(message.state, writer.uint32(10).fork()).join();
|
|
874
|
+
}
|
|
875
|
+
return writer;
|
|
876
|
+
},
|
|
877
|
+
decode(input, length) {
|
|
878
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
879
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
880
|
+
const message = createBaseAutoPilotSurgeYawCtrl();
|
|
881
|
+
while (reader.pos < end) {
|
|
882
|
+
const tag = reader.uint32();
|
|
883
|
+
switch (tag >>> 3) {
|
|
884
|
+
case 1: {
|
|
885
|
+
if (tag !== 10) {
|
|
886
|
+
break;
|
|
887
|
+
}
|
|
888
|
+
message.state = message_formats_1.AutoPilotSurgeYawState.decode(reader, reader.uint32());
|
|
889
|
+
continue;
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
893
|
+
break;
|
|
894
|
+
}
|
|
895
|
+
reader.skip(tag & 7);
|
|
896
|
+
}
|
|
897
|
+
return message;
|
|
898
|
+
},
|
|
899
|
+
fromJSON(object) {
|
|
900
|
+
return { state: isSet(object.state) ? message_formats_1.AutoPilotSurgeYawState.fromJSON(object.state) : undefined };
|
|
901
|
+
},
|
|
902
|
+
toJSON(message) {
|
|
903
|
+
const obj = {};
|
|
904
|
+
if (message.state !== undefined) {
|
|
905
|
+
obj.state = message_formats_1.AutoPilotSurgeYawState.toJSON(message.state);
|
|
906
|
+
}
|
|
907
|
+
return obj;
|
|
908
|
+
},
|
|
909
|
+
create(base) {
|
|
910
|
+
return exports.AutoPilotSurgeYawCtrl.fromPartial(base ?? {});
|
|
911
|
+
},
|
|
912
|
+
fromPartial(object) {
|
|
913
|
+
const message = createBaseAutoPilotSurgeYawCtrl();
|
|
914
|
+
message.state = (object.state !== undefined && object.state !== null)
|
|
915
|
+
? message_formats_1.AutoPilotSurgeYawState.fromPartial(object.state)
|
|
916
|
+
: undefined;
|
|
917
|
+
return message;
|
|
918
|
+
},
|
|
919
|
+
};
|
|
920
|
+
function createBaseAutoPilotHeaveCtrl() {
|
|
921
|
+
return { state: undefined };
|
|
922
|
+
}
|
|
923
|
+
exports.AutoPilotHeaveCtrl = {
|
|
924
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
925
|
+
if (message.state !== undefined) {
|
|
926
|
+
message_formats_1.AutoPilotHeaveState.encode(message.state, writer.uint32(10).fork()).join();
|
|
927
|
+
}
|
|
928
|
+
return writer;
|
|
929
|
+
},
|
|
930
|
+
decode(input, length) {
|
|
931
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
932
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
933
|
+
const message = createBaseAutoPilotHeaveCtrl();
|
|
934
|
+
while (reader.pos < end) {
|
|
935
|
+
const tag = reader.uint32();
|
|
936
|
+
switch (tag >>> 3) {
|
|
937
|
+
case 1: {
|
|
938
|
+
if (tag !== 10) {
|
|
939
|
+
break;
|
|
940
|
+
}
|
|
941
|
+
message.state = message_formats_1.AutoPilotHeaveState.decode(reader, reader.uint32());
|
|
942
|
+
continue;
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
946
|
+
break;
|
|
947
|
+
}
|
|
948
|
+
reader.skip(tag & 7);
|
|
949
|
+
}
|
|
950
|
+
return message;
|
|
951
|
+
},
|
|
952
|
+
fromJSON(object) {
|
|
953
|
+
return { state: isSet(object.state) ? message_formats_1.AutoPilotHeaveState.fromJSON(object.state) : undefined };
|
|
954
|
+
},
|
|
955
|
+
toJSON(message) {
|
|
956
|
+
const obj = {};
|
|
957
|
+
if (message.state !== undefined) {
|
|
958
|
+
obj.state = message_formats_1.AutoPilotHeaveState.toJSON(message.state);
|
|
959
|
+
}
|
|
960
|
+
return obj;
|
|
961
|
+
},
|
|
962
|
+
create(base) {
|
|
963
|
+
return exports.AutoPilotHeaveCtrl.fromPartial(base ?? {});
|
|
964
|
+
},
|
|
965
|
+
fromPartial(object) {
|
|
966
|
+
const message = createBaseAutoPilotHeaveCtrl();
|
|
967
|
+
message.state = (object.state !== undefined && object.state !== null)
|
|
968
|
+
? message_formats_1.AutoPilotHeaveState.fromPartial(object.state)
|
|
969
|
+
: undefined;
|
|
970
|
+
return message;
|
|
971
|
+
},
|
|
972
|
+
};
|
|
973
|
+
function createBaseRunMissionCtrl() {
|
|
974
|
+
return {};
|
|
975
|
+
}
|
|
976
|
+
exports.RunMissionCtrl = {
|
|
977
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
978
|
+
return writer;
|
|
979
|
+
},
|
|
980
|
+
decode(input, length) {
|
|
981
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
982
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
983
|
+
const message = createBaseRunMissionCtrl();
|
|
984
|
+
while (reader.pos < end) {
|
|
985
|
+
const tag = reader.uint32();
|
|
986
|
+
switch (tag >>> 3) {
|
|
987
|
+
}
|
|
988
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
989
|
+
break;
|
|
990
|
+
}
|
|
991
|
+
reader.skip(tag & 7);
|
|
992
|
+
}
|
|
993
|
+
return message;
|
|
994
|
+
},
|
|
995
|
+
fromJSON(_) {
|
|
996
|
+
return {};
|
|
997
|
+
},
|
|
998
|
+
toJSON(_) {
|
|
999
|
+
const obj = {};
|
|
1000
|
+
return obj;
|
|
1001
|
+
},
|
|
1002
|
+
create(base) {
|
|
1003
|
+
return exports.RunMissionCtrl.fromPartial(base ?? {});
|
|
1004
|
+
},
|
|
1005
|
+
fromPartial(_) {
|
|
1006
|
+
const message = createBaseRunMissionCtrl();
|
|
1007
|
+
return message;
|
|
1008
|
+
},
|
|
1009
|
+
};
|
|
1010
|
+
function createBasePauseMissionCtrl() {
|
|
1011
|
+
return {};
|
|
1012
|
+
}
|
|
1013
|
+
exports.PauseMissionCtrl = {
|
|
1014
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
1015
|
+
return writer;
|
|
1016
|
+
},
|
|
1017
|
+
decode(input, length) {
|
|
1018
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1019
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1020
|
+
const message = createBasePauseMissionCtrl();
|
|
1021
|
+
while (reader.pos < end) {
|
|
1022
|
+
const tag = reader.uint32();
|
|
1023
|
+
switch (tag >>> 3) {
|
|
1024
|
+
}
|
|
1025
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1026
|
+
break;
|
|
1027
|
+
}
|
|
1028
|
+
reader.skip(tag & 7);
|
|
1029
|
+
}
|
|
1030
|
+
return message;
|
|
1031
|
+
},
|
|
1032
|
+
fromJSON(_) {
|
|
1033
|
+
return {};
|
|
1034
|
+
},
|
|
1035
|
+
toJSON(_) {
|
|
1036
|
+
const obj = {};
|
|
1037
|
+
return obj;
|
|
1038
|
+
},
|
|
1039
|
+
create(base) {
|
|
1040
|
+
return exports.PauseMissionCtrl.fromPartial(base ?? {});
|
|
1041
|
+
},
|
|
1042
|
+
fromPartial(_) {
|
|
1043
|
+
const message = createBasePauseMissionCtrl();
|
|
1044
|
+
return message;
|
|
1045
|
+
},
|
|
1046
|
+
};
|
|
1047
|
+
function createBaseClearMissionCtrl() {
|
|
1048
|
+
return {};
|
|
1049
|
+
}
|
|
1050
|
+
exports.ClearMissionCtrl = {
|
|
1051
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
1052
|
+
return writer;
|
|
1053
|
+
},
|
|
1054
|
+
decode(input, length) {
|
|
1055
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1056
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1057
|
+
const message = createBaseClearMissionCtrl();
|
|
1058
|
+
while (reader.pos < end) {
|
|
1059
|
+
const tag = reader.uint32();
|
|
1060
|
+
switch (tag >>> 3) {
|
|
1061
|
+
}
|
|
1062
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1063
|
+
break;
|
|
1064
|
+
}
|
|
1065
|
+
reader.skip(tag & 7);
|
|
1066
|
+
}
|
|
1067
|
+
return message;
|
|
1068
|
+
},
|
|
1069
|
+
fromJSON(_) {
|
|
1070
|
+
return {};
|
|
1071
|
+
},
|
|
1072
|
+
toJSON(_) {
|
|
1073
|
+
const obj = {};
|
|
1074
|
+
return obj;
|
|
1075
|
+
},
|
|
1076
|
+
create(base) {
|
|
1077
|
+
return exports.ClearMissionCtrl.fromPartial(base ?? {});
|
|
1078
|
+
},
|
|
1079
|
+
fromPartial(_) {
|
|
1080
|
+
const message = createBaseClearMissionCtrl();
|
|
1081
|
+
return message;
|
|
1082
|
+
},
|
|
1083
|
+
};
|
|
1084
|
+
function createBaseResetPositionCtrl() {
|
|
1085
|
+
return { settings: undefined };
|
|
1086
|
+
}
|
|
1087
|
+
exports.ResetPositionCtrl = {
|
|
1088
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1089
|
+
if (message.settings !== undefined) {
|
|
1090
|
+
message_formats_1.ResetPositionSettings.encode(message.settings, writer.uint32(10).fork()).join();
|
|
1091
|
+
}
|
|
1092
|
+
return writer;
|
|
1093
|
+
},
|
|
1094
|
+
decode(input, length) {
|
|
1095
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1096
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1097
|
+
const message = createBaseResetPositionCtrl();
|
|
1098
|
+
while (reader.pos < end) {
|
|
1099
|
+
const tag = reader.uint32();
|
|
1100
|
+
switch (tag >>> 3) {
|
|
1101
|
+
case 1: {
|
|
1102
|
+
if (tag !== 10) {
|
|
1103
|
+
break;
|
|
1104
|
+
}
|
|
1105
|
+
message.settings = message_formats_1.ResetPositionSettings.decode(reader, reader.uint32());
|
|
1106
|
+
continue;
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1110
|
+
break;
|
|
1111
|
+
}
|
|
1112
|
+
reader.skip(tag & 7);
|
|
1113
|
+
}
|
|
1114
|
+
return message;
|
|
1115
|
+
},
|
|
1116
|
+
fromJSON(object) {
|
|
1117
|
+
return { settings: isSet(object.settings) ? message_formats_1.ResetPositionSettings.fromJSON(object.settings) : undefined };
|
|
1118
|
+
},
|
|
1119
|
+
toJSON(message) {
|
|
1120
|
+
const obj = {};
|
|
1121
|
+
if (message.settings !== undefined) {
|
|
1122
|
+
obj.settings = message_formats_1.ResetPositionSettings.toJSON(message.settings);
|
|
1123
|
+
}
|
|
1124
|
+
return obj;
|
|
1125
|
+
},
|
|
1126
|
+
create(base) {
|
|
1127
|
+
return exports.ResetPositionCtrl.fromPartial(base ?? {});
|
|
1128
|
+
},
|
|
1129
|
+
fromPartial(object) {
|
|
1130
|
+
const message = createBaseResetPositionCtrl();
|
|
1131
|
+
message.settings = (object.settings !== undefined && object.settings !== null)
|
|
1132
|
+
? message_formats_1.ResetPositionSettings.fromPartial(object.settings)
|
|
1133
|
+
: undefined;
|
|
1134
|
+
return message;
|
|
1135
|
+
},
|
|
1136
|
+
};
|
|
1137
|
+
function createBaseResetOdometerCtrl() {
|
|
1138
|
+
return {};
|
|
1139
|
+
}
|
|
1140
|
+
exports.ResetOdometerCtrl = {
|
|
1141
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
1142
|
+
return writer;
|
|
1143
|
+
},
|
|
1144
|
+
decode(input, length) {
|
|
1145
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1146
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1147
|
+
const message = createBaseResetOdometerCtrl();
|
|
1148
|
+
while (reader.pos < end) {
|
|
1149
|
+
const tag = reader.uint32();
|
|
1150
|
+
switch (tag >>> 3) {
|
|
1151
|
+
}
|
|
1152
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1153
|
+
break;
|
|
1154
|
+
}
|
|
1155
|
+
reader.skip(tag & 7);
|
|
1156
|
+
}
|
|
1157
|
+
return message;
|
|
1158
|
+
},
|
|
1159
|
+
fromJSON(_) {
|
|
1160
|
+
return {};
|
|
1161
|
+
},
|
|
1162
|
+
toJSON(_) {
|
|
1163
|
+
const obj = {};
|
|
1164
|
+
return obj;
|
|
1165
|
+
},
|
|
1166
|
+
create(base) {
|
|
1167
|
+
return exports.ResetOdometerCtrl.fromPartial(base ?? {});
|
|
1168
|
+
},
|
|
1169
|
+
fromPartial(_) {
|
|
1170
|
+
const message = createBaseResetOdometerCtrl();
|
|
1171
|
+
return message;
|
|
1172
|
+
},
|
|
1173
|
+
};
|
|
1174
|
+
function createBaseCalibrateDvlGyroCtrl() {
|
|
1175
|
+
return {};
|
|
1176
|
+
}
|
|
1177
|
+
exports.CalibrateDvlGyroCtrl = {
|
|
1178
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
1179
|
+
return writer;
|
|
1180
|
+
},
|
|
1181
|
+
decode(input, length) {
|
|
1182
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1183
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1184
|
+
const message = createBaseCalibrateDvlGyroCtrl();
|
|
1185
|
+
while (reader.pos < end) {
|
|
1186
|
+
const tag = reader.uint32();
|
|
1187
|
+
switch (tag >>> 3) {
|
|
1188
|
+
}
|
|
1189
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1190
|
+
break;
|
|
1191
|
+
}
|
|
1192
|
+
reader.skip(tag & 7);
|
|
1193
|
+
}
|
|
1194
|
+
return message;
|
|
1195
|
+
},
|
|
1196
|
+
fromJSON(_) {
|
|
1197
|
+
return {};
|
|
1198
|
+
},
|
|
1199
|
+
toJSON(_) {
|
|
1200
|
+
const obj = {};
|
|
1201
|
+
return obj;
|
|
1202
|
+
},
|
|
1203
|
+
create(base) {
|
|
1204
|
+
return exports.CalibrateDvlGyroCtrl.fromPartial(base ?? {});
|
|
1205
|
+
},
|
|
1206
|
+
fromPartial(_) {
|
|
1207
|
+
const message = createBaseCalibrateDvlGyroCtrl();
|
|
1208
|
+
return message;
|
|
1209
|
+
},
|
|
1210
|
+
};
|
|
1211
|
+
function createBaseTiltStabilizationCtrl() {
|
|
1212
|
+
return { state: undefined };
|
|
1213
|
+
}
|
|
1214
|
+
exports.TiltStabilizationCtrl = {
|
|
1215
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1216
|
+
if (message.state !== undefined) {
|
|
1217
|
+
message_formats_1.TiltStabilizationState.encode(message.state, writer.uint32(10).fork()).join();
|
|
1218
|
+
}
|
|
1219
|
+
return writer;
|
|
1220
|
+
},
|
|
1221
|
+
decode(input, length) {
|
|
1222
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1223
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1224
|
+
const message = createBaseTiltStabilizationCtrl();
|
|
1225
|
+
while (reader.pos < end) {
|
|
1226
|
+
const tag = reader.uint32();
|
|
1227
|
+
switch (tag >>> 3) {
|
|
1228
|
+
case 1: {
|
|
1229
|
+
if (tag !== 10) {
|
|
1230
|
+
break;
|
|
1231
|
+
}
|
|
1232
|
+
message.state = message_formats_1.TiltStabilizationState.decode(reader, reader.uint32());
|
|
1233
|
+
continue;
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1237
|
+
break;
|
|
1238
|
+
}
|
|
1239
|
+
reader.skip(tag & 7);
|
|
1240
|
+
}
|
|
1241
|
+
return message;
|
|
1242
|
+
},
|
|
1243
|
+
fromJSON(object) {
|
|
1244
|
+
return { state: isSet(object.state) ? message_formats_1.TiltStabilizationState.fromJSON(object.state) : undefined };
|
|
1245
|
+
},
|
|
1246
|
+
toJSON(message) {
|
|
1247
|
+
const obj = {};
|
|
1248
|
+
if (message.state !== undefined) {
|
|
1249
|
+
obj.state = message_formats_1.TiltStabilizationState.toJSON(message.state);
|
|
1250
|
+
}
|
|
1251
|
+
return obj;
|
|
1252
|
+
},
|
|
1253
|
+
create(base) {
|
|
1254
|
+
return exports.TiltStabilizationCtrl.fromPartial(base ?? {});
|
|
1255
|
+
},
|
|
1256
|
+
fromPartial(object) {
|
|
1257
|
+
const message = createBaseTiltStabilizationCtrl();
|
|
1258
|
+
message.state = (object.state !== undefined && object.state !== null)
|
|
1259
|
+
? message_formats_1.TiltStabilizationState.fromPartial(object.state)
|
|
1260
|
+
: undefined;
|
|
1261
|
+
return message;
|
|
1262
|
+
},
|
|
1263
|
+
};
|
|
1264
|
+
function createBaseWaterDensityCtrl() {
|
|
1265
|
+
return { density: undefined };
|
|
1266
|
+
}
|
|
1267
|
+
exports.WaterDensityCtrl = {
|
|
1268
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1269
|
+
if (message.density !== undefined) {
|
|
1270
|
+
message_formats_1.WaterDensity.encode(message.density, writer.uint32(10).fork()).join();
|
|
1271
|
+
}
|
|
1272
|
+
return writer;
|
|
1273
|
+
},
|
|
1274
|
+
decode(input, length) {
|
|
1275
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1276
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1277
|
+
const message = createBaseWaterDensityCtrl();
|
|
1278
|
+
while (reader.pos < end) {
|
|
1279
|
+
const tag = reader.uint32();
|
|
1280
|
+
switch (tag >>> 3) {
|
|
1281
|
+
case 1: {
|
|
1282
|
+
if (tag !== 10) {
|
|
1283
|
+
break;
|
|
1284
|
+
}
|
|
1285
|
+
message.density = message_formats_1.WaterDensity.decode(reader, reader.uint32());
|
|
1286
|
+
continue;
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1290
|
+
break;
|
|
1291
|
+
}
|
|
1292
|
+
reader.skip(tag & 7);
|
|
1293
|
+
}
|
|
1294
|
+
return message;
|
|
1295
|
+
},
|
|
1296
|
+
fromJSON(object) {
|
|
1297
|
+
return { density: isSet(object.density) ? message_formats_1.WaterDensity.fromJSON(object.density) : undefined };
|
|
1298
|
+
},
|
|
1299
|
+
toJSON(message) {
|
|
1300
|
+
const obj = {};
|
|
1301
|
+
if (message.density !== undefined) {
|
|
1302
|
+
obj.density = message_formats_1.WaterDensity.toJSON(message.density);
|
|
1303
|
+
}
|
|
1304
|
+
return obj;
|
|
1305
|
+
},
|
|
1306
|
+
create(base) {
|
|
1307
|
+
return exports.WaterDensityCtrl.fromPartial(base ?? {});
|
|
1308
|
+
},
|
|
1309
|
+
fromPartial(object) {
|
|
1310
|
+
const message = createBaseWaterDensityCtrl();
|
|
1311
|
+
message.density = (object.density !== undefined && object.density !== null)
|
|
1312
|
+
? message_formats_1.WaterDensity.fromPartial(object.density)
|
|
1313
|
+
: undefined;
|
|
1314
|
+
return message;
|
|
1315
|
+
},
|
|
1316
|
+
};
|
|
1317
|
+
function createBasePingerConfigurationCtrl() {
|
|
1318
|
+
return { configuration: undefined };
|
|
1319
|
+
}
|
|
1320
|
+
exports.PingerConfigurationCtrl = {
|
|
1321
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1322
|
+
if (message.configuration !== undefined) {
|
|
1323
|
+
message_formats_1.PingerConfiguration.encode(message.configuration, writer.uint32(10).fork()).join();
|
|
1324
|
+
}
|
|
1325
|
+
return writer;
|
|
1326
|
+
},
|
|
1327
|
+
decode(input, length) {
|
|
1328
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1329
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1330
|
+
const message = createBasePingerConfigurationCtrl();
|
|
1331
|
+
while (reader.pos < end) {
|
|
1332
|
+
const tag = reader.uint32();
|
|
1333
|
+
switch (tag >>> 3) {
|
|
1334
|
+
case 1: {
|
|
1335
|
+
if (tag !== 10) {
|
|
1336
|
+
break;
|
|
1337
|
+
}
|
|
1338
|
+
message.configuration = message_formats_1.PingerConfiguration.decode(reader, reader.uint32());
|
|
1339
|
+
continue;
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1343
|
+
break;
|
|
1344
|
+
}
|
|
1345
|
+
reader.skip(tag & 7);
|
|
1346
|
+
}
|
|
1347
|
+
return message;
|
|
1348
|
+
},
|
|
1349
|
+
fromJSON(object) {
|
|
1350
|
+
return {
|
|
1351
|
+
configuration: isSet(object.configuration) ? message_formats_1.PingerConfiguration.fromJSON(object.configuration) : undefined,
|
|
1352
|
+
};
|
|
1353
|
+
},
|
|
1354
|
+
toJSON(message) {
|
|
1355
|
+
const obj = {};
|
|
1356
|
+
if (message.configuration !== undefined) {
|
|
1357
|
+
obj.configuration = message_formats_1.PingerConfiguration.toJSON(message.configuration);
|
|
1358
|
+
}
|
|
1359
|
+
return obj;
|
|
1360
|
+
},
|
|
1361
|
+
create(base) {
|
|
1362
|
+
return exports.PingerConfigurationCtrl.fromPartial(base ?? {});
|
|
1363
|
+
},
|
|
1364
|
+
fromPartial(object) {
|
|
1365
|
+
const message = createBasePingerConfigurationCtrl();
|
|
1366
|
+
message.configuration = (object.configuration !== undefined && object.configuration !== null)
|
|
1367
|
+
? message_formats_1.PingerConfiguration.fromPartial(object.configuration)
|
|
1368
|
+
: undefined;
|
|
1369
|
+
return message;
|
|
1370
|
+
},
|
|
1371
|
+
};
|
|
1372
|
+
function createBaseSystemTimeCtrl() {
|
|
1373
|
+
return { systemTime: undefined };
|
|
1374
|
+
}
|
|
1375
|
+
exports.SystemTimeCtrl = {
|
|
1376
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1377
|
+
if (message.systemTime !== undefined) {
|
|
1378
|
+
message_formats_1.SystemTime.encode(message.systemTime, writer.uint32(10).fork()).join();
|
|
1379
|
+
}
|
|
1380
|
+
return writer;
|
|
1381
|
+
},
|
|
1382
|
+
decode(input, length) {
|
|
1383
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1384
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1385
|
+
const message = createBaseSystemTimeCtrl();
|
|
1386
|
+
while (reader.pos < end) {
|
|
1387
|
+
const tag = reader.uint32();
|
|
1388
|
+
switch (tag >>> 3) {
|
|
1389
|
+
case 1: {
|
|
1390
|
+
if (tag !== 10) {
|
|
1391
|
+
break;
|
|
1392
|
+
}
|
|
1393
|
+
message.systemTime = message_formats_1.SystemTime.decode(reader, reader.uint32());
|
|
1394
|
+
continue;
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1398
|
+
break;
|
|
1399
|
+
}
|
|
1400
|
+
reader.skip(tag & 7);
|
|
1401
|
+
}
|
|
1402
|
+
return message;
|
|
1403
|
+
},
|
|
1404
|
+
fromJSON(object) {
|
|
1405
|
+
return { systemTime: isSet(object.systemTime) ? message_formats_1.SystemTime.fromJSON(object.systemTime) : undefined };
|
|
1406
|
+
},
|
|
1407
|
+
toJSON(message) {
|
|
1408
|
+
const obj = {};
|
|
1409
|
+
if (message.systemTime !== undefined) {
|
|
1410
|
+
obj.systemTime = message_formats_1.SystemTime.toJSON(message.systemTime);
|
|
1411
|
+
}
|
|
1412
|
+
return obj;
|
|
1413
|
+
},
|
|
1414
|
+
create(base) {
|
|
1415
|
+
return exports.SystemTimeCtrl.fromPartial(base ?? {});
|
|
1416
|
+
},
|
|
1417
|
+
fromPartial(object) {
|
|
1418
|
+
const message = createBaseSystemTimeCtrl();
|
|
1419
|
+
message.systemTime = (object.systemTime !== undefined && object.systemTime !== null)
|
|
1420
|
+
? message_formats_1.SystemTime.fromPartial(object.systemTime)
|
|
1421
|
+
: undefined;
|
|
1422
|
+
return message;
|
|
1423
|
+
},
|
|
1424
|
+
};
|
|
1425
|
+
function createBaseGripperCtrl() {
|
|
1426
|
+
return { gripperVelocities: undefined };
|
|
1427
|
+
}
|
|
1428
|
+
exports.GripperCtrl = {
|
|
1429
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1430
|
+
if (message.gripperVelocities !== undefined) {
|
|
1431
|
+
message_formats_1.GripperVelocities.encode(message.gripperVelocities, writer.uint32(10).fork()).join();
|
|
1432
|
+
}
|
|
1433
|
+
return writer;
|
|
1434
|
+
},
|
|
1435
|
+
decode(input, length) {
|
|
1436
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1437
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1438
|
+
const message = createBaseGripperCtrl();
|
|
1439
|
+
while (reader.pos < end) {
|
|
1440
|
+
const tag = reader.uint32();
|
|
1441
|
+
switch (tag >>> 3) {
|
|
1442
|
+
case 1: {
|
|
1443
|
+
if (tag !== 10) {
|
|
1444
|
+
break;
|
|
1445
|
+
}
|
|
1446
|
+
message.gripperVelocities = message_formats_1.GripperVelocities.decode(reader, reader.uint32());
|
|
1447
|
+
continue;
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1451
|
+
break;
|
|
1452
|
+
}
|
|
1453
|
+
reader.skip(tag & 7);
|
|
1454
|
+
}
|
|
1455
|
+
return message;
|
|
1456
|
+
},
|
|
1457
|
+
fromJSON(object) {
|
|
1458
|
+
return {
|
|
1459
|
+
gripperVelocities: isSet(object.gripperVelocities)
|
|
1460
|
+
? message_formats_1.GripperVelocities.fromJSON(object.gripperVelocities)
|
|
1461
|
+
: undefined,
|
|
1462
|
+
};
|
|
1463
|
+
},
|
|
1464
|
+
toJSON(message) {
|
|
1465
|
+
const obj = {};
|
|
1466
|
+
if (message.gripperVelocities !== undefined) {
|
|
1467
|
+
obj.gripperVelocities = message_formats_1.GripperVelocities.toJSON(message.gripperVelocities);
|
|
1468
|
+
}
|
|
1469
|
+
return obj;
|
|
1470
|
+
},
|
|
1471
|
+
create(base) {
|
|
1472
|
+
return exports.GripperCtrl.fromPartial(base ?? {});
|
|
1473
|
+
},
|
|
1474
|
+
fromPartial(object) {
|
|
1475
|
+
const message = createBaseGripperCtrl();
|
|
1476
|
+
message.gripperVelocities = (object.gripperVelocities !== undefined && object.gripperVelocities !== null)
|
|
1477
|
+
? message_formats_1.GripperVelocities.fromPartial(object.gripperVelocities)
|
|
1478
|
+
: undefined;
|
|
1479
|
+
return message;
|
|
1480
|
+
},
|
|
1481
|
+
};
|
|
1482
|
+
function createBaseGenericServoCtrl() {
|
|
1483
|
+
return { servo: undefined };
|
|
1484
|
+
}
|
|
1485
|
+
exports.GenericServoCtrl = {
|
|
1486
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1487
|
+
if (message.servo !== undefined) {
|
|
1488
|
+
message_formats_1.GenericServo.encode(message.servo, writer.uint32(10).fork()).join();
|
|
1489
|
+
}
|
|
1490
|
+
return writer;
|
|
1491
|
+
},
|
|
1492
|
+
decode(input, length) {
|
|
1493
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1494
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1495
|
+
const message = createBaseGenericServoCtrl();
|
|
1496
|
+
while (reader.pos < end) {
|
|
1497
|
+
const tag = reader.uint32();
|
|
1498
|
+
switch (tag >>> 3) {
|
|
1499
|
+
case 1: {
|
|
1500
|
+
if (tag !== 10) {
|
|
1501
|
+
break;
|
|
1502
|
+
}
|
|
1503
|
+
message.servo = message_formats_1.GenericServo.decode(reader, reader.uint32());
|
|
1504
|
+
continue;
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1508
|
+
break;
|
|
1509
|
+
}
|
|
1510
|
+
reader.skip(tag & 7);
|
|
1511
|
+
}
|
|
1512
|
+
return message;
|
|
1513
|
+
},
|
|
1514
|
+
fromJSON(object) {
|
|
1515
|
+
return { servo: isSet(object.servo) ? message_formats_1.GenericServo.fromJSON(object.servo) : undefined };
|
|
1516
|
+
},
|
|
1517
|
+
toJSON(message) {
|
|
1518
|
+
const obj = {};
|
|
1519
|
+
if (message.servo !== undefined) {
|
|
1520
|
+
obj.servo = message_formats_1.GenericServo.toJSON(message.servo);
|
|
1521
|
+
}
|
|
1522
|
+
return obj;
|
|
1523
|
+
},
|
|
1524
|
+
create(base) {
|
|
1525
|
+
return exports.GenericServoCtrl.fromPartial(base ?? {});
|
|
1526
|
+
},
|
|
1527
|
+
fromPartial(object) {
|
|
1528
|
+
const message = createBaseGenericServoCtrl();
|
|
1529
|
+
message.servo = (object.servo !== undefined && object.servo !== null)
|
|
1530
|
+
? message_formats_1.GenericServo.fromPartial(object.servo)
|
|
1531
|
+
: undefined;
|
|
1532
|
+
return message;
|
|
1533
|
+
},
|
|
1534
|
+
};
|
|
1535
|
+
function createBaseMultibeamServoCtrl() {
|
|
1536
|
+
return { servo: undefined };
|
|
1537
|
+
}
|
|
1538
|
+
exports.MultibeamServoCtrl = {
|
|
1539
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1540
|
+
if (message.servo !== undefined) {
|
|
1541
|
+
message_formats_1.MultibeamServo.encode(message.servo, writer.uint32(10).fork()).join();
|
|
1542
|
+
}
|
|
1543
|
+
return writer;
|
|
1544
|
+
},
|
|
1545
|
+
decode(input, length) {
|
|
1546
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1547
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1548
|
+
const message = createBaseMultibeamServoCtrl();
|
|
1549
|
+
while (reader.pos < end) {
|
|
1550
|
+
const tag = reader.uint32();
|
|
1551
|
+
switch (tag >>> 3) {
|
|
1552
|
+
case 1: {
|
|
1553
|
+
if (tag !== 10) {
|
|
1554
|
+
break;
|
|
1555
|
+
}
|
|
1556
|
+
message.servo = message_formats_1.MultibeamServo.decode(reader, reader.uint32());
|
|
1557
|
+
continue;
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1561
|
+
break;
|
|
1562
|
+
}
|
|
1563
|
+
reader.skip(tag & 7);
|
|
1564
|
+
}
|
|
1565
|
+
return message;
|
|
1566
|
+
},
|
|
1567
|
+
fromJSON(object) {
|
|
1568
|
+
return { servo: isSet(object.servo) ? message_formats_1.MultibeamServo.fromJSON(object.servo) : undefined };
|
|
1569
|
+
},
|
|
1570
|
+
toJSON(message) {
|
|
1571
|
+
const obj = {};
|
|
1572
|
+
if (message.servo !== undefined) {
|
|
1573
|
+
obj.servo = message_formats_1.MultibeamServo.toJSON(message.servo);
|
|
1574
|
+
}
|
|
1575
|
+
return obj;
|
|
1576
|
+
},
|
|
1577
|
+
create(base) {
|
|
1578
|
+
return exports.MultibeamServoCtrl.fromPartial(base ?? {});
|
|
1579
|
+
},
|
|
1580
|
+
fromPartial(object) {
|
|
1581
|
+
const message = createBaseMultibeamServoCtrl();
|
|
1582
|
+
message.servo = (object.servo !== undefined && object.servo !== null)
|
|
1583
|
+
? message_formats_1.MultibeamServo.fromPartial(object.servo)
|
|
1584
|
+
: undefined;
|
|
1585
|
+
return message;
|
|
1586
|
+
},
|
|
1587
|
+
};
|
|
1588
|
+
function createBaseDeactivateGuestPortsCtrl() {
|
|
1589
|
+
return {};
|
|
1590
|
+
}
|
|
1591
|
+
exports.DeactivateGuestPortsCtrl = {
|
|
1592
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
1593
|
+
return writer;
|
|
1594
|
+
},
|
|
1595
|
+
decode(input, length) {
|
|
1596
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1597
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1598
|
+
const message = createBaseDeactivateGuestPortsCtrl();
|
|
1599
|
+
while (reader.pos < end) {
|
|
1600
|
+
const tag = reader.uint32();
|
|
1601
|
+
switch (tag >>> 3) {
|
|
1602
|
+
}
|
|
1603
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1604
|
+
break;
|
|
1605
|
+
}
|
|
1606
|
+
reader.skip(tag & 7);
|
|
1607
|
+
}
|
|
1608
|
+
return message;
|
|
1609
|
+
},
|
|
1610
|
+
fromJSON(_) {
|
|
1611
|
+
return {};
|
|
1612
|
+
},
|
|
1613
|
+
toJSON(_) {
|
|
1614
|
+
const obj = {};
|
|
1615
|
+
return obj;
|
|
1616
|
+
},
|
|
1617
|
+
create(base) {
|
|
1618
|
+
return exports.DeactivateGuestPortsCtrl.fromPartial(base ?? {});
|
|
1619
|
+
},
|
|
1620
|
+
fromPartial(_) {
|
|
1621
|
+
const message = createBaseDeactivateGuestPortsCtrl();
|
|
1622
|
+
return message;
|
|
1623
|
+
},
|
|
1624
|
+
};
|
|
1625
|
+
function createBaseActivateGuestPortsCtrl() {
|
|
1626
|
+
return {};
|
|
1627
|
+
}
|
|
1628
|
+
exports.ActivateGuestPortsCtrl = {
|
|
1629
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
1630
|
+
return writer;
|
|
1631
|
+
},
|
|
1632
|
+
decode(input, length) {
|
|
1633
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1634
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1635
|
+
const message = createBaseActivateGuestPortsCtrl();
|
|
1636
|
+
while (reader.pos < end) {
|
|
1637
|
+
const tag = reader.uint32();
|
|
1638
|
+
switch (tag >>> 3) {
|
|
1639
|
+
}
|
|
1640
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1641
|
+
break;
|
|
1642
|
+
}
|
|
1643
|
+
reader.skip(tag & 7);
|
|
1644
|
+
}
|
|
1645
|
+
return message;
|
|
1646
|
+
},
|
|
1647
|
+
fromJSON(_) {
|
|
1648
|
+
return {};
|
|
1649
|
+
},
|
|
1650
|
+
toJSON(_) {
|
|
1651
|
+
const obj = {};
|
|
1652
|
+
return obj;
|
|
1653
|
+
},
|
|
1654
|
+
create(base) {
|
|
1655
|
+
return exports.ActivateGuestPortsCtrl.fromPartial(base ?? {});
|
|
1656
|
+
},
|
|
1657
|
+
fromPartial(_) {
|
|
1658
|
+
const message = createBaseActivateGuestPortsCtrl();
|
|
1659
|
+
return message;
|
|
1660
|
+
},
|
|
1661
|
+
};
|
|
1662
|
+
function createBaseRestartGuestPortsCtrl() {
|
|
1663
|
+
return { restartInfo: undefined };
|
|
1664
|
+
}
|
|
1665
|
+
exports.RestartGuestPortsCtrl = {
|
|
1666
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1667
|
+
if (message.restartInfo !== undefined) {
|
|
1668
|
+
message_formats_1.GuestPortRestartInfo.encode(message.restartInfo, writer.uint32(10).fork()).join();
|
|
1669
|
+
}
|
|
1670
|
+
return writer;
|
|
1671
|
+
},
|
|
1672
|
+
decode(input, length) {
|
|
1673
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1674
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1675
|
+
const message = createBaseRestartGuestPortsCtrl();
|
|
1676
|
+
while (reader.pos < end) {
|
|
1677
|
+
const tag = reader.uint32();
|
|
1678
|
+
switch (tag >>> 3) {
|
|
1679
|
+
case 1: {
|
|
1680
|
+
if (tag !== 10) {
|
|
1681
|
+
break;
|
|
1682
|
+
}
|
|
1683
|
+
message.restartInfo = message_formats_1.GuestPortRestartInfo.decode(reader, reader.uint32());
|
|
1684
|
+
continue;
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1688
|
+
break;
|
|
1689
|
+
}
|
|
1690
|
+
reader.skip(tag & 7);
|
|
1691
|
+
}
|
|
1692
|
+
return message;
|
|
1693
|
+
},
|
|
1694
|
+
fromJSON(object) {
|
|
1695
|
+
return { restartInfo: isSet(object.restartInfo) ? message_formats_1.GuestPortRestartInfo.fromJSON(object.restartInfo) : undefined };
|
|
1696
|
+
},
|
|
1697
|
+
toJSON(message) {
|
|
1698
|
+
const obj = {};
|
|
1699
|
+
if (message.restartInfo !== undefined) {
|
|
1700
|
+
obj.restartInfo = message_formats_1.GuestPortRestartInfo.toJSON(message.restartInfo);
|
|
1701
|
+
}
|
|
1702
|
+
return obj;
|
|
1703
|
+
},
|
|
1704
|
+
create(base) {
|
|
1705
|
+
return exports.RestartGuestPortsCtrl.fromPartial(base ?? {});
|
|
1706
|
+
},
|
|
1707
|
+
fromPartial(object) {
|
|
1708
|
+
const message = createBaseRestartGuestPortsCtrl();
|
|
1709
|
+
message.restartInfo = (object.restartInfo !== undefined && object.restartInfo !== null)
|
|
1710
|
+
? message_formats_1.GuestPortRestartInfo.fromPartial(object.restartInfo)
|
|
1711
|
+
: undefined;
|
|
1712
|
+
return message;
|
|
1713
|
+
},
|
|
1714
|
+
};
|
|
1715
|
+
function createBaseSetAquaTrollParameterUnitCtrl() {
|
|
1716
|
+
return { parameterInfo: undefined };
|
|
1717
|
+
}
|
|
1718
|
+
exports.SetAquaTrollParameterUnitCtrl = {
|
|
1719
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1720
|
+
if (message.parameterInfo !== undefined) {
|
|
1721
|
+
aquatroll_1.SetAquaTrollParameterUnit.encode(message.parameterInfo, writer.uint32(10).fork()).join();
|
|
1722
|
+
}
|
|
1723
|
+
return writer;
|
|
1724
|
+
},
|
|
1725
|
+
decode(input, length) {
|
|
1726
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1727
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1728
|
+
const message = createBaseSetAquaTrollParameterUnitCtrl();
|
|
1729
|
+
while (reader.pos < end) {
|
|
1730
|
+
const tag = reader.uint32();
|
|
1731
|
+
switch (tag >>> 3) {
|
|
1732
|
+
case 1: {
|
|
1733
|
+
if (tag !== 10) {
|
|
1734
|
+
break;
|
|
1735
|
+
}
|
|
1736
|
+
message.parameterInfo = aquatroll_1.SetAquaTrollParameterUnit.decode(reader, reader.uint32());
|
|
1737
|
+
continue;
|
|
1738
|
+
}
|
|
1739
|
+
}
|
|
1740
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1741
|
+
break;
|
|
1742
|
+
}
|
|
1743
|
+
reader.skip(tag & 7);
|
|
1744
|
+
}
|
|
1745
|
+
return message;
|
|
1746
|
+
},
|
|
1747
|
+
fromJSON(object) {
|
|
1748
|
+
return {
|
|
1749
|
+
parameterInfo: isSet(object.parameterInfo) ? aquatroll_1.SetAquaTrollParameterUnit.fromJSON(object.parameterInfo) : undefined,
|
|
1750
|
+
};
|
|
1751
|
+
},
|
|
1752
|
+
toJSON(message) {
|
|
1753
|
+
const obj = {};
|
|
1754
|
+
if (message.parameterInfo !== undefined) {
|
|
1755
|
+
obj.parameterInfo = aquatroll_1.SetAquaTrollParameterUnit.toJSON(message.parameterInfo);
|
|
1756
|
+
}
|
|
1757
|
+
return obj;
|
|
1758
|
+
},
|
|
1759
|
+
create(base) {
|
|
1760
|
+
return exports.SetAquaTrollParameterUnitCtrl.fromPartial(base ?? {});
|
|
1761
|
+
},
|
|
1762
|
+
fromPartial(object) {
|
|
1763
|
+
const message = createBaseSetAquaTrollParameterUnitCtrl();
|
|
1764
|
+
message.parameterInfo = (object.parameterInfo !== undefined && object.parameterInfo !== null)
|
|
1765
|
+
? aquatroll_1.SetAquaTrollParameterUnit.fromPartial(object.parameterInfo)
|
|
1766
|
+
: undefined;
|
|
1767
|
+
return message;
|
|
1768
|
+
},
|
|
1769
|
+
};
|
|
1770
|
+
function createBaseSetAquaTrollConnectionStatusCtrl() {
|
|
1771
|
+
return { connectionStatus: undefined };
|
|
1772
|
+
}
|
|
1773
|
+
exports.SetAquaTrollConnectionStatusCtrl = {
|
|
1774
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1775
|
+
if (message.connectionStatus !== undefined) {
|
|
1776
|
+
aquatroll_1.SetAquaTrollConnectionStatus.encode(message.connectionStatus, writer.uint32(10).fork()).join();
|
|
1777
|
+
}
|
|
1778
|
+
return writer;
|
|
1779
|
+
},
|
|
1780
|
+
decode(input, length) {
|
|
1781
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1782
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1783
|
+
const message = createBaseSetAquaTrollConnectionStatusCtrl();
|
|
1784
|
+
while (reader.pos < end) {
|
|
1785
|
+
const tag = reader.uint32();
|
|
1786
|
+
switch (tag >>> 3) {
|
|
1787
|
+
case 1: {
|
|
1788
|
+
if (tag !== 10) {
|
|
1789
|
+
break;
|
|
1790
|
+
}
|
|
1791
|
+
message.connectionStatus = aquatroll_1.SetAquaTrollConnectionStatus.decode(reader, reader.uint32());
|
|
1792
|
+
continue;
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1796
|
+
break;
|
|
1797
|
+
}
|
|
1798
|
+
reader.skip(tag & 7);
|
|
1799
|
+
}
|
|
1800
|
+
return message;
|
|
1801
|
+
},
|
|
1802
|
+
fromJSON(object) {
|
|
1803
|
+
return {
|
|
1804
|
+
connectionStatus: isSet(object.connectionStatus)
|
|
1805
|
+
? aquatroll_1.SetAquaTrollConnectionStatus.fromJSON(object.connectionStatus)
|
|
1806
|
+
: undefined,
|
|
1807
|
+
};
|
|
1808
|
+
},
|
|
1809
|
+
toJSON(message) {
|
|
1810
|
+
const obj = {};
|
|
1811
|
+
if (message.connectionStatus !== undefined) {
|
|
1812
|
+
obj.connectionStatus = aquatroll_1.SetAquaTrollConnectionStatus.toJSON(message.connectionStatus);
|
|
1813
|
+
}
|
|
1814
|
+
return obj;
|
|
1815
|
+
},
|
|
1816
|
+
create(base) {
|
|
1817
|
+
return exports.SetAquaTrollConnectionStatusCtrl.fromPartial(base ?? {});
|
|
1818
|
+
},
|
|
1819
|
+
fromPartial(object) {
|
|
1820
|
+
const message = createBaseSetAquaTrollConnectionStatusCtrl();
|
|
1821
|
+
message.connectionStatus = (object.connectionStatus !== undefined && object.connectionStatus !== null)
|
|
1822
|
+
? aquatroll_1.SetAquaTrollConnectionStatus.fromPartial(object.connectionStatus)
|
|
1823
|
+
: undefined;
|
|
1824
|
+
return message;
|
|
1825
|
+
},
|
|
1826
|
+
};
|
|
1827
|
+
function createBaseSetMultibeamConfigCtrl() {
|
|
1828
|
+
return { config: undefined };
|
|
1829
|
+
}
|
|
1830
|
+
exports.SetMultibeamConfigCtrl = {
|
|
1831
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1832
|
+
if (message.config !== undefined) {
|
|
1833
|
+
message_formats_1.MultibeamConfig.encode(message.config, writer.uint32(10).fork()).join();
|
|
1834
|
+
}
|
|
1835
|
+
return writer;
|
|
1836
|
+
},
|
|
1837
|
+
decode(input, length) {
|
|
1838
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1839
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1840
|
+
const message = createBaseSetMultibeamConfigCtrl();
|
|
1841
|
+
while (reader.pos < end) {
|
|
1842
|
+
const tag = reader.uint32();
|
|
1843
|
+
switch (tag >>> 3) {
|
|
1844
|
+
case 1: {
|
|
1845
|
+
if (tag !== 10) {
|
|
1846
|
+
break;
|
|
1847
|
+
}
|
|
1848
|
+
message.config = message_formats_1.MultibeamConfig.decode(reader, reader.uint32());
|
|
1849
|
+
continue;
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1853
|
+
break;
|
|
1854
|
+
}
|
|
1855
|
+
reader.skip(tag & 7);
|
|
1856
|
+
}
|
|
1857
|
+
return message;
|
|
1858
|
+
},
|
|
1859
|
+
fromJSON(object) {
|
|
1860
|
+
return { config: isSet(object.config) ? message_formats_1.MultibeamConfig.fromJSON(object.config) : undefined };
|
|
1861
|
+
},
|
|
1862
|
+
toJSON(message) {
|
|
1863
|
+
const obj = {};
|
|
1864
|
+
if (message.config !== undefined) {
|
|
1865
|
+
obj.config = message_formats_1.MultibeamConfig.toJSON(message.config);
|
|
1866
|
+
}
|
|
1867
|
+
return obj;
|
|
1868
|
+
},
|
|
1869
|
+
create(base) {
|
|
1870
|
+
return exports.SetMultibeamConfigCtrl.fromPartial(base ?? {});
|
|
1871
|
+
},
|
|
1872
|
+
fromPartial(object) {
|
|
1873
|
+
const message = createBaseSetMultibeamConfigCtrl();
|
|
1874
|
+
message.config = (object.config !== undefined && object.config !== null)
|
|
1875
|
+
? message_formats_1.MultibeamConfig.fromPartial(object.config)
|
|
1876
|
+
: undefined;
|
|
1877
|
+
return message;
|
|
1878
|
+
},
|
|
1879
|
+
};
|
|
1880
|
+
function createBaseActivateMultibeamCtrl() {
|
|
1881
|
+
return { config: undefined };
|
|
1882
|
+
}
|
|
1883
|
+
exports.ActivateMultibeamCtrl = {
|
|
1884
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1885
|
+
if (message.config !== undefined) {
|
|
1886
|
+
message_formats_1.MultibeamConfig.encode(message.config, writer.uint32(10).fork()).join();
|
|
1887
|
+
}
|
|
1888
|
+
return writer;
|
|
1889
|
+
},
|
|
1890
|
+
decode(input, length) {
|
|
1891
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1892
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1893
|
+
const message = createBaseActivateMultibeamCtrl();
|
|
1894
|
+
while (reader.pos < end) {
|
|
1895
|
+
const tag = reader.uint32();
|
|
1896
|
+
switch (tag >>> 3) {
|
|
1897
|
+
case 1: {
|
|
1898
|
+
if (tag !== 10) {
|
|
1899
|
+
break;
|
|
1900
|
+
}
|
|
1901
|
+
message.config = message_formats_1.MultibeamConfig.decode(reader, reader.uint32());
|
|
1902
|
+
continue;
|
|
1903
|
+
}
|
|
1904
|
+
}
|
|
1905
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1906
|
+
break;
|
|
1907
|
+
}
|
|
1908
|
+
reader.skip(tag & 7);
|
|
1909
|
+
}
|
|
1910
|
+
return message;
|
|
1911
|
+
},
|
|
1912
|
+
fromJSON(object) {
|
|
1913
|
+
return { config: isSet(object.config) ? message_formats_1.MultibeamConfig.fromJSON(object.config) : undefined };
|
|
1914
|
+
},
|
|
1915
|
+
toJSON(message) {
|
|
1916
|
+
const obj = {};
|
|
1917
|
+
if (message.config !== undefined) {
|
|
1918
|
+
obj.config = message_formats_1.MultibeamConfig.toJSON(message.config);
|
|
1919
|
+
}
|
|
1920
|
+
return obj;
|
|
1921
|
+
},
|
|
1922
|
+
create(base) {
|
|
1923
|
+
return exports.ActivateMultibeamCtrl.fromPartial(base ?? {});
|
|
1924
|
+
},
|
|
1925
|
+
fromPartial(object) {
|
|
1926
|
+
const message = createBaseActivateMultibeamCtrl();
|
|
1927
|
+
message.config = (object.config !== undefined && object.config !== null)
|
|
1928
|
+
? message_formats_1.MultibeamConfig.fromPartial(object.config)
|
|
1929
|
+
: undefined;
|
|
1930
|
+
return message;
|
|
1931
|
+
},
|
|
1932
|
+
};
|
|
1933
|
+
function createBaseDeactivateMultibeamCtrl() {
|
|
1934
|
+
return {};
|
|
1935
|
+
}
|
|
1936
|
+
exports.DeactivateMultibeamCtrl = {
|
|
1937
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
1938
|
+
return writer;
|
|
1939
|
+
},
|
|
1940
|
+
decode(input, length) {
|
|
1941
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1942
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1943
|
+
const message = createBaseDeactivateMultibeamCtrl();
|
|
1944
|
+
while (reader.pos < end) {
|
|
1945
|
+
const tag = reader.uint32();
|
|
1946
|
+
switch (tag >>> 3) {
|
|
1947
|
+
}
|
|
1948
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1949
|
+
break;
|
|
1950
|
+
}
|
|
1951
|
+
reader.skip(tag & 7);
|
|
1952
|
+
}
|
|
1953
|
+
return message;
|
|
1954
|
+
},
|
|
1955
|
+
fromJSON(_) {
|
|
1956
|
+
return {};
|
|
1957
|
+
},
|
|
1958
|
+
toJSON(_) {
|
|
1959
|
+
const obj = {};
|
|
1960
|
+
return obj;
|
|
1961
|
+
},
|
|
1962
|
+
create(base) {
|
|
1963
|
+
return exports.DeactivateMultibeamCtrl.fromPartial(base ?? {});
|
|
1964
|
+
},
|
|
1965
|
+
fromPartial(_) {
|
|
1966
|
+
const message = createBaseDeactivateMultibeamCtrl();
|
|
1967
|
+
return message;
|
|
1968
|
+
},
|
|
1969
|
+
};
|
|
1970
|
+
function createBaseStartDiveCtrl() {
|
|
1971
|
+
return {};
|
|
1972
|
+
}
|
|
1973
|
+
exports.StartDiveCtrl = {
|
|
1974
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
1975
|
+
return writer;
|
|
1976
|
+
},
|
|
1977
|
+
decode(input, length) {
|
|
1978
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1979
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1980
|
+
const message = createBaseStartDiveCtrl();
|
|
1981
|
+
while (reader.pos < end) {
|
|
1982
|
+
const tag = reader.uint32();
|
|
1983
|
+
switch (tag >>> 3) {
|
|
1984
|
+
}
|
|
1985
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1986
|
+
break;
|
|
1987
|
+
}
|
|
1988
|
+
reader.skip(tag & 7);
|
|
1989
|
+
}
|
|
1990
|
+
return message;
|
|
1991
|
+
},
|
|
1992
|
+
fromJSON(_) {
|
|
1993
|
+
return {};
|
|
1994
|
+
},
|
|
1995
|
+
toJSON(_) {
|
|
1996
|
+
const obj = {};
|
|
1997
|
+
return obj;
|
|
1998
|
+
},
|
|
1999
|
+
create(base) {
|
|
2000
|
+
return exports.StartDiveCtrl.fromPartial(base ?? {});
|
|
2001
|
+
},
|
|
2002
|
+
fromPartial(_) {
|
|
2003
|
+
const message = createBaseStartDiveCtrl();
|
|
2004
|
+
return message;
|
|
2005
|
+
},
|
|
2006
|
+
};
|
|
2007
|
+
function createBaseEndDiveCtrl() {
|
|
2008
|
+
return {};
|
|
2009
|
+
}
|
|
2010
|
+
exports.EndDiveCtrl = {
|
|
2011
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
2012
|
+
return writer;
|
|
2013
|
+
},
|
|
2014
|
+
decode(input, length) {
|
|
2015
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2016
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2017
|
+
const message = createBaseEndDiveCtrl();
|
|
2018
|
+
while (reader.pos < end) {
|
|
2019
|
+
const tag = reader.uint32();
|
|
2020
|
+
switch (tag >>> 3) {
|
|
2021
|
+
}
|
|
2022
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2023
|
+
break;
|
|
2024
|
+
}
|
|
2025
|
+
reader.skip(tag & 7);
|
|
2026
|
+
}
|
|
2027
|
+
return message;
|
|
2028
|
+
},
|
|
2029
|
+
fromJSON(_) {
|
|
2030
|
+
return {};
|
|
2031
|
+
},
|
|
2032
|
+
toJSON(_) {
|
|
2033
|
+
const obj = {};
|
|
2034
|
+
return obj;
|
|
2035
|
+
},
|
|
2036
|
+
create(base) {
|
|
2037
|
+
return exports.EndDiveCtrl.fromPartial(base ?? {});
|
|
2038
|
+
},
|
|
2039
|
+
fromPartial(_) {
|
|
2040
|
+
const message = createBaseEndDiveCtrl();
|
|
2041
|
+
return message;
|
|
2042
|
+
},
|
|
2043
|
+
};
|
|
2044
|
+
const gt = (() => {
|
|
2045
|
+
if (typeof globalThis !== "undefined") {
|
|
2046
|
+
return globalThis;
|
|
2047
|
+
}
|
|
2048
|
+
if (typeof self !== "undefined") {
|
|
2049
|
+
return self;
|
|
2050
|
+
}
|
|
2051
|
+
if (typeof window !== "undefined") {
|
|
2052
|
+
return window;
|
|
2053
|
+
}
|
|
2054
|
+
if (typeof global !== "undefined") {
|
|
2055
|
+
return global;
|
|
2056
|
+
}
|
|
2057
|
+
throw "Unable to locate global object";
|
|
2058
|
+
})();
|
|
2059
|
+
function isSet(value) {
|
|
2060
|
+
return value !== null && value !== undefined;
|
|
2061
|
+
}
|