@blueyerobotics/protocol-definitions 3.3.0-64187c7a → 3.3.0-8c916b96
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 +144 -0
- package/dist/message_formats.js +1096 -108
- package/dist/req_rep.d.ts +21 -1
- package/dist/req_rep.js +181 -0
- package/dist/telemetry.d.ts +13 -1
- package/dist/telemetry.js +108 -2
- package/package.json +1 -1
package/dist/message_formats.js
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: message_formats.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.Annotation = exports.SotState = exports.OperatorInfo = exports.CameraPanTiltZoom = exports.FilterMessage = exports.ModelDetections = exports.ObjectDetection = exports.SegmentationMask = void 0;
|
|
8
|
+
exports.Lights = exports.MotionInput = exports.KernelLogEntry_KeyValuePair = exports.KernelLogEntry = exports.LogEntry = exports.BinlogRecord = exports.SotState_State = exports.SurfaceUnitBatteryInfo_ChargeStatus = exports.MultibeamConfig_MaximumNumberOfBeams = exports.MultibeamConfig_PingRate = exports.CvModelInfo_State = exports.CvModelInfo_ModelType = exports.CalibrationState_Status = exports.RemovableStorageDevice_Status = exports.BatteryBQ40Z50_BatteryStatus_BatteryError = exports.PingerConfiguration_MountingDirection = exports.KernelLogEntry_KernelLogLevel = exports.LogEntry_LogLevel = exports.AnnotationSource = exports.ThermalZoneId = exports.MultibeamFrequencyMode = exports.GuestPortError = exports.GuestPortDetachStatus = exports.GnssConstellation = exports.GnssFixMode = exports.NavigationSensorID = exports.GuestPortCapability = exports.GuestPortNumber = exports.GuestPortDeviceID = exports.FontSize = exports.ThicknessUnit = exports.DepthUnit = exports.LogoType = exports.TemperatureUnit = exports.RecordingCodec = exports.StreamingProtocol = exports.Camera = exports.Framerate = exports.Resolution = exports.PowerSource = exports.PressureSensorType = exports.Model = exports.StorageLocation = exports.NotificationLevel = exports.NotificationType = exports.ResetCoordinateSource = exports.HeadingMode = exports.HeadingSource = exports.LocationSource = exports.IntervalType = void 0;
|
|
9
|
+
exports.Depth = exports.DvlVelocity = exports.DvlTransducer = exports.ResetPositionSettings = exports.PositionEstimate = exports.ForwardDistance = exports.Altitude = exports.MagneticDeclination = exports.Attitude = exports.BatteryBQ40Z50_BatteryChargingEvents = exports.BatteryBQ40Z50_BatterySafetyEvents = exports.BatteryBQ40Z50_BatteryLifetimes_CellVoltages = exports.BatteryBQ40Z50_BatteryLifetimes = exports.BatteryBQ40Z50_BatteryStatus = exports.BatteryBQ40Z50_Temperature = exports.BatteryBQ40Z50_Voltage = exports.BatteryBQ40Z50 = exports.Battery = exports.PowerCanister_Sensors = exports.PowerCanister = exports.CanisterHumidity = exports.CanisterTemperature = exports.CPUTemperature = exports.WaterTemperature = exports.PingerConfiguration = exports.WaterDensity = exports.TimeLapseState = exports.RecordState = exports.ConnectedClient = exports.ClientInfo = exports.GripperVelocities = exports.SystemTime = exports.TiltStabilizationState = exports.ControlMode = exports.VisionTrackingState = exports.OrbitState = exports.ActiveTrackState = exports.SpotlightState = exports.AutoPilotHeaveState = exports.AutoPilotSurgeYawState = exports.WeatherVaningState = exports.StationKeepingState = exports.AutoAltitudeState = exports.AutoDepthState = exports.AutoHeadingState = exports.ConnectionDuration = exports.LatLongPosition = exports.LaserDetection = exports.Point2D = exports.Laser = void 0;
|
|
10
|
+
exports.MemoryInfo = exports.DlaInfo = exports.GpuInfo = exports.CpuCoreLoad = exports.CPUInfo = exports.PersistentStorageSettings = exports.MutltibeamRecordingIndex = exports.MultibeamFrameOffset = exports.MultibeamErrorFlags = exports.MultibeamColorFilter = exports.MultibeamDiscovery = exports.MultibeamConfig = exports.MultibeamPing = exports.MedusaSpectrometerData = exports.Imu = exports.Vector3 = exports.GuestPortCurrent = exports.MultibeamServo = exports.GenericServo = exports.CpProbe = exports.ThicknessGauge = exports.GuestPortRestartInfo = exports.GuestPortInfo = exports.GuestPortConnectorInfo = exports.GuestPortDeviceList = exports.GuestPortDevice = exports.GnssStatus = exports.GnssSatellite = exports.NavigationSensorStatus = exports.OverlayParameters = exports.CameraParameters = exports.ErrorFlags = exports.DroneInfo = exports.CameraCalibration = exports.CvModelInfo = exports.TiltVelocity = exports.TiltAngle = exports.NStreamers = exports.IperfStatus = exports.CalibrationState = exports.RemovableStorageErrorFlags = exports.RemovableStorageDevice = exports.StoragePartition = exports.StorageSpace = exports.RecordOn = exports.DiveTime = exports.ControllerHealth = exports.ControlForce = exports.Notification = exports.Reference = void 0;
|
|
11
|
+
exports.Annotation = exports.SotState = exports.OperatorInfo = exports.CameraPanTiltZoom = exports.FilterMessage = exports.ModelDetections = exports.ObjectDetection = exports.SegmentationMask = exports.BoundingBox = exports.SurfaceUnitVersionInfo = exports.SurfaceUnitBatteryInfo = exports.SystemPerformanceInfo = exports.NvmeInfo = exports.VideoCodecInfo = exports.ThermalZone = void 0;
|
|
12
12
|
exports.intervalTypeFromJSON = intervalTypeFromJSON;
|
|
13
13
|
exports.intervalTypeToJSON = intervalTypeToJSON;
|
|
14
14
|
exports.locationSourceFromJSON = locationSourceFromJSON;
|
|
@@ -59,6 +59,10 @@ exports.guestPortCapabilityFromJSON = guestPortCapabilityFromJSON;
|
|
|
59
59
|
exports.guestPortCapabilityToJSON = guestPortCapabilityToJSON;
|
|
60
60
|
exports.navigationSensorIDFromJSON = navigationSensorIDFromJSON;
|
|
61
61
|
exports.navigationSensorIDToJSON = navigationSensorIDToJSON;
|
|
62
|
+
exports.gnssFixModeFromJSON = gnssFixModeFromJSON;
|
|
63
|
+
exports.gnssFixModeToJSON = gnssFixModeToJSON;
|
|
64
|
+
exports.gnssConstellationFromJSON = gnssConstellationFromJSON;
|
|
65
|
+
exports.gnssConstellationToJSON = gnssConstellationToJSON;
|
|
62
66
|
exports.guestPortDetachStatusFromJSON = guestPortDetachStatusFromJSON;
|
|
63
67
|
exports.guestPortDetachStatusToJSON = guestPortDetachStatusToJSON;
|
|
64
68
|
exports.guestPortErrorFromJSON = guestPortErrorFromJSON;
|
|
@@ -386,6 +390,8 @@ var NotificationType;
|
|
|
386
390
|
NotificationType[NotificationType["NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED"] = 32] = "NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED";
|
|
387
391
|
/** NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED - Video partition not mounted. */
|
|
388
392
|
NotificationType[NotificationType["NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED"] = 33] = "NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED";
|
|
393
|
+
/** NOTIFICATION_TYPE_DVL_PROTOCOL_UNSUPPORTED - DVL firmware speaks a protocol version Blunux does not support. */
|
|
394
|
+
NotificationType[NotificationType["NOTIFICATION_TYPE_DVL_PROTOCOL_UNSUPPORTED"] = 34] = "NOTIFICATION_TYPE_DVL_PROTOCOL_UNSUPPORTED";
|
|
389
395
|
NotificationType[NotificationType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
390
396
|
})(NotificationType || (exports.NotificationType = NotificationType = {}));
|
|
391
397
|
function notificationTypeFromJSON(object) {
|
|
@@ -492,6 +498,9 @@ function notificationTypeFromJSON(object) {
|
|
|
492
498
|
case 33:
|
|
493
499
|
case "NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED":
|
|
494
500
|
return NotificationType.NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED;
|
|
501
|
+
case 34:
|
|
502
|
+
case "NOTIFICATION_TYPE_DVL_PROTOCOL_UNSUPPORTED":
|
|
503
|
+
return NotificationType.NOTIFICATION_TYPE_DVL_PROTOCOL_UNSUPPORTED;
|
|
495
504
|
case -1:
|
|
496
505
|
case "UNRECOGNIZED":
|
|
497
506
|
default:
|
|
@@ -568,6 +577,8 @@ function notificationTypeToJSON(object) {
|
|
|
568
577
|
return "NOTIFICATION_TYPE_DVL_THERMAL_PROTECTION_MODE_DETECTED";
|
|
569
578
|
case NotificationType.NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED:
|
|
570
579
|
return "NOTIFICATION_TYPE_VIDEO_PARTITION_NOT_MOUNTED";
|
|
580
|
+
case NotificationType.NOTIFICATION_TYPE_DVL_PROTOCOL_UNSUPPORTED:
|
|
581
|
+
return "NOTIFICATION_TYPE_DVL_PROTOCOL_UNSUPPORTED";
|
|
571
582
|
case NotificationType.UNRECOGNIZED:
|
|
572
583
|
default:
|
|
573
584
|
return "UNRECOGNIZED";
|
|
@@ -1934,6 +1945,109 @@ function navigationSensorIDToJSON(object) {
|
|
|
1934
1945
|
return "UNRECOGNIZED";
|
|
1935
1946
|
}
|
|
1936
1947
|
}
|
|
1948
|
+
/** Position fix mode reported by the NMEA GSA sentence. */
|
|
1949
|
+
var GnssFixMode;
|
|
1950
|
+
(function (GnssFixMode) {
|
|
1951
|
+
/** GNSS_FIX_MODE_UNSPECIFIED - No GSA sentence has been received. */
|
|
1952
|
+
GnssFixMode[GnssFixMode["GNSS_FIX_MODE_UNSPECIFIED"] = 0] = "GNSS_FIX_MODE_UNSPECIFIED";
|
|
1953
|
+
/** GNSS_FIX_MODE_NO_FIX - The receiver has no position fix. */
|
|
1954
|
+
GnssFixMode[GnssFixMode["GNSS_FIX_MODE_NO_FIX"] = 1] = "GNSS_FIX_MODE_NO_FIX";
|
|
1955
|
+
/** GNSS_FIX_MODE_2D - Horizontal fix only, no usable altitude. */
|
|
1956
|
+
GnssFixMode[GnssFixMode["GNSS_FIX_MODE_2D"] = 2] = "GNSS_FIX_MODE_2D";
|
|
1957
|
+
/** GNSS_FIX_MODE_3D - Full three dimensional fix. */
|
|
1958
|
+
GnssFixMode[GnssFixMode["GNSS_FIX_MODE_3D"] = 3] = "GNSS_FIX_MODE_3D";
|
|
1959
|
+
GnssFixMode[GnssFixMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1960
|
+
})(GnssFixMode || (exports.GnssFixMode = GnssFixMode = {}));
|
|
1961
|
+
function gnssFixModeFromJSON(object) {
|
|
1962
|
+
switch (object) {
|
|
1963
|
+
case 0:
|
|
1964
|
+
case "GNSS_FIX_MODE_UNSPECIFIED":
|
|
1965
|
+
return GnssFixMode.GNSS_FIX_MODE_UNSPECIFIED;
|
|
1966
|
+
case 1:
|
|
1967
|
+
case "GNSS_FIX_MODE_NO_FIX":
|
|
1968
|
+
return GnssFixMode.GNSS_FIX_MODE_NO_FIX;
|
|
1969
|
+
case 2:
|
|
1970
|
+
case "GNSS_FIX_MODE_2D":
|
|
1971
|
+
return GnssFixMode.GNSS_FIX_MODE_2D;
|
|
1972
|
+
case 3:
|
|
1973
|
+
case "GNSS_FIX_MODE_3D":
|
|
1974
|
+
return GnssFixMode.GNSS_FIX_MODE_3D;
|
|
1975
|
+
case -1:
|
|
1976
|
+
case "UNRECOGNIZED":
|
|
1977
|
+
default:
|
|
1978
|
+
return GnssFixMode.UNRECOGNIZED;
|
|
1979
|
+
}
|
|
1980
|
+
}
|
|
1981
|
+
function gnssFixModeToJSON(object) {
|
|
1982
|
+
switch (object) {
|
|
1983
|
+
case GnssFixMode.GNSS_FIX_MODE_UNSPECIFIED:
|
|
1984
|
+
return "GNSS_FIX_MODE_UNSPECIFIED";
|
|
1985
|
+
case GnssFixMode.GNSS_FIX_MODE_NO_FIX:
|
|
1986
|
+
return "GNSS_FIX_MODE_NO_FIX";
|
|
1987
|
+
case GnssFixMode.GNSS_FIX_MODE_2D:
|
|
1988
|
+
return "GNSS_FIX_MODE_2D";
|
|
1989
|
+
case GnssFixMode.GNSS_FIX_MODE_3D:
|
|
1990
|
+
return "GNSS_FIX_MODE_3D";
|
|
1991
|
+
case GnssFixMode.UNRECOGNIZED:
|
|
1992
|
+
default:
|
|
1993
|
+
return "UNRECOGNIZED";
|
|
1994
|
+
}
|
|
1995
|
+
}
|
|
1996
|
+
/** GNSS constellation a satellite belongs to. */
|
|
1997
|
+
var GnssConstellation;
|
|
1998
|
+
(function (GnssConstellation) {
|
|
1999
|
+
/** GNSS_CONSTELLATION_UNSPECIFIED - Unspecified. */
|
|
2000
|
+
GnssConstellation[GnssConstellation["GNSS_CONSTELLATION_UNSPECIFIED"] = 0] = "GNSS_CONSTELLATION_UNSPECIFIED";
|
|
2001
|
+
/** GNSS_CONSTELLATION_GPS - GPS. */
|
|
2002
|
+
GnssConstellation[GnssConstellation["GNSS_CONSTELLATION_GPS"] = 1] = "GNSS_CONSTELLATION_GPS";
|
|
2003
|
+
/** GNSS_CONSTELLATION_GLONASS - GLONASS. */
|
|
2004
|
+
GnssConstellation[GnssConstellation["GNSS_CONSTELLATION_GLONASS"] = 2] = "GNSS_CONSTELLATION_GLONASS";
|
|
2005
|
+
/** GNSS_CONSTELLATION_GALILEO - Galileo. */
|
|
2006
|
+
GnssConstellation[GnssConstellation["GNSS_CONSTELLATION_GALILEO"] = 3] = "GNSS_CONSTELLATION_GALILEO";
|
|
2007
|
+
/** GNSS_CONSTELLATION_BEIDOU - BeiDou. */
|
|
2008
|
+
GnssConstellation[GnssConstellation["GNSS_CONSTELLATION_BEIDOU"] = 4] = "GNSS_CONSTELLATION_BEIDOU";
|
|
2009
|
+
GnssConstellation[GnssConstellation["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
2010
|
+
})(GnssConstellation || (exports.GnssConstellation = GnssConstellation = {}));
|
|
2011
|
+
function gnssConstellationFromJSON(object) {
|
|
2012
|
+
switch (object) {
|
|
2013
|
+
case 0:
|
|
2014
|
+
case "GNSS_CONSTELLATION_UNSPECIFIED":
|
|
2015
|
+
return GnssConstellation.GNSS_CONSTELLATION_UNSPECIFIED;
|
|
2016
|
+
case 1:
|
|
2017
|
+
case "GNSS_CONSTELLATION_GPS":
|
|
2018
|
+
return GnssConstellation.GNSS_CONSTELLATION_GPS;
|
|
2019
|
+
case 2:
|
|
2020
|
+
case "GNSS_CONSTELLATION_GLONASS":
|
|
2021
|
+
return GnssConstellation.GNSS_CONSTELLATION_GLONASS;
|
|
2022
|
+
case 3:
|
|
2023
|
+
case "GNSS_CONSTELLATION_GALILEO":
|
|
2024
|
+
return GnssConstellation.GNSS_CONSTELLATION_GALILEO;
|
|
2025
|
+
case 4:
|
|
2026
|
+
case "GNSS_CONSTELLATION_BEIDOU":
|
|
2027
|
+
return GnssConstellation.GNSS_CONSTELLATION_BEIDOU;
|
|
2028
|
+
case -1:
|
|
2029
|
+
case "UNRECOGNIZED":
|
|
2030
|
+
default:
|
|
2031
|
+
return GnssConstellation.UNRECOGNIZED;
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
function gnssConstellationToJSON(object) {
|
|
2035
|
+
switch (object) {
|
|
2036
|
+
case GnssConstellation.GNSS_CONSTELLATION_UNSPECIFIED:
|
|
2037
|
+
return "GNSS_CONSTELLATION_UNSPECIFIED";
|
|
2038
|
+
case GnssConstellation.GNSS_CONSTELLATION_GPS:
|
|
2039
|
+
return "GNSS_CONSTELLATION_GPS";
|
|
2040
|
+
case GnssConstellation.GNSS_CONSTELLATION_GLONASS:
|
|
2041
|
+
return "GNSS_CONSTELLATION_GLONASS";
|
|
2042
|
+
case GnssConstellation.GNSS_CONSTELLATION_GALILEO:
|
|
2043
|
+
return "GNSS_CONSTELLATION_GALILEO";
|
|
2044
|
+
case GnssConstellation.GNSS_CONSTELLATION_BEIDOU:
|
|
2045
|
+
return "GNSS_CONSTELLATION_BEIDOU";
|
|
2046
|
+
case GnssConstellation.UNRECOGNIZED:
|
|
2047
|
+
default:
|
|
2048
|
+
return "UNRECOGNIZED";
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
1937
2051
|
/** Status for guest port devices that can be attached and detached. */
|
|
1938
2052
|
var GuestPortDetachStatus;
|
|
1939
2053
|
(function (GuestPortDetachStatus) {
|
|
@@ -5781,6 +5895,146 @@ exports.CanisterHumidity = {
|
|
|
5781
5895
|
return message;
|
|
5782
5896
|
},
|
|
5783
5897
|
};
|
|
5898
|
+
function createBasePowerCanister() {
|
|
5899
|
+
return { frontEsc: undefined, rearEsc: undefined };
|
|
5900
|
+
}
|
|
5901
|
+
exports.PowerCanister = {
|
|
5902
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
5903
|
+
if (message.frontEsc !== undefined) {
|
|
5904
|
+
exports.PowerCanister_Sensors.encode(message.frontEsc, writer.uint32(10).fork()).join();
|
|
5905
|
+
}
|
|
5906
|
+
if (message.rearEsc !== undefined) {
|
|
5907
|
+
exports.PowerCanister_Sensors.encode(message.rearEsc, writer.uint32(18).fork()).join();
|
|
5908
|
+
}
|
|
5909
|
+
return writer;
|
|
5910
|
+
},
|
|
5911
|
+
decode(input, length) {
|
|
5912
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
5913
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5914
|
+
const message = createBasePowerCanister();
|
|
5915
|
+
while (reader.pos < end) {
|
|
5916
|
+
const tag = reader.uint32();
|
|
5917
|
+
switch (tag >>> 3) {
|
|
5918
|
+
case 1: {
|
|
5919
|
+
if (tag !== 10) {
|
|
5920
|
+
break;
|
|
5921
|
+
}
|
|
5922
|
+
message.frontEsc = exports.PowerCanister_Sensors.decode(reader, reader.uint32());
|
|
5923
|
+
continue;
|
|
5924
|
+
}
|
|
5925
|
+
case 2: {
|
|
5926
|
+
if (tag !== 18) {
|
|
5927
|
+
break;
|
|
5928
|
+
}
|
|
5929
|
+
message.rearEsc = exports.PowerCanister_Sensors.decode(reader, reader.uint32());
|
|
5930
|
+
continue;
|
|
5931
|
+
}
|
|
5932
|
+
}
|
|
5933
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5934
|
+
break;
|
|
5935
|
+
}
|
|
5936
|
+
reader.skip(tag & 7);
|
|
5937
|
+
}
|
|
5938
|
+
return message;
|
|
5939
|
+
},
|
|
5940
|
+
fromJSON(object) {
|
|
5941
|
+
return {
|
|
5942
|
+
frontEsc: isSet(object.frontEsc) ? exports.PowerCanister_Sensors.fromJSON(object.frontEsc) : undefined,
|
|
5943
|
+
rearEsc: isSet(object.rearEsc) ? exports.PowerCanister_Sensors.fromJSON(object.rearEsc) : undefined,
|
|
5944
|
+
};
|
|
5945
|
+
},
|
|
5946
|
+
toJSON(message) {
|
|
5947
|
+
const obj = {};
|
|
5948
|
+
if (message.frontEsc !== undefined) {
|
|
5949
|
+
obj.frontEsc = exports.PowerCanister_Sensors.toJSON(message.frontEsc);
|
|
5950
|
+
}
|
|
5951
|
+
if (message.rearEsc !== undefined) {
|
|
5952
|
+
obj.rearEsc = exports.PowerCanister_Sensors.toJSON(message.rearEsc);
|
|
5953
|
+
}
|
|
5954
|
+
return obj;
|
|
5955
|
+
},
|
|
5956
|
+
create(base) {
|
|
5957
|
+
return exports.PowerCanister.fromPartial(base ?? {});
|
|
5958
|
+
},
|
|
5959
|
+
fromPartial(object) {
|
|
5960
|
+
const message = createBasePowerCanister();
|
|
5961
|
+
message.frontEsc = (object.frontEsc !== undefined && object.frontEsc !== null)
|
|
5962
|
+
? exports.PowerCanister_Sensors.fromPartial(object.frontEsc)
|
|
5963
|
+
: undefined;
|
|
5964
|
+
message.rearEsc = (object.rearEsc !== undefined && object.rearEsc !== null)
|
|
5965
|
+
? exports.PowerCanister_Sensors.fromPartial(object.rearEsc)
|
|
5966
|
+
: undefined;
|
|
5967
|
+
return message;
|
|
5968
|
+
},
|
|
5969
|
+
};
|
|
5970
|
+
function createBasePowerCanister_Sensors() {
|
|
5971
|
+
return { temperature: 0, humidity: 0 };
|
|
5972
|
+
}
|
|
5973
|
+
exports.PowerCanister_Sensors = {
|
|
5974
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
5975
|
+
if (message.temperature !== 0) {
|
|
5976
|
+
writer.uint32(13).float(message.temperature);
|
|
5977
|
+
}
|
|
5978
|
+
if (message.humidity !== 0) {
|
|
5979
|
+
writer.uint32(21).float(message.humidity);
|
|
5980
|
+
}
|
|
5981
|
+
return writer;
|
|
5982
|
+
},
|
|
5983
|
+
decode(input, length) {
|
|
5984
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
5985
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
5986
|
+
const message = createBasePowerCanister_Sensors();
|
|
5987
|
+
while (reader.pos < end) {
|
|
5988
|
+
const tag = reader.uint32();
|
|
5989
|
+
switch (tag >>> 3) {
|
|
5990
|
+
case 1: {
|
|
5991
|
+
if (tag !== 13) {
|
|
5992
|
+
break;
|
|
5993
|
+
}
|
|
5994
|
+
message.temperature = reader.float();
|
|
5995
|
+
continue;
|
|
5996
|
+
}
|
|
5997
|
+
case 2: {
|
|
5998
|
+
if (tag !== 21) {
|
|
5999
|
+
break;
|
|
6000
|
+
}
|
|
6001
|
+
message.humidity = reader.float();
|
|
6002
|
+
continue;
|
|
6003
|
+
}
|
|
6004
|
+
}
|
|
6005
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
6006
|
+
break;
|
|
6007
|
+
}
|
|
6008
|
+
reader.skip(tag & 7);
|
|
6009
|
+
}
|
|
6010
|
+
return message;
|
|
6011
|
+
},
|
|
6012
|
+
fromJSON(object) {
|
|
6013
|
+
return {
|
|
6014
|
+
temperature: isSet(object.temperature) ? gt.Number(object.temperature) : 0,
|
|
6015
|
+
humidity: isSet(object.humidity) ? gt.Number(object.humidity) : 0,
|
|
6016
|
+
};
|
|
6017
|
+
},
|
|
6018
|
+
toJSON(message) {
|
|
6019
|
+
const obj = {};
|
|
6020
|
+
if (message.temperature !== 0) {
|
|
6021
|
+
obj.temperature = message.temperature;
|
|
6022
|
+
}
|
|
6023
|
+
if (message.humidity !== 0) {
|
|
6024
|
+
obj.humidity = message.humidity;
|
|
6025
|
+
}
|
|
6026
|
+
return obj;
|
|
6027
|
+
},
|
|
6028
|
+
create(base) {
|
|
6029
|
+
return exports.PowerCanister_Sensors.fromPartial(base ?? {});
|
|
6030
|
+
},
|
|
6031
|
+
fromPartial(object) {
|
|
6032
|
+
const message = createBasePowerCanister_Sensors();
|
|
6033
|
+
message.temperature = object.temperature ?? 0;
|
|
6034
|
+
message.humidity = object.humidity ?? 0;
|
|
6035
|
+
return message;
|
|
6036
|
+
},
|
|
6037
|
+
};
|
|
5784
6038
|
function createBaseBattery() {
|
|
5785
6039
|
return { voltage: 0, level: 0, temperature: 0 };
|
|
5786
6040
|
}
|
|
@@ -10742,6 +10996,7 @@ function createBaseErrorFlags() {
|
|
|
10742
10996
|
gp65vCurrent: false,
|
|
10743
10997
|
dvlThermalProtectionMode: false,
|
|
10744
10998
|
dvlNoPower: false,
|
|
10999
|
+
dvlProtocolUnsupported: false,
|
|
10745
11000
|
usbDisconnect: false,
|
|
10746
11001
|
videoUrbError: false,
|
|
10747
11002
|
hardwareNotSupported: false,
|
|
@@ -10989,6 +11244,9 @@ exports.ErrorFlags = {
|
|
|
10989
11244
|
if (message.dvlNoPower !== false) {
|
|
10990
11245
|
writer.uint32(352).bool(message.dvlNoPower);
|
|
10991
11246
|
}
|
|
11247
|
+
if (message.dvlProtocolUnsupported !== false) {
|
|
11248
|
+
writer.uint32(672).bool(message.dvlProtocolUnsupported);
|
|
11249
|
+
}
|
|
10992
11250
|
if (message.usbDisconnect !== false) {
|
|
10993
11251
|
writer.uint32(360).bool(message.usbDisconnect);
|
|
10994
11252
|
}
|
|
@@ -11567,6 +11825,13 @@ exports.ErrorFlags = {
|
|
|
11567
11825
|
message.dvlNoPower = reader.bool();
|
|
11568
11826
|
continue;
|
|
11569
11827
|
}
|
|
11828
|
+
case 84: {
|
|
11829
|
+
if (tag !== 672) {
|
|
11830
|
+
break;
|
|
11831
|
+
}
|
|
11832
|
+
message.dvlProtocolUnsupported = reader.bool();
|
|
11833
|
+
continue;
|
|
11834
|
+
}
|
|
11570
11835
|
case 45: {
|
|
11571
11836
|
if (tag !== 360) {
|
|
11572
11837
|
break;
|
|
@@ -11684,6 +11949,7 @@ exports.ErrorFlags = {
|
|
|
11684
11949
|
? gt.Boolean(object.dvlThermalProtectionMode)
|
|
11685
11950
|
: false,
|
|
11686
11951
|
dvlNoPower: isSet(object.dvlNoPower) ? gt.Boolean(object.dvlNoPower) : false,
|
|
11952
|
+
dvlProtocolUnsupported: isSet(object.dvlProtocolUnsupported) ? gt.Boolean(object.dvlProtocolUnsupported) : false,
|
|
11687
11953
|
usbDisconnect: isSet(object.usbDisconnect) ? gt.Boolean(object.usbDisconnect) : false,
|
|
11688
11954
|
videoUrbError: isSet(object.videoUrbError) ? gt.Boolean(object.videoUrbError) : false,
|
|
11689
11955
|
hardwareNotSupported: isSet(object.hardwareNotSupported) ? gt.Boolean(object.hardwareNotSupported) : false,
|
|
@@ -11931,6 +12197,9 @@ exports.ErrorFlags = {
|
|
|
11931
12197
|
if (message.dvlNoPower !== false) {
|
|
11932
12198
|
obj.dvlNoPower = message.dvlNoPower;
|
|
11933
12199
|
}
|
|
12200
|
+
if (message.dvlProtocolUnsupported !== false) {
|
|
12201
|
+
obj.dvlProtocolUnsupported = message.dvlProtocolUnsupported;
|
|
12202
|
+
}
|
|
11934
12203
|
if (message.usbDisconnect !== false) {
|
|
11935
12204
|
obj.usbDisconnect = message.usbDisconnect;
|
|
11936
12205
|
}
|
|
@@ -12027,6 +12296,7 @@ exports.ErrorFlags = {
|
|
|
12027
12296
|
message.gp65vCurrent = object.gp65vCurrent ?? false;
|
|
12028
12297
|
message.dvlThermalProtectionMode = object.dvlThermalProtectionMode ?? false;
|
|
12029
12298
|
message.dvlNoPower = object.dvlNoPower ?? false;
|
|
12299
|
+
message.dvlProtocolUnsupported = object.dvlProtocolUnsupported ?? false;
|
|
12030
12300
|
message.usbDisconnect = object.usbDisconnect ?? false;
|
|
12031
12301
|
message.videoUrbError = object.videoUrbError ?? false;
|
|
12032
12302
|
message.hardwareNotSupported = object.hardwareNotSupported ?? false;
|
|
@@ -13048,58 +13318,35 @@ exports.NavigationSensorStatus = {
|
|
|
13048
13318
|
return message;
|
|
13049
13319
|
},
|
|
13050
13320
|
};
|
|
13051
|
-
function
|
|
13052
|
-
return {
|
|
13053
|
-
deviceId: 0,
|
|
13054
|
-
manufacturer: "",
|
|
13055
|
-
name: "",
|
|
13056
|
-
serialNumber: "",
|
|
13057
|
-
depthRating: 0,
|
|
13058
|
-
requiredBlunuxVersion: "",
|
|
13059
|
-
detachStatus: 0,
|
|
13060
|
-
requiredCapabilities: [],
|
|
13061
|
-
compatibleGuestPorts: [],
|
|
13062
|
-
};
|
|
13321
|
+
function createBaseGnssSatellite() {
|
|
13322
|
+
return { constellation: 0, satelliteId: 0, snr: 0, elevation: 0, azimuth: 0, usedInFix: false };
|
|
13063
13323
|
}
|
|
13064
|
-
exports.
|
|
13324
|
+
exports.GnssSatellite = {
|
|
13065
13325
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13066
|
-
if (message.
|
|
13067
|
-
writer.uint32(8).int32(message.
|
|
13068
|
-
}
|
|
13069
|
-
if (message.manufacturer !== "") {
|
|
13070
|
-
writer.uint32(18).string(message.manufacturer);
|
|
13071
|
-
}
|
|
13072
|
-
if (message.name !== "") {
|
|
13073
|
-
writer.uint32(26).string(message.name);
|
|
13326
|
+
if (message.constellation !== 0) {
|
|
13327
|
+
writer.uint32(8).int32(message.constellation);
|
|
13074
13328
|
}
|
|
13075
|
-
if (message.
|
|
13076
|
-
writer.uint32(
|
|
13077
|
-
}
|
|
13078
|
-
if (message.depthRating !== 0) {
|
|
13079
|
-
writer.uint32(45).float(message.depthRating);
|
|
13329
|
+
if (message.satelliteId !== 0) {
|
|
13330
|
+
writer.uint32(16).uint32(message.satelliteId);
|
|
13080
13331
|
}
|
|
13081
|
-
if (message.
|
|
13082
|
-
writer.uint32(
|
|
13332
|
+
if (message.snr !== 0) {
|
|
13333
|
+
writer.uint32(24).uint32(message.snr);
|
|
13083
13334
|
}
|
|
13084
|
-
if (message.
|
|
13085
|
-
writer.uint32(
|
|
13335
|
+
if (message.elevation !== 0) {
|
|
13336
|
+
writer.uint32(32).int32(message.elevation);
|
|
13086
13337
|
}
|
|
13087
|
-
|
|
13088
|
-
|
|
13089
|
-
writer.int32(v);
|
|
13338
|
+
if (message.azimuth !== 0) {
|
|
13339
|
+
writer.uint32(40).int32(message.azimuth);
|
|
13090
13340
|
}
|
|
13091
|
-
|
|
13092
|
-
|
|
13093
|
-
for (const v of message.compatibleGuestPorts) {
|
|
13094
|
-
writer.int32(v);
|
|
13341
|
+
if (message.usedInFix !== false) {
|
|
13342
|
+
writer.uint32(48).bool(message.usedInFix);
|
|
13095
13343
|
}
|
|
13096
|
-
writer.join();
|
|
13097
13344
|
return writer;
|
|
13098
13345
|
},
|
|
13099
13346
|
decode(input, length) {
|
|
13100
13347
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13101
13348
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13102
|
-
const message =
|
|
13349
|
+
const message = createBaseGnssSatellite();
|
|
13103
13350
|
while (reader.pos < end) {
|
|
13104
13351
|
const tag = reader.uint32();
|
|
13105
13352
|
switch (tag >>> 3) {
|
|
@@ -13107,79 +13354,44 @@ exports.GuestPortDevice = {
|
|
|
13107
13354
|
if (tag !== 8) {
|
|
13108
13355
|
break;
|
|
13109
13356
|
}
|
|
13110
|
-
message.
|
|
13357
|
+
message.constellation = reader.int32();
|
|
13111
13358
|
continue;
|
|
13112
13359
|
}
|
|
13113
13360
|
case 2: {
|
|
13114
|
-
if (tag !==
|
|
13361
|
+
if (tag !== 16) {
|
|
13115
13362
|
break;
|
|
13116
13363
|
}
|
|
13117
|
-
message.
|
|
13364
|
+
message.satelliteId = reader.uint32();
|
|
13118
13365
|
continue;
|
|
13119
13366
|
}
|
|
13120
13367
|
case 3: {
|
|
13121
|
-
if (tag !==
|
|
13368
|
+
if (tag !== 24) {
|
|
13122
13369
|
break;
|
|
13123
13370
|
}
|
|
13124
|
-
message.
|
|
13371
|
+
message.snr = reader.uint32();
|
|
13125
13372
|
continue;
|
|
13126
13373
|
}
|
|
13127
13374
|
case 4: {
|
|
13128
|
-
if (tag !==
|
|
13375
|
+
if (tag !== 32) {
|
|
13129
13376
|
break;
|
|
13130
13377
|
}
|
|
13131
|
-
message.
|
|
13378
|
+
message.elevation = reader.int32();
|
|
13132
13379
|
continue;
|
|
13133
13380
|
}
|
|
13134
13381
|
case 5: {
|
|
13135
|
-
if (tag !==
|
|
13382
|
+
if (tag !== 40) {
|
|
13136
13383
|
break;
|
|
13137
13384
|
}
|
|
13138
|
-
message.
|
|
13385
|
+
message.azimuth = reader.int32();
|
|
13139
13386
|
continue;
|
|
13140
13387
|
}
|
|
13141
13388
|
case 6: {
|
|
13142
|
-
if (tag !==
|
|
13143
|
-
break;
|
|
13144
|
-
}
|
|
13145
|
-
message.requiredBlunuxVersion = reader.string();
|
|
13146
|
-
continue;
|
|
13147
|
-
}
|
|
13148
|
-
case 7: {
|
|
13149
|
-
if (tag !== 56) {
|
|
13389
|
+
if (tag !== 48) {
|
|
13150
13390
|
break;
|
|
13151
13391
|
}
|
|
13152
|
-
message.
|
|
13392
|
+
message.usedInFix = reader.bool();
|
|
13153
13393
|
continue;
|
|
13154
13394
|
}
|
|
13155
|
-
case 8: {
|
|
13156
|
-
if (tag === 64) {
|
|
13157
|
-
message.requiredCapabilities.push(reader.int32());
|
|
13158
|
-
continue;
|
|
13159
|
-
}
|
|
13160
|
-
if (tag === 66) {
|
|
13161
|
-
const end2 = reader.uint32() + reader.pos;
|
|
13162
|
-
while (reader.pos < end2) {
|
|
13163
|
-
message.requiredCapabilities.push(reader.int32());
|
|
13164
|
-
}
|
|
13165
|
-
continue;
|
|
13166
|
-
}
|
|
13167
|
-
break;
|
|
13168
|
-
}
|
|
13169
|
-
case 9: {
|
|
13170
|
-
if (tag === 72) {
|
|
13171
|
-
message.compatibleGuestPorts.push(reader.int32());
|
|
13172
|
-
continue;
|
|
13173
|
-
}
|
|
13174
|
-
if (tag === 74) {
|
|
13175
|
-
const end2 = reader.uint32() + reader.pos;
|
|
13176
|
-
while (reader.pos < end2) {
|
|
13177
|
-
message.compatibleGuestPorts.push(reader.int32());
|
|
13178
|
-
}
|
|
13179
|
-
continue;
|
|
13180
|
-
}
|
|
13181
|
-
break;
|
|
13182
|
-
}
|
|
13183
13395
|
}
|
|
13184
13396
|
if ((tag & 7) === 4 || tag === 0) {
|
|
13185
13397
|
break;
|
|
@@ -13190,31 +13402,756 @@ exports.GuestPortDevice = {
|
|
|
13190
13402
|
},
|
|
13191
13403
|
fromJSON(object) {
|
|
13192
13404
|
return {
|
|
13193
|
-
|
|
13194
|
-
|
|
13195
|
-
|
|
13196
|
-
|
|
13197
|
-
|
|
13198
|
-
|
|
13199
|
-
detachStatus: isSet(object.detachStatus) ? guestPortDetachStatusFromJSON(object.detachStatus) : 0,
|
|
13200
|
-
requiredCapabilities: gt.Array.isArray(object?.requiredCapabilities)
|
|
13201
|
-
? object.requiredCapabilities.map((e) => guestPortCapabilityFromJSON(e))
|
|
13202
|
-
: [],
|
|
13203
|
-
compatibleGuestPorts: gt.Array.isArray(object?.compatibleGuestPorts)
|
|
13204
|
-
? object.compatibleGuestPorts.map((e) => guestPortNumberFromJSON(e))
|
|
13205
|
-
: [],
|
|
13405
|
+
constellation: isSet(object.constellation) ? gnssConstellationFromJSON(object.constellation) : 0,
|
|
13406
|
+
satelliteId: isSet(object.satelliteId) ? gt.Number(object.satelliteId) : 0,
|
|
13407
|
+
snr: isSet(object.snr) ? gt.Number(object.snr) : 0,
|
|
13408
|
+
elevation: isSet(object.elevation) ? gt.Number(object.elevation) : 0,
|
|
13409
|
+
azimuth: isSet(object.azimuth) ? gt.Number(object.azimuth) : 0,
|
|
13410
|
+
usedInFix: isSet(object.usedInFix) ? gt.Boolean(object.usedInFix) : false,
|
|
13206
13411
|
};
|
|
13207
13412
|
},
|
|
13208
13413
|
toJSON(message) {
|
|
13209
13414
|
const obj = {};
|
|
13210
|
-
if (message.
|
|
13211
|
-
obj.
|
|
13415
|
+
if (message.constellation !== 0) {
|
|
13416
|
+
obj.constellation = gnssConstellationToJSON(message.constellation);
|
|
13212
13417
|
}
|
|
13213
|
-
if (message.
|
|
13214
|
-
obj.
|
|
13418
|
+
if (message.satelliteId !== 0) {
|
|
13419
|
+
obj.satelliteId = Math.round(message.satelliteId);
|
|
13215
13420
|
}
|
|
13216
|
-
if (message.
|
|
13217
|
-
obj.
|
|
13421
|
+
if (message.snr !== 0) {
|
|
13422
|
+
obj.snr = Math.round(message.snr);
|
|
13423
|
+
}
|
|
13424
|
+
if (message.elevation !== 0) {
|
|
13425
|
+
obj.elevation = Math.round(message.elevation);
|
|
13426
|
+
}
|
|
13427
|
+
if (message.azimuth !== 0) {
|
|
13428
|
+
obj.azimuth = Math.round(message.azimuth);
|
|
13429
|
+
}
|
|
13430
|
+
if (message.usedInFix !== false) {
|
|
13431
|
+
obj.usedInFix = message.usedInFix;
|
|
13432
|
+
}
|
|
13433
|
+
return obj;
|
|
13434
|
+
},
|
|
13435
|
+
create(base) {
|
|
13436
|
+
return exports.GnssSatellite.fromPartial(base ?? {});
|
|
13437
|
+
},
|
|
13438
|
+
fromPartial(object) {
|
|
13439
|
+
const message = createBaseGnssSatellite();
|
|
13440
|
+
message.constellation = object.constellation ?? 0;
|
|
13441
|
+
message.satelliteId = object.satelliteId ?? 0;
|
|
13442
|
+
message.snr = object.snr ?? 0;
|
|
13443
|
+
message.elevation = object.elevation ?? 0;
|
|
13444
|
+
message.azimuth = object.azimuth ?? 0;
|
|
13445
|
+
message.usedInFix = object.usedInFix ?? false;
|
|
13446
|
+
return message;
|
|
13447
|
+
},
|
|
13448
|
+
};
|
|
13449
|
+
function createBaseGnssStatus() {
|
|
13450
|
+
return {
|
|
13451
|
+
receiverConnected: false,
|
|
13452
|
+
fixQuality: 0,
|
|
13453
|
+
isValid: false,
|
|
13454
|
+
satellitesUsed: 0,
|
|
13455
|
+
satellitesTracked: 0,
|
|
13456
|
+
satellitesInView: 0,
|
|
13457
|
+
isUsedInFixValid: false,
|
|
13458
|
+
fixMode: 0,
|
|
13459
|
+
hdop: 0,
|
|
13460
|
+
pdop: 0,
|
|
13461
|
+
vdop: 0,
|
|
13462
|
+
globalPosition: undefined,
|
|
13463
|
+
altitude: 0,
|
|
13464
|
+
stddevLatitude: 0,
|
|
13465
|
+
stddevLongitude: 0,
|
|
13466
|
+
stddevAltitude: 0,
|
|
13467
|
+
stddevSemiMajor: 0,
|
|
13468
|
+
stddevSemiMinor: 0,
|
|
13469
|
+
errorEllipseOrientation: 0,
|
|
13470
|
+
rangeRms: 0,
|
|
13471
|
+
isAccuracyValid: false,
|
|
13472
|
+
courseOverGround: 0,
|
|
13473
|
+
isCourseValid: false,
|
|
13474
|
+
speedOverGround: 0,
|
|
13475
|
+
differentialAge: 0,
|
|
13476
|
+
differentialStation: 0,
|
|
13477
|
+
baudRate: 0,
|
|
13478
|
+
reconnectCount: 0,
|
|
13479
|
+
receiveErrorCount: 0,
|
|
13480
|
+
timeSinceLastSentence: 0,
|
|
13481
|
+
satellites: [],
|
|
13482
|
+
};
|
|
13483
|
+
}
|
|
13484
|
+
exports.GnssStatus = {
|
|
13485
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13486
|
+
if (message.receiverConnected !== false) {
|
|
13487
|
+
writer.uint32(8).bool(message.receiverConnected);
|
|
13488
|
+
}
|
|
13489
|
+
if (message.fixQuality !== 0) {
|
|
13490
|
+
writer.uint32(16).uint32(message.fixQuality);
|
|
13491
|
+
}
|
|
13492
|
+
if (message.isValid !== false) {
|
|
13493
|
+
writer.uint32(24).bool(message.isValid);
|
|
13494
|
+
}
|
|
13495
|
+
if (message.satellitesUsed !== 0) {
|
|
13496
|
+
writer.uint32(32).uint32(message.satellitesUsed);
|
|
13497
|
+
}
|
|
13498
|
+
if (message.satellitesTracked !== 0) {
|
|
13499
|
+
writer.uint32(40).uint32(message.satellitesTracked);
|
|
13500
|
+
}
|
|
13501
|
+
if (message.satellitesInView !== 0) {
|
|
13502
|
+
writer.uint32(136).uint32(message.satellitesInView);
|
|
13503
|
+
}
|
|
13504
|
+
if (message.isUsedInFixValid !== false) {
|
|
13505
|
+
writer.uint32(160).bool(message.isUsedInFixValid);
|
|
13506
|
+
}
|
|
13507
|
+
if (message.fixMode !== 0) {
|
|
13508
|
+
writer.uint32(168).int32(message.fixMode);
|
|
13509
|
+
}
|
|
13510
|
+
if (message.hdop !== 0) {
|
|
13511
|
+
writer.uint32(53).float(message.hdop);
|
|
13512
|
+
}
|
|
13513
|
+
if (message.pdop !== 0) {
|
|
13514
|
+
writer.uint32(181).float(message.pdop);
|
|
13515
|
+
}
|
|
13516
|
+
if (message.vdop !== 0) {
|
|
13517
|
+
writer.uint32(189).float(message.vdop);
|
|
13518
|
+
}
|
|
13519
|
+
if (message.globalPosition !== undefined) {
|
|
13520
|
+
exports.LatLongPosition.encode(message.globalPosition, writer.uint32(58).fork()).join();
|
|
13521
|
+
}
|
|
13522
|
+
if (message.altitude !== 0) {
|
|
13523
|
+
writer.uint32(197).float(message.altitude);
|
|
13524
|
+
}
|
|
13525
|
+
if (message.stddevLatitude !== 0) {
|
|
13526
|
+
writer.uint32(69).float(message.stddevLatitude);
|
|
13527
|
+
}
|
|
13528
|
+
if (message.stddevLongitude !== 0) {
|
|
13529
|
+
writer.uint32(77).float(message.stddevLongitude);
|
|
13530
|
+
}
|
|
13531
|
+
if (message.stddevAltitude !== 0) {
|
|
13532
|
+
writer.uint32(205).float(message.stddevAltitude);
|
|
13533
|
+
}
|
|
13534
|
+
if (message.stddevSemiMajor !== 0) {
|
|
13535
|
+
writer.uint32(213).float(message.stddevSemiMajor);
|
|
13536
|
+
}
|
|
13537
|
+
if (message.stddevSemiMinor !== 0) {
|
|
13538
|
+
writer.uint32(221).float(message.stddevSemiMinor);
|
|
13539
|
+
}
|
|
13540
|
+
if (message.errorEllipseOrientation !== 0) {
|
|
13541
|
+
writer.uint32(229).float(message.errorEllipseOrientation);
|
|
13542
|
+
}
|
|
13543
|
+
if (message.rangeRms !== 0) {
|
|
13544
|
+
writer.uint32(237).float(message.rangeRms);
|
|
13545
|
+
}
|
|
13546
|
+
if (message.isAccuracyValid !== false) {
|
|
13547
|
+
writer.uint32(144).bool(message.isAccuracyValid);
|
|
13548
|
+
}
|
|
13549
|
+
if (message.courseOverGround !== 0) {
|
|
13550
|
+
writer.uint32(85).float(message.courseOverGround);
|
|
13551
|
+
}
|
|
13552
|
+
if (message.isCourseValid !== false) {
|
|
13553
|
+
writer.uint32(152).bool(message.isCourseValid);
|
|
13554
|
+
}
|
|
13555
|
+
if (message.speedOverGround !== 0) {
|
|
13556
|
+
writer.uint32(93).float(message.speedOverGround);
|
|
13557
|
+
}
|
|
13558
|
+
if (message.differentialAge !== 0) {
|
|
13559
|
+
writer.uint32(245).float(message.differentialAge);
|
|
13560
|
+
}
|
|
13561
|
+
if (message.differentialStation !== 0) {
|
|
13562
|
+
writer.uint32(248).int32(message.differentialStation);
|
|
13563
|
+
}
|
|
13564
|
+
if (message.baudRate !== 0) {
|
|
13565
|
+
writer.uint32(96).uint32(message.baudRate);
|
|
13566
|
+
}
|
|
13567
|
+
if (message.reconnectCount !== 0) {
|
|
13568
|
+
writer.uint32(104).uint32(message.reconnectCount);
|
|
13569
|
+
}
|
|
13570
|
+
if (message.receiveErrorCount !== 0) {
|
|
13571
|
+
writer.uint32(112).uint32(message.receiveErrorCount);
|
|
13572
|
+
}
|
|
13573
|
+
if (message.timeSinceLastSentence !== 0) {
|
|
13574
|
+
writer.uint32(125).float(message.timeSinceLastSentence);
|
|
13575
|
+
}
|
|
13576
|
+
for (const v of message.satellites) {
|
|
13577
|
+
exports.GnssSatellite.encode(v, writer.uint32(130).fork()).join();
|
|
13578
|
+
}
|
|
13579
|
+
return writer;
|
|
13580
|
+
},
|
|
13581
|
+
decode(input, length) {
|
|
13582
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13583
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13584
|
+
const message = createBaseGnssStatus();
|
|
13585
|
+
while (reader.pos < end) {
|
|
13586
|
+
const tag = reader.uint32();
|
|
13587
|
+
switch (tag >>> 3) {
|
|
13588
|
+
case 1: {
|
|
13589
|
+
if (tag !== 8) {
|
|
13590
|
+
break;
|
|
13591
|
+
}
|
|
13592
|
+
message.receiverConnected = reader.bool();
|
|
13593
|
+
continue;
|
|
13594
|
+
}
|
|
13595
|
+
case 2: {
|
|
13596
|
+
if (tag !== 16) {
|
|
13597
|
+
break;
|
|
13598
|
+
}
|
|
13599
|
+
message.fixQuality = reader.uint32();
|
|
13600
|
+
continue;
|
|
13601
|
+
}
|
|
13602
|
+
case 3: {
|
|
13603
|
+
if (tag !== 24) {
|
|
13604
|
+
break;
|
|
13605
|
+
}
|
|
13606
|
+
message.isValid = reader.bool();
|
|
13607
|
+
continue;
|
|
13608
|
+
}
|
|
13609
|
+
case 4: {
|
|
13610
|
+
if (tag !== 32) {
|
|
13611
|
+
break;
|
|
13612
|
+
}
|
|
13613
|
+
message.satellitesUsed = reader.uint32();
|
|
13614
|
+
continue;
|
|
13615
|
+
}
|
|
13616
|
+
case 5: {
|
|
13617
|
+
if (tag !== 40) {
|
|
13618
|
+
break;
|
|
13619
|
+
}
|
|
13620
|
+
message.satellitesTracked = reader.uint32();
|
|
13621
|
+
continue;
|
|
13622
|
+
}
|
|
13623
|
+
case 17: {
|
|
13624
|
+
if (tag !== 136) {
|
|
13625
|
+
break;
|
|
13626
|
+
}
|
|
13627
|
+
message.satellitesInView = reader.uint32();
|
|
13628
|
+
continue;
|
|
13629
|
+
}
|
|
13630
|
+
case 20: {
|
|
13631
|
+
if (tag !== 160) {
|
|
13632
|
+
break;
|
|
13633
|
+
}
|
|
13634
|
+
message.isUsedInFixValid = reader.bool();
|
|
13635
|
+
continue;
|
|
13636
|
+
}
|
|
13637
|
+
case 21: {
|
|
13638
|
+
if (tag !== 168) {
|
|
13639
|
+
break;
|
|
13640
|
+
}
|
|
13641
|
+
message.fixMode = reader.int32();
|
|
13642
|
+
continue;
|
|
13643
|
+
}
|
|
13644
|
+
case 6: {
|
|
13645
|
+
if (tag !== 53) {
|
|
13646
|
+
break;
|
|
13647
|
+
}
|
|
13648
|
+
message.hdop = reader.float();
|
|
13649
|
+
continue;
|
|
13650
|
+
}
|
|
13651
|
+
case 22: {
|
|
13652
|
+
if (tag !== 181) {
|
|
13653
|
+
break;
|
|
13654
|
+
}
|
|
13655
|
+
message.pdop = reader.float();
|
|
13656
|
+
continue;
|
|
13657
|
+
}
|
|
13658
|
+
case 23: {
|
|
13659
|
+
if (tag !== 189) {
|
|
13660
|
+
break;
|
|
13661
|
+
}
|
|
13662
|
+
message.vdop = reader.float();
|
|
13663
|
+
continue;
|
|
13664
|
+
}
|
|
13665
|
+
case 7: {
|
|
13666
|
+
if (tag !== 58) {
|
|
13667
|
+
break;
|
|
13668
|
+
}
|
|
13669
|
+
message.globalPosition = exports.LatLongPosition.decode(reader, reader.uint32());
|
|
13670
|
+
continue;
|
|
13671
|
+
}
|
|
13672
|
+
case 24: {
|
|
13673
|
+
if (tag !== 197) {
|
|
13674
|
+
break;
|
|
13675
|
+
}
|
|
13676
|
+
message.altitude = reader.float();
|
|
13677
|
+
continue;
|
|
13678
|
+
}
|
|
13679
|
+
case 8: {
|
|
13680
|
+
if (tag !== 69) {
|
|
13681
|
+
break;
|
|
13682
|
+
}
|
|
13683
|
+
message.stddevLatitude = reader.float();
|
|
13684
|
+
continue;
|
|
13685
|
+
}
|
|
13686
|
+
case 9: {
|
|
13687
|
+
if (tag !== 77) {
|
|
13688
|
+
break;
|
|
13689
|
+
}
|
|
13690
|
+
message.stddevLongitude = reader.float();
|
|
13691
|
+
continue;
|
|
13692
|
+
}
|
|
13693
|
+
case 25: {
|
|
13694
|
+
if (tag !== 205) {
|
|
13695
|
+
break;
|
|
13696
|
+
}
|
|
13697
|
+
message.stddevAltitude = reader.float();
|
|
13698
|
+
continue;
|
|
13699
|
+
}
|
|
13700
|
+
case 26: {
|
|
13701
|
+
if (tag !== 213) {
|
|
13702
|
+
break;
|
|
13703
|
+
}
|
|
13704
|
+
message.stddevSemiMajor = reader.float();
|
|
13705
|
+
continue;
|
|
13706
|
+
}
|
|
13707
|
+
case 27: {
|
|
13708
|
+
if (tag !== 221) {
|
|
13709
|
+
break;
|
|
13710
|
+
}
|
|
13711
|
+
message.stddevSemiMinor = reader.float();
|
|
13712
|
+
continue;
|
|
13713
|
+
}
|
|
13714
|
+
case 28: {
|
|
13715
|
+
if (tag !== 229) {
|
|
13716
|
+
break;
|
|
13717
|
+
}
|
|
13718
|
+
message.errorEllipseOrientation = reader.float();
|
|
13719
|
+
continue;
|
|
13720
|
+
}
|
|
13721
|
+
case 29: {
|
|
13722
|
+
if (tag !== 237) {
|
|
13723
|
+
break;
|
|
13724
|
+
}
|
|
13725
|
+
message.rangeRms = reader.float();
|
|
13726
|
+
continue;
|
|
13727
|
+
}
|
|
13728
|
+
case 18: {
|
|
13729
|
+
if (tag !== 144) {
|
|
13730
|
+
break;
|
|
13731
|
+
}
|
|
13732
|
+
message.isAccuracyValid = reader.bool();
|
|
13733
|
+
continue;
|
|
13734
|
+
}
|
|
13735
|
+
case 10: {
|
|
13736
|
+
if (tag !== 85) {
|
|
13737
|
+
break;
|
|
13738
|
+
}
|
|
13739
|
+
message.courseOverGround = reader.float();
|
|
13740
|
+
continue;
|
|
13741
|
+
}
|
|
13742
|
+
case 19: {
|
|
13743
|
+
if (tag !== 152) {
|
|
13744
|
+
break;
|
|
13745
|
+
}
|
|
13746
|
+
message.isCourseValid = reader.bool();
|
|
13747
|
+
continue;
|
|
13748
|
+
}
|
|
13749
|
+
case 11: {
|
|
13750
|
+
if (tag !== 93) {
|
|
13751
|
+
break;
|
|
13752
|
+
}
|
|
13753
|
+
message.speedOverGround = reader.float();
|
|
13754
|
+
continue;
|
|
13755
|
+
}
|
|
13756
|
+
case 30: {
|
|
13757
|
+
if (tag !== 245) {
|
|
13758
|
+
break;
|
|
13759
|
+
}
|
|
13760
|
+
message.differentialAge = reader.float();
|
|
13761
|
+
continue;
|
|
13762
|
+
}
|
|
13763
|
+
case 31: {
|
|
13764
|
+
if (tag !== 248) {
|
|
13765
|
+
break;
|
|
13766
|
+
}
|
|
13767
|
+
message.differentialStation = reader.int32();
|
|
13768
|
+
continue;
|
|
13769
|
+
}
|
|
13770
|
+
case 12: {
|
|
13771
|
+
if (tag !== 96) {
|
|
13772
|
+
break;
|
|
13773
|
+
}
|
|
13774
|
+
message.baudRate = reader.uint32();
|
|
13775
|
+
continue;
|
|
13776
|
+
}
|
|
13777
|
+
case 13: {
|
|
13778
|
+
if (tag !== 104) {
|
|
13779
|
+
break;
|
|
13780
|
+
}
|
|
13781
|
+
message.reconnectCount = reader.uint32();
|
|
13782
|
+
continue;
|
|
13783
|
+
}
|
|
13784
|
+
case 14: {
|
|
13785
|
+
if (tag !== 112) {
|
|
13786
|
+
break;
|
|
13787
|
+
}
|
|
13788
|
+
message.receiveErrorCount = reader.uint32();
|
|
13789
|
+
continue;
|
|
13790
|
+
}
|
|
13791
|
+
case 15: {
|
|
13792
|
+
if (tag !== 125) {
|
|
13793
|
+
break;
|
|
13794
|
+
}
|
|
13795
|
+
message.timeSinceLastSentence = reader.float();
|
|
13796
|
+
continue;
|
|
13797
|
+
}
|
|
13798
|
+
case 16: {
|
|
13799
|
+
if (tag !== 130) {
|
|
13800
|
+
break;
|
|
13801
|
+
}
|
|
13802
|
+
message.satellites.push(exports.GnssSatellite.decode(reader, reader.uint32()));
|
|
13803
|
+
continue;
|
|
13804
|
+
}
|
|
13805
|
+
}
|
|
13806
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13807
|
+
break;
|
|
13808
|
+
}
|
|
13809
|
+
reader.skip(tag & 7);
|
|
13810
|
+
}
|
|
13811
|
+
return message;
|
|
13812
|
+
},
|
|
13813
|
+
fromJSON(object) {
|
|
13814
|
+
return {
|
|
13815
|
+
receiverConnected: isSet(object.receiverConnected) ? gt.Boolean(object.receiverConnected) : false,
|
|
13816
|
+
fixQuality: isSet(object.fixQuality) ? gt.Number(object.fixQuality) : 0,
|
|
13817
|
+
isValid: isSet(object.isValid) ? gt.Boolean(object.isValid) : false,
|
|
13818
|
+
satellitesUsed: isSet(object.satellitesUsed) ? gt.Number(object.satellitesUsed) : 0,
|
|
13819
|
+
satellitesTracked: isSet(object.satellitesTracked) ? gt.Number(object.satellitesTracked) : 0,
|
|
13820
|
+
satellitesInView: isSet(object.satellitesInView) ? gt.Number(object.satellitesInView) : 0,
|
|
13821
|
+
isUsedInFixValid: isSet(object.isUsedInFixValid) ? gt.Boolean(object.isUsedInFixValid) : false,
|
|
13822
|
+
fixMode: isSet(object.fixMode) ? gnssFixModeFromJSON(object.fixMode) : 0,
|
|
13823
|
+
hdop: isSet(object.hdop) ? gt.Number(object.hdop) : 0,
|
|
13824
|
+
pdop: isSet(object.pdop) ? gt.Number(object.pdop) : 0,
|
|
13825
|
+
vdop: isSet(object.vdop) ? gt.Number(object.vdop) : 0,
|
|
13826
|
+
globalPosition: isSet(object.globalPosition) ? exports.LatLongPosition.fromJSON(object.globalPosition) : undefined,
|
|
13827
|
+
altitude: isSet(object.altitude) ? gt.Number(object.altitude) : 0,
|
|
13828
|
+
stddevLatitude: isSet(object.stddevLatitude) ? gt.Number(object.stddevLatitude) : 0,
|
|
13829
|
+
stddevLongitude: isSet(object.stddevLongitude) ? gt.Number(object.stddevLongitude) : 0,
|
|
13830
|
+
stddevAltitude: isSet(object.stddevAltitude) ? gt.Number(object.stddevAltitude) : 0,
|
|
13831
|
+
stddevSemiMajor: isSet(object.stddevSemiMajor) ? gt.Number(object.stddevSemiMajor) : 0,
|
|
13832
|
+
stddevSemiMinor: isSet(object.stddevSemiMinor) ? gt.Number(object.stddevSemiMinor) : 0,
|
|
13833
|
+
errorEllipseOrientation: isSet(object.errorEllipseOrientation) ? gt.Number(object.errorEllipseOrientation) : 0,
|
|
13834
|
+
rangeRms: isSet(object.rangeRms) ? gt.Number(object.rangeRms) : 0,
|
|
13835
|
+
isAccuracyValid: isSet(object.isAccuracyValid) ? gt.Boolean(object.isAccuracyValid) : false,
|
|
13836
|
+
courseOverGround: isSet(object.courseOverGround) ? gt.Number(object.courseOverGround) : 0,
|
|
13837
|
+
isCourseValid: isSet(object.isCourseValid) ? gt.Boolean(object.isCourseValid) : false,
|
|
13838
|
+
speedOverGround: isSet(object.speedOverGround) ? gt.Number(object.speedOverGround) : 0,
|
|
13839
|
+
differentialAge: isSet(object.differentialAge) ? gt.Number(object.differentialAge) : 0,
|
|
13840
|
+
differentialStation: isSet(object.differentialStation) ? gt.Number(object.differentialStation) : 0,
|
|
13841
|
+
baudRate: isSet(object.baudRate) ? gt.Number(object.baudRate) : 0,
|
|
13842
|
+
reconnectCount: isSet(object.reconnectCount) ? gt.Number(object.reconnectCount) : 0,
|
|
13843
|
+
receiveErrorCount: isSet(object.receiveErrorCount) ? gt.Number(object.receiveErrorCount) : 0,
|
|
13844
|
+
timeSinceLastSentence: isSet(object.timeSinceLastSentence) ? gt.Number(object.timeSinceLastSentence) : 0,
|
|
13845
|
+
satellites: gt.Array.isArray(object?.satellites)
|
|
13846
|
+
? object.satellites.map((e) => exports.GnssSatellite.fromJSON(e))
|
|
13847
|
+
: [],
|
|
13848
|
+
};
|
|
13849
|
+
},
|
|
13850
|
+
toJSON(message) {
|
|
13851
|
+
const obj = {};
|
|
13852
|
+
if (message.receiverConnected !== false) {
|
|
13853
|
+
obj.receiverConnected = message.receiverConnected;
|
|
13854
|
+
}
|
|
13855
|
+
if (message.fixQuality !== 0) {
|
|
13856
|
+
obj.fixQuality = Math.round(message.fixQuality);
|
|
13857
|
+
}
|
|
13858
|
+
if (message.isValid !== false) {
|
|
13859
|
+
obj.isValid = message.isValid;
|
|
13860
|
+
}
|
|
13861
|
+
if (message.satellitesUsed !== 0) {
|
|
13862
|
+
obj.satellitesUsed = Math.round(message.satellitesUsed);
|
|
13863
|
+
}
|
|
13864
|
+
if (message.satellitesTracked !== 0) {
|
|
13865
|
+
obj.satellitesTracked = Math.round(message.satellitesTracked);
|
|
13866
|
+
}
|
|
13867
|
+
if (message.satellitesInView !== 0) {
|
|
13868
|
+
obj.satellitesInView = Math.round(message.satellitesInView);
|
|
13869
|
+
}
|
|
13870
|
+
if (message.isUsedInFixValid !== false) {
|
|
13871
|
+
obj.isUsedInFixValid = message.isUsedInFixValid;
|
|
13872
|
+
}
|
|
13873
|
+
if (message.fixMode !== 0) {
|
|
13874
|
+
obj.fixMode = gnssFixModeToJSON(message.fixMode);
|
|
13875
|
+
}
|
|
13876
|
+
if (message.hdop !== 0) {
|
|
13877
|
+
obj.hdop = message.hdop;
|
|
13878
|
+
}
|
|
13879
|
+
if (message.pdop !== 0) {
|
|
13880
|
+
obj.pdop = message.pdop;
|
|
13881
|
+
}
|
|
13882
|
+
if (message.vdop !== 0) {
|
|
13883
|
+
obj.vdop = message.vdop;
|
|
13884
|
+
}
|
|
13885
|
+
if (message.globalPosition !== undefined) {
|
|
13886
|
+
obj.globalPosition = exports.LatLongPosition.toJSON(message.globalPosition);
|
|
13887
|
+
}
|
|
13888
|
+
if (message.altitude !== 0) {
|
|
13889
|
+
obj.altitude = message.altitude;
|
|
13890
|
+
}
|
|
13891
|
+
if (message.stddevLatitude !== 0) {
|
|
13892
|
+
obj.stddevLatitude = message.stddevLatitude;
|
|
13893
|
+
}
|
|
13894
|
+
if (message.stddevLongitude !== 0) {
|
|
13895
|
+
obj.stddevLongitude = message.stddevLongitude;
|
|
13896
|
+
}
|
|
13897
|
+
if (message.stddevAltitude !== 0) {
|
|
13898
|
+
obj.stddevAltitude = message.stddevAltitude;
|
|
13899
|
+
}
|
|
13900
|
+
if (message.stddevSemiMajor !== 0) {
|
|
13901
|
+
obj.stddevSemiMajor = message.stddevSemiMajor;
|
|
13902
|
+
}
|
|
13903
|
+
if (message.stddevSemiMinor !== 0) {
|
|
13904
|
+
obj.stddevSemiMinor = message.stddevSemiMinor;
|
|
13905
|
+
}
|
|
13906
|
+
if (message.errorEllipseOrientation !== 0) {
|
|
13907
|
+
obj.errorEllipseOrientation = message.errorEllipseOrientation;
|
|
13908
|
+
}
|
|
13909
|
+
if (message.rangeRms !== 0) {
|
|
13910
|
+
obj.rangeRms = message.rangeRms;
|
|
13911
|
+
}
|
|
13912
|
+
if (message.isAccuracyValid !== false) {
|
|
13913
|
+
obj.isAccuracyValid = message.isAccuracyValid;
|
|
13914
|
+
}
|
|
13915
|
+
if (message.courseOverGround !== 0) {
|
|
13916
|
+
obj.courseOverGround = message.courseOverGround;
|
|
13917
|
+
}
|
|
13918
|
+
if (message.isCourseValid !== false) {
|
|
13919
|
+
obj.isCourseValid = message.isCourseValid;
|
|
13920
|
+
}
|
|
13921
|
+
if (message.speedOverGround !== 0) {
|
|
13922
|
+
obj.speedOverGround = message.speedOverGround;
|
|
13923
|
+
}
|
|
13924
|
+
if (message.differentialAge !== 0) {
|
|
13925
|
+
obj.differentialAge = message.differentialAge;
|
|
13926
|
+
}
|
|
13927
|
+
if (message.differentialStation !== 0) {
|
|
13928
|
+
obj.differentialStation = Math.round(message.differentialStation);
|
|
13929
|
+
}
|
|
13930
|
+
if (message.baudRate !== 0) {
|
|
13931
|
+
obj.baudRate = Math.round(message.baudRate);
|
|
13932
|
+
}
|
|
13933
|
+
if (message.reconnectCount !== 0) {
|
|
13934
|
+
obj.reconnectCount = Math.round(message.reconnectCount);
|
|
13935
|
+
}
|
|
13936
|
+
if (message.receiveErrorCount !== 0) {
|
|
13937
|
+
obj.receiveErrorCount = Math.round(message.receiveErrorCount);
|
|
13938
|
+
}
|
|
13939
|
+
if (message.timeSinceLastSentence !== 0) {
|
|
13940
|
+
obj.timeSinceLastSentence = message.timeSinceLastSentence;
|
|
13941
|
+
}
|
|
13942
|
+
if (message.satellites?.length) {
|
|
13943
|
+
obj.satellites = message.satellites.map((e) => exports.GnssSatellite.toJSON(e));
|
|
13944
|
+
}
|
|
13945
|
+
return obj;
|
|
13946
|
+
},
|
|
13947
|
+
create(base) {
|
|
13948
|
+
return exports.GnssStatus.fromPartial(base ?? {});
|
|
13949
|
+
},
|
|
13950
|
+
fromPartial(object) {
|
|
13951
|
+
const message = createBaseGnssStatus();
|
|
13952
|
+
message.receiverConnected = object.receiverConnected ?? false;
|
|
13953
|
+
message.fixQuality = object.fixQuality ?? 0;
|
|
13954
|
+
message.isValid = object.isValid ?? false;
|
|
13955
|
+
message.satellitesUsed = object.satellitesUsed ?? 0;
|
|
13956
|
+
message.satellitesTracked = object.satellitesTracked ?? 0;
|
|
13957
|
+
message.satellitesInView = object.satellitesInView ?? 0;
|
|
13958
|
+
message.isUsedInFixValid = object.isUsedInFixValid ?? false;
|
|
13959
|
+
message.fixMode = object.fixMode ?? 0;
|
|
13960
|
+
message.hdop = object.hdop ?? 0;
|
|
13961
|
+
message.pdop = object.pdop ?? 0;
|
|
13962
|
+
message.vdop = object.vdop ?? 0;
|
|
13963
|
+
message.globalPosition = (object.globalPosition !== undefined && object.globalPosition !== null)
|
|
13964
|
+
? exports.LatLongPosition.fromPartial(object.globalPosition)
|
|
13965
|
+
: undefined;
|
|
13966
|
+
message.altitude = object.altitude ?? 0;
|
|
13967
|
+
message.stddevLatitude = object.stddevLatitude ?? 0;
|
|
13968
|
+
message.stddevLongitude = object.stddevLongitude ?? 0;
|
|
13969
|
+
message.stddevAltitude = object.stddevAltitude ?? 0;
|
|
13970
|
+
message.stddevSemiMajor = object.stddevSemiMajor ?? 0;
|
|
13971
|
+
message.stddevSemiMinor = object.stddevSemiMinor ?? 0;
|
|
13972
|
+
message.errorEllipseOrientation = object.errorEllipseOrientation ?? 0;
|
|
13973
|
+
message.rangeRms = object.rangeRms ?? 0;
|
|
13974
|
+
message.isAccuracyValid = object.isAccuracyValid ?? false;
|
|
13975
|
+
message.courseOverGround = object.courseOverGround ?? 0;
|
|
13976
|
+
message.isCourseValid = object.isCourseValid ?? false;
|
|
13977
|
+
message.speedOverGround = object.speedOverGround ?? 0;
|
|
13978
|
+
message.differentialAge = object.differentialAge ?? 0;
|
|
13979
|
+
message.differentialStation = object.differentialStation ?? 0;
|
|
13980
|
+
message.baudRate = object.baudRate ?? 0;
|
|
13981
|
+
message.reconnectCount = object.reconnectCount ?? 0;
|
|
13982
|
+
message.receiveErrorCount = object.receiveErrorCount ?? 0;
|
|
13983
|
+
message.timeSinceLastSentence = object.timeSinceLastSentence ?? 0;
|
|
13984
|
+
message.satellites = object.satellites?.map((e) => exports.GnssSatellite.fromPartial(e)) || [];
|
|
13985
|
+
return message;
|
|
13986
|
+
},
|
|
13987
|
+
};
|
|
13988
|
+
function createBaseGuestPortDevice() {
|
|
13989
|
+
return {
|
|
13990
|
+
deviceId: 0,
|
|
13991
|
+
manufacturer: "",
|
|
13992
|
+
name: "",
|
|
13993
|
+
serialNumber: "",
|
|
13994
|
+
depthRating: 0,
|
|
13995
|
+
requiredBlunuxVersion: "",
|
|
13996
|
+
detachStatus: 0,
|
|
13997
|
+
requiredCapabilities: [],
|
|
13998
|
+
compatibleGuestPorts: [],
|
|
13999
|
+
};
|
|
14000
|
+
}
|
|
14001
|
+
exports.GuestPortDevice = {
|
|
14002
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
14003
|
+
if (message.deviceId !== 0) {
|
|
14004
|
+
writer.uint32(8).int32(message.deviceId);
|
|
14005
|
+
}
|
|
14006
|
+
if (message.manufacturer !== "") {
|
|
14007
|
+
writer.uint32(18).string(message.manufacturer);
|
|
14008
|
+
}
|
|
14009
|
+
if (message.name !== "") {
|
|
14010
|
+
writer.uint32(26).string(message.name);
|
|
14011
|
+
}
|
|
14012
|
+
if (message.serialNumber !== "") {
|
|
14013
|
+
writer.uint32(34).string(message.serialNumber);
|
|
14014
|
+
}
|
|
14015
|
+
if (message.depthRating !== 0) {
|
|
14016
|
+
writer.uint32(45).float(message.depthRating);
|
|
14017
|
+
}
|
|
14018
|
+
if (message.requiredBlunuxVersion !== "") {
|
|
14019
|
+
writer.uint32(50).string(message.requiredBlunuxVersion);
|
|
14020
|
+
}
|
|
14021
|
+
if (message.detachStatus !== 0) {
|
|
14022
|
+
writer.uint32(56).int32(message.detachStatus);
|
|
14023
|
+
}
|
|
14024
|
+
writer.uint32(66).fork();
|
|
14025
|
+
for (const v of message.requiredCapabilities) {
|
|
14026
|
+
writer.int32(v);
|
|
14027
|
+
}
|
|
14028
|
+
writer.join();
|
|
14029
|
+
writer.uint32(74).fork();
|
|
14030
|
+
for (const v of message.compatibleGuestPorts) {
|
|
14031
|
+
writer.int32(v);
|
|
14032
|
+
}
|
|
14033
|
+
writer.join();
|
|
14034
|
+
return writer;
|
|
14035
|
+
},
|
|
14036
|
+
decode(input, length) {
|
|
14037
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
14038
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
14039
|
+
const message = createBaseGuestPortDevice();
|
|
14040
|
+
while (reader.pos < end) {
|
|
14041
|
+
const tag = reader.uint32();
|
|
14042
|
+
switch (tag >>> 3) {
|
|
14043
|
+
case 1: {
|
|
14044
|
+
if (tag !== 8) {
|
|
14045
|
+
break;
|
|
14046
|
+
}
|
|
14047
|
+
message.deviceId = reader.int32();
|
|
14048
|
+
continue;
|
|
14049
|
+
}
|
|
14050
|
+
case 2: {
|
|
14051
|
+
if (tag !== 18) {
|
|
14052
|
+
break;
|
|
14053
|
+
}
|
|
14054
|
+
message.manufacturer = reader.string();
|
|
14055
|
+
continue;
|
|
14056
|
+
}
|
|
14057
|
+
case 3: {
|
|
14058
|
+
if (tag !== 26) {
|
|
14059
|
+
break;
|
|
14060
|
+
}
|
|
14061
|
+
message.name = reader.string();
|
|
14062
|
+
continue;
|
|
14063
|
+
}
|
|
14064
|
+
case 4: {
|
|
14065
|
+
if (tag !== 34) {
|
|
14066
|
+
break;
|
|
14067
|
+
}
|
|
14068
|
+
message.serialNumber = reader.string();
|
|
14069
|
+
continue;
|
|
14070
|
+
}
|
|
14071
|
+
case 5: {
|
|
14072
|
+
if (tag !== 45) {
|
|
14073
|
+
break;
|
|
14074
|
+
}
|
|
14075
|
+
message.depthRating = reader.float();
|
|
14076
|
+
continue;
|
|
14077
|
+
}
|
|
14078
|
+
case 6: {
|
|
14079
|
+
if (tag !== 50) {
|
|
14080
|
+
break;
|
|
14081
|
+
}
|
|
14082
|
+
message.requiredBlunuxVersion = reader.string();
|
|
14083
|
+
continue;
|
|
14084
|
+
}
|
|
14085
|
+
case 7: {
|
|
14086
|
+
if (tag !== 56) {
|
|
14087
|
+
break;
|
|
14088
|
+
}
|
|
14089
|
+
message.detachStatus = reader.int32();
|
|
14090
|
+
continue;
|
|
14091
|
+
}
|
|
14092
|
+
case 8: {
|
|
14093
|
+
if (tag === 64) {
|
|
14094
|
+
message.requiredCapabilities.push(reader.int32());
|
|
14095
|
+
continue;
|
|
14096
|
+
}
|
|
14097
|
+
if (tag === 66) {
|
|
14098
|
+
const end2 = reader.uint32() + reader.pos;
|
|
14099
|
+
while (reader.pos < end2) {
|
|
14100
|
+
message.requiredCapabilities.push(reader.int32());
|
|
14101
|
+
}
|
|
14102
|
+
continue;
|
|
14103
|
+
}
|
|
14104
|
+
break;
|
|
14105
|
+
}
|
|
14106
|
+
case 9: {
|
|
14107
|
+
if (tag === 72) {
|
|
14108
|
+
message.compatibleGuestPorts.push(reader.int32());
|
|
14109
|
+
continue;
|
|
14110
|
+
}
|
|
14111
|
+
if (tag === 74) {
|
|
14112
|
+
const end2 = reader.uint32() + reader.pos;
|
|
14113
|
+
while (reader.pos < end2) {
|
|
14114
|
+
message.compatibleGuestPorts.push(reader.int32());
|
|
14115
|
+
}
|
|
14116
|
+
continue;
|
|
14117
|
+
}
|
|
14118
|
+
break;
|
|
14119
|
+
}
|
|
14120
|
+
}
|
|
14121
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
14122
|
+
break;
|
|
14123
|
+
}
|
|
14124
|
+
reader.skip(tag & 7);
|
|
14125
|
+
}
|
|
14126
|
+
return message;
|
|
14127
|
+
},
|
|
14128
|
+
fromJSON(object) {
|
|
14129
|
+
return {
|
|
14130
|
+
deviceId: isSet(object.deviceId) ? guestPortDeviceIDFromJSON(object.deviceId) : 0,
|
|
14131
|
+
manufacturer: isSet(object.manufacturer) ? gt.String(object.manufacturer) : "",
|
|
14132
|
+
name: isSet(object.name) ? gt.String(object.name) : "",
|
|
14133
|
+
serialNumber: isSet(object.serialNumber) ? gt.String(object.serialNumber) : "",
|
|
14134
|
+
depthRating: isSet(object.depthRating) ? gt.Number(object.depthRating) : 0,
|
|
14135
|
+
requiredBlunuxVersion: isSet(object.requiredBlunuxVersion) ? gt.String(object.requiredBlunuxVersion) : "",
|
|
14136
|
+
detachStatus: isSet(object.detachStatus) ? guestPortDetachStatusFromJSON(object.detachStatus) : 0,
|
|
14137
|
+
requiredCapabilities: gt.Array.isArray(object?.requiredCapabilities)
|
|
14138
|
+
? object.requiredCapabilities.map((e) => guestPortCapabilityFromJSON(e))
|
|
14139
|
+
: [],
|
|
14140
|
+
compatibleGuestPorts: gt.Array.isArray(object?.compatibleGuestPorts)
|
|
14141
|
+
? object.compatibleGuestPorts.map((e) => guestPortNumberFromJSON(e))
|
|
14142
|
+
: [],
|
|
14143
|
+
};
|
|
14144
|
+
},
|
|
14145
|
+
toJSON(message) {
|
|
14146
|
+
const obj = {};
|
|
14147
|
+
if (message.deviceId !== 0) {
|
|
14148
|
+
obj.deviceId = guestPortDeviceIDToJSON(message.deviceId);
|
|
14149
|
+
}
|
|
14150
|
+
if (message.manufacturer !== "") {
|
|
14151
|
+
obj.manufacturer = message.manufacturer;
|
|
14152
|
+
}
|
|
14153
|
+
if (message.name !== "") {
|
|
14154
|
+
obj.name = message.name;
|
|
13218
14155
|
}
|
|
13219
14156
|
if (message.serialNumber !== "") {
|
|
13220
14157
|
obj.serialNumber = message.serialNumber;
|
|
@@ -15274,6 +16211,57 @@ exports.MultibeamDiscovery = {
|
|
|
15274
16211
|
return message;
|
|
15275
16212
|
},
|
|
15276
16213
|
};
|
|
16214
|
+
function createBaseMultibeamColorFilter() {
|
|
16215
|
+
return { rgb: new Uint8Array(0) };
|
|
16216
|
+
}
|
|
16217
|
+
exports.MultibeamColorFilter = {
|
|
16218
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
16219
|
+
if (message.rgb.length !== 0) {
|
|
16220
|
+
writer.uint32(10).bytes(message.rgb);
|
|
16221
|
+
}
|
|
16222
|
+
return writer;
|
|
16223
|
+
},
|
|
16224
|
+
decode(input, length) {
|
|
16225
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
16226
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
16227
|
+
const message = createBaseMultibeamColorFilter();
|
|
16228
|
+
while (reader.pos < end) {
|
|
16229
|
+
const tag = reader.uint32();
|
|
16230
|
+
switch (tag >>> 3) {
|
|
16231
|
+
case 1: {
|
|
16232
|
+
if (tag !== 10) {
|
|
16233
|
+
break;
|
|
16234
|
+
}
|
|
16235
|
+
message.rgb = reader.bytes();
|
|
16236
|
+
continue;
|
|
16237
|
+
}
|
|
16238
|
+
}
|
|
16239
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16240
|
+
break;
|
|
16241
|
+
}
|
|
16242
|
+
reader.skip(tag & 7);
|
|
16243
|
+
}
|
|
16244
|
+
return message;
|
|
16245
|
+
},
|
|
16246
|
+
fromJSON(object) {
|
|
16247
|
+
return { rgb: isSet(object.rgb) ? bytesFromBase64(object.rgb) : new Uint8Array(0) };
|
|
16248
|
+
},
|
|
16249
|
+
toJSON(message) {
|
|
16250
|
+
const obj = {};
|
|
16251
|
+
if (message.rgb.length !== 0) {
|
|
16252
|
+
obj.rgb = base64FromBytes(message.rgb);
|
|
16253
|
+
}
|
|
16254
|
+
return obj;
|
|
16255
|
+
},
|
|
16256
|
+
create(base) {
|
|
16257
|
+
return exports.MultibeamColorFilter.fromPartial(base ?? {});
|
|
16258
|
+
},
|
|
16259
|
+
fromPartial(object) {
|
|
16260
|
+
const message = createBaseMultibeamColorFilter();
|
|
16261
|
+
message.rgb = object.rgb ?? new Uint8Array(0);
|
|
16262
|
+
return message;
|
|
16263
|
+
},
|
|
16264
|
+
};
|
|
15277
16265
|
function createBaseMultibeamErrorFlags() {
|
|
15278
16266
|
return { connectedToAnotherClient: false, deviceOverheating: false, outOfWater: false };
|
|
15279
16267
|
}
|