@blueyerobotics/protocol-definitions 3.2.0-68355164 → 3.2.0-725468ab
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/message_formats.d.ts +3 -2
- package/dist/message_formats.js +7 -0
- package/dist/req_rep.d.ts +22 -0
- package/dist/req_rep.js +191 -1
- package/dist/telemetry.d.ts +4 -0
- package/dist/telemetry.js +38 -4
- package/package.json +1 -1
|
@@ -423,6 +423,8 @@ export declare enum GuestPortDeviceID {
|
|
|
423
423
|
GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE = 45,
|
|
424
424
|
/** GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2 - Blueye Multibeam Skid Servo V2. */
|
|
425
425
|
GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2 = 46,
|
|
426
|
+
/** GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT - Cerulean Omniscan 450 Compact. */
|
|
427
|
+
GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT = 47,
|
|
426
428
|
UNRECOGNIZED = -1
|
|
427
429
|
}
|
|
428
430
|
export declare function guestPortDeviceIDFromJSON(object: any): GuestPortDeviceID;
|
|
@@ -1790,8 +1792,7 @@ export interface MultibeamPing {
|
|
|
1790
1792
|
/** Size in bytes of each row in the ping data image. */
|
|
1791
1793
|
step: number;
|
|
1792
1794
|
/**
|
|
1793
|
-
* Bearing angle of each column of the sonar data
|
|
1794
|
-
* (in 100th of a degree, multiply by 0.01 to get a value in degrees).
|
|
1795
|
+
* Bearing angle of each column of the sonar data in degrees.
|
|
1795
1796
|
* The sonar image is not sampled uniformly in the bearing direction.
|
|
1796
1797
|
*/
|
|
1797
1798
|
bearings: number[];
|
package/dist/message_formats.js
CHANGED
|
@@ -1280,6 +1280,8 @@ var GuestPortDeviceID;
|
|
|
1280
1280
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE"] = 45] = "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE";
|
|
1281
1281
|
/** GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2 - Blueye Multibeam Skid Servo V2. */
|
|
1282
1282
|
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2"] = 46] = "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2";
|
|
1283
|
+
/** GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT - Cerulean Omniscan 450 Compact. */
|
|
1284
|
+
GuestPortDeviceID[GuestPortDeviceID["GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT"] = 47] = "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT";
|
|
1283
1285
|
GuestPortDeviceID[GuestPortDeviceID["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1284
1286
|
})(GuestPortDeviceID || (exports.GuestPortDeviceID = GuestPortDeviceID = {}));
|
|
1285
1287
|
function guestPortDeviceIDFromJSON(object) {
|
|
@@ -1425,6 +1427,9 @@ function guestPortDeviceIDFromJSON(object) {
|
|
|
1425
1427
|
case 46:
|
|
1426
1428
|
case "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2":
|
|
1427
1429
|
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2;
|
|
1430
|
+
case 47:
|
|
1431
|
+
case "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT":
|
|
1432
|
+
return GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT;
|
|
1428
1433
|
case -1:
|
|
1429
1434
|
case "UNRECOGNIZED":
|
|
1430
1435
|
default:
|
|
@@ -1527,6 +1532,8 @@ function guestPortDeviceIDToJSON(object) {
|
|
|
1527
1532
|
return "GUEST_PORT_DEVICE_ID_BLUEYE_EXTERNAL_USB_STORAGE";
|
|
1528
1533
|
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2:
|
|
1529
1534
|
return "GUEST_PORT_DEVICE_ID_BLUEYE_MULTIBEAM_SERVO_V2";
|
|
1535
|
+
case GuestPortDeviceID.GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT:
|
|
1536
|
+
return "GUEST_PORT_DEVICE_ID_CERULEAN_OMNISCAN_450_COMPACT";
|
|
1530
1537
|
case GuestPortDeviceID.UNRECOGNIZED:
|
|
1531
1538
|
default:
|
|
1532
1539
|
return "UNRECOGNIZED";
|
package/dist/req_rep.d.ts
CHANGED
|
@@ -209,6 +209,24 @@ export interface FlashEscSettingsRep {
|
|
|
209
209
|
/** If the ESC settings were flashed successfully. */
|
|
210
210
|
success: boolean;
|
|
211
211
|
}
|
|
212
|
+
/** Request to set iperf task status. */
|
|
213
|
+
export interface SetIperfStatusReq {
|
|
214
|
+
/** If background iperf task should be enabled or disabled. */
|
|
215
|
+
enabled: boolean;
|
|
216
|
+
}
|
|
217
|
+
/** Response after setting iperf status. */
|
|
218
|
+
export interface SetIperfStatusRep {
|
|
219
|
+
/** If background iperf task is enabled or disabled. */
|
|
220
|
+
enabled: boolean;
|
|
221
|
+
}
|
|
222
|
+
/** Request to get current iperf task status. */
|
|
223
|
+
export interface GetIperfStatusReq {
|
|
224
|
+
}
|
|
225
|
+
/** Response with current iperf status. */
|
|
226
|
+
export interface GetIperfStatusRep {
|
|
227
|
+
/** If background iperf task is enabled or disabled. */
|
|
228
|
+
enabled: boolean;
|
|
229
|
+
}
|
|
212
230
|
export declare const SetOverlayParametersReq: MessageFns<SetOverlayParametersReq>;
|
|
213
231
|
export declare const SetOverlayParametersRep: MessageFns<SetOverlayParametersRep>;
|
|
214
232
|
export declare const GetOverlayParametersReq: MessageFns<GetOverlayParametersReq>;
|
|
@@ -247,6 +265,10 @@ export declare const GetPersistentStorageSettingsReq: MessageFns<GetPersistentSt
|
|
|
247
265
|
export declare const GetPersistentStorageSettingsRep: MessageFns<GetPersistentStorageSettingsRep>;
|
|
248
266
|
export declare const FlashEscSettingsReq: MessageFns<FlashEscSettingsReq>;
|
|
249
267
|
export declare const FlashEscSettingsRep: MessageFns<FlashEscSettingsRep>;
|
|
268
|
+
export declare const SetIperfStatusReq: MessageFns<SetIperfStatusReq>;
|
|
269
|
+
export declare const SetIperfStatusRep: MessageFns<SetIperfStatusRep>;
|
|
270
|
+
export declare const GetIperfStatusReq: MessageFns<GetIperfStatusReq>;
|
|
271
|
+
export declare const GetIperfStatusRep: MessageFns<GetIperfStatusRep>;
|
|
250
272
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
251
273
|
type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
252
274
|
[K in keyof T]?: DeepPartial<T[K]>;
|
package/dist/req_rep.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: req_rep.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.FlashEscSettingsRep = exports.FlashEscSettingsReq = exports.GetPersistentStorageSettingsRep = exports.GetPersistentStorageSettingsReq = exports.SetPersistentStorageSettingsRep = exports.SetPersistentStorageSettingsReq = exports.GetTelemetryRep = exports.GetTelemetryReq = exports.SetPubFrequencyRep = exports.SetPubFrequencyReq = exports.SetHeadingModeRep = exports.SetHeadingModeReq = exports.SetInstructionUpdateRep = exports.SetInstructionUpdateReq = exports.GetMissionRep = exports.GetMissionReq = exports.SetMissionRep = exports.SetMissionReq = exports.GetBatteryRep = exports.GetBatteryReq = exports.DisconnectClientRep = exports.DisconnectClientReq = exports.ConnectClientRep = exports.ConnectClientReq = exports.SetThicknessGaugeParametersRep = exports.SetThicknessGaugeParametersReq = exports.PingRep = exports.PingReq = exports.SyncTimeRep = exports.SyncTimeReq = exports.GetCameraParametersRep = exports.GetCameraParametersReq = exports.SetCameraParametersRep = exports.SetCameraParametersReq = exports.GetOverlayParametersRep = exports.GetOverlayParametersReq = exports.SetOverlayParametersRep = exports.SetOverlayParametersReq = void 0;
|
|
8
|
+
exports.GetIperfStatusRep = exports.GetIperfStatusReq = exports.SetIperfStatusRep = exports.SetIperfStatusReq = exports.FlashEscSettingsRep = exports.FlashEscSettingsReq = exports.GetPersistentStorageSettingsRep = exports.GetPersistentStorageSettingsReq = exports.SetPersistentStorageSettingsRep = exports.SetPersistentStorageSettingsReq = exports.GetTelemetryRep = exports.GetTelemetryReq = exports.SetPubFrequencyRep = exports.SetPubFrequencyReq = exports.SetHeadingModeRep = exports.SetHeadingModeReq = exports.SetInstructionUpdateRep = exports.SetInstructionUpdateReq = exports.GetMissionRep = exports.GetMissionReq = exports.SetMissionRep = exports.SetMissionReq = exports.GetBatteryRep = exports.GetBatteryReq = exports.DisconnectClientRep = exports.DisconnectClientReq = exports.ConnectClientRep = exports.ConnectClientReq = exports.SetThicknessGaugeParametersRep = exports.SetThicknessGaugeParametersReq = exports.PingRep = exports.PingReq = exports.SyncTimeRep = exports.SyncTimeReq = exports.GetCameraParametersRep = exports.GetCameraParametersReq = exports.SetCameraParametersRep = exports.SetCameraParametersReq = exports.GetOverlayParametersRep = exports.GetOverlayParametersReq = exports.SetOverlayParametersRep = exports.SetOverlayParametersReq = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const any_1 = require("./google/protobuf/any");
|
|
@@ -1899,6 +1899,196 @@ exports.FlashEscSettingsRep = {
|
|
|
1899
1899
|
return message;
|
|
1900
1900
|
},
|
|
1901
1901
|
};
|
|
1902
|
+
function createBaseSetIperfStatusReq() {
|
|
1903
|
+
return { enabled: false };
|
|
1904
|
+
}
|
|
1905
|
+
exports.SetIperfStatusReq = {
|
|
1906
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1907
|
+
if (message.enabled !== false) {
|
|
1908
|
+
writer.uint32(8).bool(message.enabled);
|
|
1909
|
+
}
|
|
1910
|
+
return writer;
|
|
1911
|
+
},
|
|
1912
|
+
decode(input, length) {
|
|
1913
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1914
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1915
|
+
const message = createBaseSetIperfStatusReq();
|
|
1916
|
+
while (reader.pos < end) {
|
|
1917
|
+
const tag = reader.uint32();
|
|
1918
|
+
switch (tag >>> 3) {
|
|
1919
|
+
case 1: {
|
|
1920
|
+
if (tag !== 8) {
|
|
1921
|
+
break;
|
|
1922
|
+
}
|
|
1923
|
+
message.enabled = reader.bool();
|
|
1924
|
+
continue;
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1928
|
+
break;
|
|
1929
|
+
}
|
|
1930
|
+
reader.skip(tag & 7);
|
|
1931
|
+
}
|
|
1932
|
+
return message;
|
|
1933
|
+
},
|
|
1934
|
+
fromJSON(object) {
|
|
1935
|
+
return { enabled: isSet(object.enabled) ? gt.Boolean(object.enabled) : false };
|
|
1936
|
+
},
|
|
1937
|
+
toJSON(message) {
|
|
1938
|
+
const obj = {};
|
|
1939
|
+
if (message.enabled !== false) {
|
|
1940
|
+
obj.enabled = message.enabled;
|
|
1941
|
+
}
|
|
1942
|
+
return obj;
|
|
1943
|
+
},
|
|
1944
|
+
create(base) {
|
|
1945
|
+
return exports.SetIperfStatusReq.fromPartial(base ?? {});
|
|
1946
|
+
},
|
|
1947
|
+
fromPartial(object) {
|
|
1948
|
+
const message = createBaseSetIperfStatusReq();
|
|
1949
|
+
message.enabled = object.enabled ?? false;
|
|
1950
|
+
return message;
|
|
1951
|
+
},
|
|
1952
|
+
};
|
|
1953
|
+
function createBaseSetIperfStatusRep() {
|
|
1954
|
+
return { enabled: false };
|
|
1955
|
+
}
|
|
1956
|
+
exports.SetIperfStatusRep = {
|
|
1957
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1958
|
+
if (message.enabled !== false) {
|
|
1959
|
+
writer.uint32(8).bool(message.enabled);
|
|
1960
|
+
}
|
|
1961
|
+
return writer;
|
|
1962
|
+
},
|
|
1963
|
+
decode(input, length) {
|
|
1964
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1965
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1966
|
+
const message = createBaseSetIperfStatusRep();
|
|
1967
|
+
while (reader.pos < end) {
|
|
1968
|
+
const tag = reader.uint32();
|
|
1969
|
+
switch (tag >>> 3) {
|
|
1970
|
+
case 1: {
|
|
1971
|
+
if (tag !== 8) {
|
|
1972
|
+
break;
|
|
1973
|
+
}
|
|
1974
|
+
message.enabled = reader.bool();
|
|
1975
|
+
continue;
|
|
1976
|
+
}
|
|
1977
|
+
}
|
|
1978
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1979
|
+
break;
|
|
1980
|
+
}
|
|
1981
|
+
reader.skip(tag & 7);
|
|
1982
|
+
}
|
|
1983
|
+
return message;
|
|
1984
|
+
},
|
|
1985
|
+
fromJSON(object) {
|
|
1986
|
+
return { enabled: isSet(object.enabled) ? gt.Boolean(object.enabled) : false };
|
|
1987
|
+
},
|
|
1988
|
+
toJSON(message) {
|
|
1989
|
+
const obj = {};
|
|
1990
|
+
if (message.enabled !== false) {
|
|
1991
|
+
obj.enabled = message.enabled;
|
|
1992
|
+
}
|
|
1993
|
+
return obj;
|
|
1994
|
+
},
|
|
1995
|
+
create(base) {
|
|
1996
|
+
return exports.SetIperfStatusRep.fromPartial(base ?? {});
|
|
1997
|
+
},
|
|
1998
|
+
fromPartial(object) {
|
|
1999
|
+
const message = createBaseSetIperfStatusRep();
|
|
2000
|
+
message.enabled = object.enabled ?? false;
|
|
2001
|
+
return message;
|
|
2002
|
+
},
|
|
2003
|
+
};
|
|
2004
|
+
function createBaseGetIperfStatusReq() {
|
|
2005
|
+
return {};
|
|
2006
|
+
}
|
|
2007
|
+
exports.GetIperfStatusReq = {
|
|
2008
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
2009
|
+
return writer;
|
|
2010
|
+
},
|
|
2011
|
+
decode(input, length) {
|
|
2012
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2013
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2014
|
+
const message = createBaseGetIperfStatusReq();
|
|
2015
|
+
while (reader.pos < end) {
|
|
2016
|
+
const tag = reader.uint32();
|
|
2017
|
+
switch (tag >>> 3) {
|
|
2018
|
+
}
|
|
2019
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2020
|
+
break;
|
|
2021
|
+
}
|
|
2022
|
+
reader.skip(tag & 7);
|
|
2023
|
+
}
|
|
2024
|
+
return message;
|
|
2025
|
+
},
|
|
2026
|
+
fromJSON(_) {
|
|
2027
|
+
return {};
|
|
2028
|
+
},
|
|
2029
|
+
toJSON(_) {
|
|
2030
|
+
const obj = {};
|
|
2031
|
+
return obj;
|
|
2032
|
+
},
|
|
2033
|
+
create(base) {
|
|
2034
|
+
return exports.GetIperfStatusReq.fromPartial(base ?? {});
|
|
2035
|
+
},
|
|
2036
|
+
fromPartial(_) {
|
|
2037
|
+
const message = createBaseGetIperfStatusReq();
|
|
2038
|
+
return message;
|
|
2039
|
+
},
|
|
2040
|
+
};
|
|
2041
|
+
function createBaseGetIperfStatusRep() {
|
|
2042
|
+
return { enabled: false };
|
|
2043
|
+
}
|
|
2044
|
+
exports.GetIperfStatusRep = {
|
|
2045
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2046
|
+
if (message.enabled !== false) {
|
|
2047
|
+
writer.uint32(8).bool(message.enabled);
|
|
2048
|
+
}
|
|
2049
|
+
return writer;
|
|
2050
|
+
},
|
|
2051
|
+
decode(input, length) {
|
|
2052
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2053
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2054
|
+
const message = createBaseGetIperfStatusRep();
|
|
2055
|
+
while (reader.pos < end) {
|
|
2056
|
+
const tag = reader.uint32();
|
|
2057
|
+
switch (tag >>> 3) {
|
|
2058
|
+
case 1: {
|
|
2059
|
+
if (tag !== 8) {
|
|
2060
|
+
break;
|
|
2061
|
+
}
|
|
2062
|
+
message.enabled = reader.bool();
|
|
2063
|
+
continue;
|
|
2064
|
+
}
|
|
2065
|
+
}
|
|
2066
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2067
|
+
break;
|
|
2068
|
+
}
|
|
2069
|
+
reader.skip(tag & 7);
|
|
2070
|
+
}
|
|
2071
|
+
return message;
|
|
2072
|
+
},
|
|
2073
|
+
fromJSON(object) {
|
|
2074
|
+
return { enabled: isSet(object.enabled) ? gt.Boolean(object.enabled) : false };
|
|
2075
|
+
},
|
|
2076
|
+
toJSON(message) {
|
|
2077
|
+
const obj = {};
|
|
2078
|
+
if (message.enabled !== false) {
|
|
2079
|
+
obj.enabled = message.enabled;
|
|
2080
|
+
}
|
|
2081
|
+
return obj;
|
|
2082
|
+
},
|
|
2083
|
+
create(base) {
|
|
2084
|
+
return exports.GetIperfStatusRep.fromPartial(base ?? {});
|
|
2085
|
+
},
|
|
2086
|
+
fromPartial(object) {
|
|
2087
|
+
const message = createBaseGetIperfStatusRep();
|
|
2088
|
+
message.enabled = object.enabled ?? false;
|
|
2089
|
+
return message;
|
|
2090
|
+
},
|
|
2091
|
+
};
|
|
1902
2092
|
const gt = (() => {
|
|
1903
2093
|
if (typeof globalThis !== "undefined") {
|
|
1904
2094
|
return globalThis;
|
package/dist/telemetry.d.ts
CHANGED
|
@@ -240,11 +240,15 @@ export interface ConnectedClientsTel {
|
|
|
240
240
|
export interface GenericServoTel {
|
|
241
241
|
/** Servo state. */
|
|
242
242
|
servo: GenericServo | undefined;
|
|
243
|
+
/** Servo set point (0..1). */
|
|
244
|
+
setPoint: number;
|
|
243
245
|
}
|
|
244
246
|
/** State of the servo installed in the multibeam. */
|
|
245
247
|
export interface MultibeamServoTel {
|
|
246
248
|
/** Multibeam servo state. */
|
|
247
249
|
servo: MultibeamServo | undefined;
|
|
250
|
+
/** Servo set point (-30..30). */
|
|
251
|
+
setPoint: number;
|
|
248
252
|
}
|
|
249
253
|
/** GuestPort current readings. */
|
|
250
254
|
export interface GuestPortCurrentTel {
|
package/dist/telemetry.js
CHANGED
|
@@ -2418,13 +2418,16 @@ exports.ConnectedClientsTel = {
|
|
|
2418
2418
|
},
|
|
2419
2419
|
};
|
|
2420
2420
|
function createBaseGenericServoTel() {
|
|
2421
|
-
return { servo: undefined };
|
|
2421
|
+
return { servo: undefined, setPoint: 0 };
|
|
2422
2422
|
}
|
|
2423
2423
|
exports.GenericServoTel = {
|
|
2424
2424
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2425
2425
|
if (message.servo !== undefined) {
|
|
2426
2426
|
message_formats_1.GenericServo.encode(message.servo, writer.uint32(10).fork()).join();
|
|
2427
2427
|
}
|
|
2428
|
+
if (message.setPoint !== 0) {
|
|
2429
|
+
writer.uint32(21).float(message.setPoint);
|
|
2430
|
+
}
|
|
2428
2431
|
return writer;
|
|
2429
2432
|
},
|
|
2430
2433
|
decode(input, length) {
|
|
@@ -2441,6 +2444,13 @@ exports.GenericServoTel = {
|
|
|
2441
2444
|
message.servo = message_formats_1.GenericServo.decode(reader, reader.uint32());
|
|
2442
2445
|
continue;
|
|
2443
2446
|
}
|
|
2447
|
+
case 2: {
|
|
2448
|
+
if (tag !== 21) {
|
|
2449
|
+
break;
|
|
2450
|
+
}
|
|
2451
|
+
message.setPoint = reader.float();
|
|
2452
|
+
continue;
|
|
2453
|
+
}
|
|
2444
2454
|
}
|
|
2445
2455
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2446
2456
|
break;
|
|
@@ -2450,13 +2460,19 @@ exports.GenericServoTel = {
|
|
|
2450
2460
|
return message;
|
|
2451
2461
|
},
|
|
2452
2462
|
fromJSON(object) {
|
|
2453
|
-
return {
|
|
2463
|
+
return {
|
|
2464
|
+
servo: isSet(object.servo) ? message_formats_1.GenericServo.fromJSON(object.servo) : undefined,
|
|
2465
|
+
setPoint: isSet(object.setPoint) ? gt.Number(object.setPoint) : 0,
|
|
2466
|
+
};
|
|
2454
2467
|
},
|
|
2455
2468
|
toJSON(message) {
|
|
2456
2469
|
const obj = {};
|
|
2457
2470
|
if (message.servo !== undefined) {
|
|
2458
2471
|
obj.servo = message_formats_1.GenericServo.toJSON(message.servo);
|
|
2459
2472
|
}
|
|
2473
|
+
if (message.setPoint !== 0) {
|
|
2474
|
+
obj.setPoint = message.setPoint;
|
|
2475
|
+
}
|
|
2460
2476
|
return obj;
|
|
2461
2477
|
},
|
|
2462
2478
|
create(base) {
|
|
@@ -2467,17 +2483,21 @@ exports.GenericServoTel = {
|
|
|
2467
2483
|
message.servo = (object.servo !== undefined && object.servo !== null)
|
|
2468
2484
|
? message_formats_1.GenericServo.fromPartial(object.servo)
|
|
2469
2485
|
: undefined;
|
|
2486
|
+
message.setPoint = object.setPoint ?? 0;
|
|
2470
2487
|
return message;
|
|
2471
2488
|
},
|
|
2472
2489
|
};
|
|
2473
2490
|
function createBaseMultibeamServoTel() {
|
|
2474
|
-
return { servo: undefined };
|
|
2491
|
+
return { servo: undefined, setPoint: 0 };
|
|
2475
2492
|
}
|
|
2476
2493
|
exports.MultibeamServoTel = {
|
|
2477
2494
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2478
2495
|
if (message.servo !== undefined) {
|
|
2479
2496
|
message_formats_1.MultibeamServo.encode(message.servo, writer.uint32(10).fork()).join();
|
|
2480
2497
|
}
|
|
2498
|
+
if (message.setPoint !== 0) {
|
|
2499
|
+
writer.uint32(21).float(message.setPoint);
|
|
2500
|
+
}
|
|
2481
2501
|
return writer;
|
|
2482
2502
|
},
|
|
2483
2503
|
decode(input, length) {
|
|
@@ -2494,6 +2514,13 @@ exports.MultibeamServoTel = {
|
|
|
2494
2514
|
message.servo = message_formats_1.MultibeamServo.decode(reader, reader.uint32());
|
|
2495
2515
|
continue;
|
|
2496
2516
|
}
|
|
2517
|
+
case 2: {
|
|
2518
|
+
if (tag !== 21) {
|
|
2519
|
+
break;
|
|
2520
|
+
}
|
|
2521
|
+
message.setPoint = reader.float();
|
|
2522
|
+
continue;
|
|
2523
|
+
}
|
|
2497
2524
|
}
|
|
2498
2525
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2499
2526
|
break;
|
|
@@ -2503,13 +2530,19 @@ exports.MultibeamServoTel = {
|
|
|
2503
2530
|
return message;
|
|
2504
2531
|
},
|
|
2505
2532
|
fromJSON(object) {
|
|
2506
|
-
return {
|
|
2533
|
+
return {
|
|
2534
|
+
servo: isSet(object.servo) ? message_formats_1.MultibeamServo.fromJSON(object.servo) : undefined,
|
|
2535
|
+
setPoint: isSet(object.setPoint) ? gt.Number(object.setPoint) : 0,
|
|
2536
|
+
};
|
|
2507
2537
|
},
|
|
2508
2538
|
toJSON(message) {
|
|
2509
2539
|
const obj = {};
|
|
2510
2540
|
if (message.servo !== undefined) {
|
|
2511
2541
|
obj.servo = message_formats_1.MultibeamServo.toJSON(message.servo);
|
|
2512
2542
|
}
|
|
2543
|
+
if (message.setPoint !== 0) {
|
|
2544
|
+
obj.setPoint = message.setPoint;
|
|
2545
|
+
}
|
|
2513
2546
|
return obj;
|
|
2514
2547
|
},
|
|
2515
2548
|
create(base) {
|
|
@@ -2520,6 +2553,7 @@ exports.MultibeamServoTel = {
|
|
|
2520
2553
|
message.servo = (object.servo !== undefined && object.servo !== null)
|
|
2521
2554
|
? message_formats_1.MultibeamServo.fromPartial(object.servo)
|
|
2522
2555
|
: undefined;
|
|
2556
|
+
message.setPoint = object.setPoint ?? 0;
|
|
2523
2557
|
return message;
|
|
2524
2558
|
},
|
|
2525
2559
|
};
|