@blueyerobotics/protocol-definitions 3.3.0-1fa96b97 → 3.3.0-369b31cc
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 +129 -1
- package/dist/message_formats.js +852 -4
- package/dist/req_rep.d.ts +21 -1
- package/dist/req_rep.js +181 -0
- package/dist/telemetry.d.ts +7 -1
- package/dist/telemetry.js +55 -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.Notification = exports.Reference = 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.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.VideoCodecInfo = exports.ThermalZone = 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 = 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 = 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) {
|
|
@@ -10742,6 +10856,7 @@ function createBaseErrorFlags() {
|
|
|
10742
10856
|
gp65vCurrent: false,
|
|
10743
10857
|
dvlThermalProtectionMode: false,
|
|
10744
10858
|
dvlNoPower: false,
|
|
10859
|
+
dvlProtocolUnsupported: false,
|
|
10745
10860
|
usbDisconnect: false,
|
|
10746
10861
|
videoUrbError: false,
|
|
10747
10862
|
hardwareNotSupported: false,
|
|
@@ -10989,6 +11104,9 @@ exports.ErrorFlags = {
|
|
|
10989
11104
|
if (message.dvlNoPower !== false) {
|
|
10990
11105
|
writer.uint32(352).bool(message.dvlNoPower);
|
|
10991
11106
|
}
|
|
11107
|
+
if (message.dvlProtocolUnsupported !== false) {
|
|
11108
|
+
writer.uint32(672).bool(message.dvlProtocolUnsupported);
|
|
11109
|
+
}
|
|
10992
11110
|
if (message.usbDisconnect !== false) {
|
|
10993
11111
|
writer.uint32(360).bool(message.usbDisconnect);
|
|
10994
11112
|
}
|
|
@@ -11567,6 +11685,13 @@ exports.ErrorFlags = {
|
|
|
11567
11685
|
message.dvlNoPower = reader.bool();
|
|
11568
11686
|
continue;
|
|
11569
11687
|
}
|
|
11688
|
+
case 84: {
|
|
11689
|
+
if (tag !== 672) {
|
|
11690
|
+
break;
|
|
11691
|
+
}
|
|
11692
|
+
message.dvlProtocolUnsupported = reader.bool();
|
|
11693
|
+
continue;
|
|
11694
|
+
}
|
|
11570
11695
|
case 45: {
|
|
11571
11696
|
if (tag !== 360) {
|
|
11572
11697
|
break;
|
|
@@ -11684,6 +11809,7 @@ exports.ErrorFlags = {
|
|
|
11684
11809
|
? gt.Boolean(object.dvlThermalProtectionMode)
|
|
11685
11810
|
: false,
|
|
11686
11811
|
dvlNoPower: isSet(object.dvlNoPower) ? gt.Boolean(object.dvlNoPower) : false,
|
|
11812
|
+
dvlProtocolUnsupported: isSet(object.dvlProtocolUnsupported) ? gt.Boolean(object.dvlProtocolUnsupported) : false,
|
|
11687
11813
|
usbDisconnect: isSet(object.usbDisconnect) ? gt.Boolean(object.usbDisconnect) : false,
|
|
11688
11814
|
videoUrbError: isSet(object.videoUrbError) ? gt.Boolean(object.videoUrbError) : false,
|
|
11689
11815
|
hardwareNotSupported: isSet(object.hardwareNotSupported) ? gt.Boolean(object.hardwareNotSupported) : false,
|
|
@@ -11931,6 +12057,9 @@ exports.ErrorFlags = {
|
|
|
11931
12057
|
if (message.dvlNoPower !== false) {
|
|
11932
12058
|
obj.dvlNoPower = message.dvlNoPower;
|
|
11933
12059
|
}
|
|
12060
|
+
if (message.dvlProtocolUnsupported !== false) {
|
|
12061
|
+
obj.dvlProtocolUnsupported = message.dvlProtocolUnsupported;
|
|
12062
|
+
}
|
|
11934
12063
|
if (message.usbDisconnect !== false) {
|
|
11935
12064
|
obj.usbDisconnect = message.usbDisconnect;
|
|
11936
12065
|
}
|
|
@@ -12027,6 +12156,7 @@ exports.ErrorFlags = {
|
|
|
12027
12156
|
message.gp65vCurrent = object.gp65vCurrent ?? false;
|
|
12028
12157
|
message.dvlThermalProtectionMode = object.dvlThermalProtectionMode ?? false;
|
|
12029
12158
|
message.dvlNoPower = object.dvlNoPower ?? false;
|
|
12159
|
+
message.dvlProtocolUnsupported = object.dvlProtocolUnsupported ?? false;
|
|
12030
12160
|
message.usbDisconnect = object.usbDisconnect ?? false;
|
|
12031
12161
|
message.videoUrbError = object.videoUrbError ?? false;
|
|
12032
12162
|
message.hardwareNotSupported = object.hardwareNotSupported ?? false;
|
|
@@ -13048,6 +13178,673 @@ exports.NavigationSensorStatus = {
|
|
|
13048
13178
|
return message;
|
|
13049
13179
|
},
|
|
13050
13180
|
};
|
|
13181
|
+
function createBaseGnssSatellite() {
|
|
13182
|
+
return { constellation: 0, satelliteId: 0, snr: 0, elevation: 0, azimuth: 0, usedInFix: false };
|
|
13183
|
+
}
|
|
13184
|
+
exports.GnssSatellite = {
|
|
13185
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13186
|
+
if (message.constellation !== 0) {
|
|
13187
|
+
writer.uint32(8).int32(message.constellation);
|
|
13188
|
+
}
|
|
13189
|
+
if (message.satelliteId !== 0) {
|
|
13190
|
+
writer.uint32(16).uint32(message.satelliteId);
|
|
13191
|
+
}
|
|
13192
|
+
if (message.snr !== 0) {
|
|
13193
|
+
writer.uint32(24).uint32(message.snr);
|
|
13194
|
+
}
|
|
13195
|
+
if (message.elevation !== 0) {
|
|
13196
|
+
writer.uint32(32).int32(message.elevation);
|
|
13197
|
+
}
|
|
13198
|
+
if (message.azimuth !== 0) {
|
|
13199
|
+
writer.uint32(40).int32(message.azimuth);
|
|
13200
|
+
}
|
|
13201
|
+
if (message.usedInFix !== false) {
|
|
13202
|
+
writer.uint32(48).bool(message.usedInFix);
|
|
13203
|
+
}
|
|
13204
|
+
return writer;
|
|
13205
|
+
},
|
|
13206
|
+
decode(input, length) {
|
|
13207
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13208
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13209
|
+
const message = createBaseGnssSatellite();
|
|
13210
|
+
while (reader.pos < end) {
|
|
13211
|
+
const tag = reader.uint32();
|
|
13212
|
+
switch (tag >>> 3) {
|
|
13213
|
+
case 1: {
|
|
13214
|
+
if (tag !== 8) {
|
|
13215
|
+
break;
|
|
13216
|
+
}
|
|
13217
|
+
message.constellation = reader.int32();
|
|
13218
|
+
continue;
|
|
13219
|
+
}
|
|
13220
|
+
case 2: {
|
|
13221
|
+
if (tag !== 16) {
|
|
13222
|
+
break;
|
|
13223
|
+
}
|
|
13224
|
+
message.satelliteId = reader.uint32();
|
|
13225
|
+
continue;
|
|
13226
|
+
}
|
|
13227
|
+
case 3: {
|
|
13228
|
+
if (tag !== 24) {
|
|
13229
|
+
break;
|
|
13230
|
+
}
|
|
13231
|
+
message.snr = reader.uint32();
|
|
13232
|
+
continue;
|
|
13233
|
+
}
|
|
13234
|
+
case 4: {
|
|
13235
|
+
if (tag !== 32) {
|
|
13236
|
+
break;
|
|
13237
|
+
}
|
|
13238
|
+
message.elevation = reader.int32();
|
|
13239
|
+
continue;
|
|
13240
|
+
}
|
|
13241
|
+
case 5: {
|
|
13242
|
+
if (tag !== 40) {
|
|
13243
|
+
break;
|
|
13244
|
+
}
|
|
13245
|
+
message.azimuth = reader.int32();
|
|
13246
|
+
continue;
|
|
13247
|
+
}
|
|
13248
|
+
case 6: {
|
|
13249
|
+
if (tag !== 48) {
|
|
13250
|
+
break;
|
|
13251
|
+
}
|
|
13252
|
+
message.usedInFix = reader.bool();
|
|
13253
|
+
continue;
|
|
13254
|
+
}
|
|
13255
|
+
}
|
|
13256
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13257
|
+
break;
|
|
13258
|
+
}
|
|
13259
|
+
reader.skip(tag & 7);
|
|
13260
|
+
}
|
|
13261
|
+
return message;
|
|
13262
|
+
},
|
|
13263
|
+
fromJSON(object) {
|
|
13264
|
+
return {
|
|
13265
|
+
constellation: isSet(object.constellation) ? gnssConstellationFromJSON(object.constellation) : 0,
|
|
13266
|
+
satelliteId: isSet(object.satelliteId) ? gt.Number(object.satelliteId) : 0,
|
|
13267
|
+
snr: isSet(object.snr) ? gt.Number(object.snr) : 0,
|
|
13268
|
+
elevation: isSet(object.elevation) ? gt.Number(object.elevation) : 0,
|
|
13269
|
+
azimuth: isSet(object.azimuth) ? gt.Number(object.azimuth) : 0,
|
|
13270
|
+
usedInFix: isSet(object.usedInFix) ? gt.Boolean(object.usedInFix) : false,
|
|
13271
|
+
};
|
|
13272
|
+
},
|
|
13273
|
+
toJSON(message) {
|
|
13274
|
+
const obj = {};
|
|
13275
|
+
if (message.constellation !== 0) {
|
|
13276
|
+
obj.constellation = gnssConstellationToJSON(message.constellation);
|
|
13277
|
+
}
|
|
13278
|
+
if (message.satelliteId !== 0) {
|
|
13279
|
+
obj.satelliteId = Math.round(message.satelliteId);
|
|
13280
|
+
}
|
|
13281
|
+
if (message.snr !== 0) {
|
|
13282
|
+
obj.snr = Math.round(message.snr);
|
|
13283
|
+
}
|
|
13284
|
+
if (message.elevation !== 0) {
|
|
13285
|
+
obj.elevation = Math.round(message.elevation);
|
|
13286
|
+
}
|
|
13287
|
+
if (message.azimuth !== 0) {
|
|
13288
|
+
obj.azimuth = Math.round(message.azimuth);
|
|
13289
|
+
}
|
|
13290
|
+
if (message.usedInFix !== false) {
|
|
13291
|
+
obj.usedInFix = message.usedInFix;
|
|
13292
|
+
}
|
|
13293
|
+
return obj;
|
|
13294
|
+
},
|
|
13295
|
+
create(base) {
|
|
13296
|
+
return exports.GnssSatellite.fromPartial(base ?? {});
|
|
13297
|
+
},
|
|
13298
|
+
fromPartial(object) {
|
|
13299
|
+
const message = createBaseGnssSatellite();
|
|
13300
|
+
message.constellation = object.constellation ?? 0;
|
|
13301
|
+
message.satelliteId = object.satelliteId ?? 0;
|
|
13302
|
+
message.snr = object.snr ?? 0;
|
|
13303
|
+
message.elevation = object.elevation ?? 0;
|
|
13304
|
+
message.azimuth = object.azimuth ?? 0;
|
|
13305
|
+
message.usedInFix = object.usedInFix ?? false;
|
|
13306
|
+
return message;
|
|
13307
|
+
},
|
|
13308
|
+
};
|
|
13309
|
+
function createBaseGnssStatus() {
|
|
13310
|
+
return {
|
|
13311
|
+
receiverConnected: false,
|
|
13312
|
+
fixQuality: 0,
|
|
13313
|
+
isValid: false,
|
|
13314
|
+
satellitesUsed: 0,
|
|
13315
|
+
satellitesTracked: 0,
|
|
13316
|
+
satellitesInView: 0,
|
|
13317
|
+
isUsedInFixValid: false,
|
|
13318
|
+
fixMode: 0,
|
|
13319
|
+
hdop: 0,
|
|
13320
|
+
pdop: 0,
|
|
13321
|
+
vdop: 0,
|
|
13322
|
+
globalPosition: undefined,
|
|
13323
|
+
altitude: 0,
|
|
13324
|
+
stddevLatitude: 0,
|
|
13325
|
+
stddevLongitude: 0,
|
|
13326
|
+
stddevAltitude: 0,
|
|
13327
|
+
stddevSemiMajor: 0,
|
|
13328
|
+
stddevSemiMinor: 0,
|
|
13329
|
+
errorEllipseOrientation: 0,
|
|
13330
|
+
rangeRms: 0,
|
|
13331
|
+
isAccuracyValid: false,
|
|
13332
|
+
courseOverGround: 0,
|
|
13333
|
+
isCourseValid: false,
|
|
13334
|
+
speedOverGround: 0,
|
|
13335
|
+
differentialAge: 0,
|
|
13336
|
+
differentialStation: 0,
|
|
13337
|
+
baudRate: 0,
|
|
13338
|
+
reconnectCount: 0,
|
|
13339
|
+
receiveErrorCount: 0,
|
|
13340
|
+
timeSinceLastSentence: 0,
|
|
13341
|
+
satellites: [],
|
|
13342
|
+
};
|
|
13343
|
+
}
|
|
13344
|
+
exports.GnssStatus = {
|
|
13345
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13346
|
+
if (message.receiverConnected !== false) {
|
|
13347
|
+
writer.uint32(8).bool(message.receiverConnected);
|
|
13348
|
+
}
|
|
13349
|
+
if (message.fixQuality !== 0) {
|
|
13350
|
+
writer.uint32(16).uint32(message.fixQuality);
|
|
13351
|
+
}
|
|
13352
|
+
if (message.isValid !== false) {
|
|
13353
|
+
writer.uint32(24).bool(message.isValid);
|
|
13354
|
+
}
|
|
13355
|
+
if (message.satellitesUsed !== 0) {
|
|
13356
|
+
writer.uint32(32).uint32(message.satellitesUsed);
|
|
13357
|
+
}
|
|
13358
|
+
if (message.satellitesTracked !== 0) {
|
|
13359
|
+
writer.uint32(40).uint32(message.satellitesTracked);
|
|
13360
|
+
}
|
|
13361
|
+
if (message.satellitesInView !== 0) {
|
|
13362
|
+
writer.uint32(136).uint32(message.satellitesInView);
|
|
13363
|
+
}
|
|
13364
|
+
if (message.isUsedInFixValid !== false) {
|
|
13365
|
+
writer.uint32(160).bool(message.isUsedInFixValid);
|
|
13366
|
+
}
|
|
13367
|
+
if (message.fixMode !== 0) {
|
|
13368
|
+
writer.uint32(168).int32(message.fixMode);
|
|
13369
|
+
}
|
|
13370
|
+
if (message.hdop !== 0) {
|
|
13371
|
+
writer.uint32(53).float(message.hdop);
|
|
13372
|
+
}
|
|
13373
|
+
if (message.pdop !== 0) {
|
|
13374
|
+
writer.uint32(181).float(message.pdop);
|
|
13375
|
+
}
|
|
13376
|
+
if (message.vdop !== 0) {
|
|
13377
|
+
writer.uint32(189).float(message.vdop);
|
|
13378
|
+
}
|
|
13379
|
+
if (message.globalPosition !== undefined) {
|
|
13380
|
+
exports.LatLongPosition.encode(message.globalPosition, writer.uint32(58).fork()).join();
|
|
13381
|
+
}
|
|
13382
|
+
if (message.altitude !== 0) {
|
|
13383
|
+
writer.uint32(197).float(message.altitude);
|
|
13384
|
+
}
|
|
13385
|
+
if (message.stddevLatitude !== 0) {
|
|
13386
|
+
writer.uint32(69).float(message.stddevLatitude);
|
|
13387
|
+
}
|
|
13388
|
+
if (message.stddevLongitude !== 0) {
|
|
13389
|
+
writer.uint32(77).float(message.stddevLongitude);
|
|
13390
|
+
}
|
|
13391
|
+
if (message.stddevAltitude !== 0) {
|
|
13392
|
+
writer.uint32(205).float(message.stddevAltitude);
|
|
13393
|
+
}
|
|
13394
|
+
if (message.stddevSemiMajor !== 0) {
|
|
13395
|
+
writer.uint32(213).float(message.stddevSemiMajor);
|
|
13396
|
+
}
|
|
13397
|
+
if (message.stddevSemiMinor !== 0) {
|
|
13398
|
+
writer.uint32(221).float(message.stddevSemiMinor);
|
|
13399
|
+
}
|
|
13400
|
+
if (message.errorEllipseOrientation !== 0) {
|
|
13401
|
+
writer.uint32(229).float(message.errorEllipseOrientation);
|
|
13402
|
+
}
|
|
13403
|
+
if (message.rangeRms !== 0) {
|
|
13404
|
+
writer.uint32(237).float(message.rangeRms);
|
|
13405
|
+
}
|
|
13406
|
+
if (message.isAccuracyValid !== false) {
|
|
13407
|
+
writer.uint32(144).bool(message.isAccuracyValid);
|
|
13408
|
+
}
|
|
13409
|
+
if (message.courseOverGround !== 0) {
|
|
13410
|
+
writer.uint32(85).float(message.courseOverGround);
|
|
13411
|
+
}
|
|
13412
|
+
if (message.isCourseValid !== false) {
|
|
13413
|
+
writer.uint32(152).bool(message.isCourseValid);
|
|
13414
|
+
}
|
|
13415
|
+
if (message.speedOverGround !== 0) {
|
|
13416
|
+
writer.uint32(93).float(message.speedOverGround);
|
|
13417
|
+
}
|
|
13418
|
+
if (message.differentialAge !== 0) {
|
|
13419
|
+
writer.uint32(245).float(message.differentialAge);
|
|
13420
|
+
}
|
|
13421
|
+
if (message.differentialStation !== 0) {
|
|
13422
|
+
writer.uint32(248).int32(message.differentialStation);
|
|
13423
|
+
}
|
|
13424
|
+
if (message.baudRate !== 0) {
|
|
13425
|
+
writer.uint32(96).uint32(message.baudRate);
|
|
13426
|
+
}
|
|
13427
|
+
if (message.reconnectCount !== 0) {
|
|
13428
|
+
writer.uint32(104).uint32(message.reconnectCount);
|
|
13429
|
+
}
|
|
13430
|
+
if (message.receiveErrorCount !== 0) {
|
|
13431
|
+
writer.uint32(112).uint32(message.receiveErrorCount);
|
|
13432
|
+
}
|
|
13433
|
+
if (message.timeSinceLastSentence !== 0) {
|
|
13434
|
+
writer.uint32(125).float(message.timeSinceLastSentence);
|
|
13435
|
+
}
|
|
13436
|
+
for (const v of message.satellites) {
|
|
13437
|
+
exports.GnssSatellite.encode(v, writer.uint32(130).fork()).join();
|
|
13438
|
+
}
|
|
13439
|
+
return writer;
|
|
13440
|
+
},
|
|
13441
|
+
decode(input, length) {
|
|
13442
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13443
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13444
|
+
const message = createBaseGnssStatus();
|
|
13445
|
+
while (reader.pos < end) {
|
|
13446
|
+
const tag = reader.uint32();
|
|
13447
|
+
switch (tag >>> 3) {
|
|
13448
|
+
case 1: {
|
|
13449
|
+
if (tag !== 8) {
|
|
13450
|
+
break;
|
|
13451
|
+
}
|
|
13452
|
+
message.receiverConnected = reader.bool();
|
|
13453
|
+
continue;
|
|
13454
|
+
}
|
|
13455
|
+
case 2: {
|
|
13456
|
+
if (tag !== 16) {
|
|
13457
|
+
break;
|
|
13458
|
+
}
|
|
13459
|
+
message.fixQuality = reader.uint32();
|
|
13460
|
+
continue;
|
|
13461
|
+
}
|
|
13462
|
+
case 3: {
|
|
13463
|
+
if (tag !== 24) {
|
|
13464
|
+
break;
|
|
13465
|
+
}
|
|
13466
|
+
message.isValid = reader.bool();
|
|
13467
|
+
continue;
|
|
13468
|
+
}
|
|
13469
|
+
case 4: {
|
|
13470
|
+
if (tag !== 32) {
|
|
13471
|
+
break;
|
|
13472
|
+
}
|
|
13473
|
+
message.satellitesUsed = reader.uint32();
|
|
13474
|
+
continue;
|
|
13475
|
+
}
|
|
13476
|
+
case 5: {
|
|
13477
|
+
if (tag !== 40) {
|
|
13478
|
+
break;
|
|
13479
|
+
}
|
|
13480
|
+
message.satellitesTracked = reader.uint32();
|
|
13481
|
+
continue;
|
|
13482
|
+
}
|
|
13483
|
+
case 17: {
|
|
13484
|
+
if (tag !== 136) {
|
|
13485
|
+
break;
|
|
13486
|
+
}
|
|
13487
|
+
message.satellitesInView = reader.uint32();
|
|
13488
|
+
continue;
|
|
13489
|
+
}
|
|
13490
|
+
case 20: {
|
|
13491
|
+
if (tag !== 160) {
|
|
13492
|
+
break;
|
|
13493
|
+
}
|
|
13494
|
+
message.isUsedInFixValid = reader.bool();
|
|
13495
|
+
continue;
|
|
13496
|
+
}
|
|
13497
|
+
case 21: {
|
|
13498
|
+
if (tag !== 168) {
|
|
13499
|
+
break;
|
|
13500
|
+
}
|
|
13501
|
+
message.fixMode = reader.int32();
|
|
13502
|
+
continue;
|
|
13503
|
+
}
|
|
13504
|
+
case 6: {
|
|
13505
|
+
if (tag !== 53) {
|
|
13506
|
+
break;
|
|
13507
|
+
}
|
|
13508
|
+
message.hdop = reader.float();
|
|
13509
|
+
continue;
|
|
13510
|
+
}
|
|
13511
|
+
case 22: {
|
|
13512
|
+
if (tag !== 181) {
|
|
13513
|
+
break;
|
|
13514
|
+
}
|
|
13515
|
+
message.pdop = reader.float();
|
|
13516
|
+
continue;
|
|
13517
|
+
}
|
|
13518
|
+
case 23: {
|
|
13519
|
+
if (tag !== 189) {
|
|
13520
|
+
break;
|
|
13521
|
+
}
|
|
13522
|
+
message.vdop = reader.float();
|
|
13523
|
+
continue;
|
|
13524
|
+
}
|
|
13525
|
+
case 7: {
|
|
13526
|
+
if (tag !== 58) {
|
|
13527
|
+
break;
|
|
13528
|
+
}
|
|
13529
|
+
message.globalPosition = exports.LatLongPosition.decode(reader, reader.uint32());
|
|
13530
|
+
continue;
|
|
13531
|
+
}
|
|
13532
|
+
case 24: {
|
|
13533
|
+
if (tag !== 197) {
|
|
13534
|
+
break;
|
|
13535
|
+
}
|
|
13536
|
+
message.altitude = reader.float();
|
|
13537
|
+
continue;
|
|
13538
|
+
}
|
|
13539
|
+
case 8: {
|
|
13540
|
+
if (tag !== 69) {
|
|
13541
|
+
break;
|
|
13542
|
+
}
|
|
13543
|
+
message.stddevLatitude = reader.float();
|
|
13544
|
+
continue;
|
|
13545
|
+
}
|
|
13546
|
+
case 9: {
|
|
13547
|
+
if (tag !== 77) {
|
|
13548
|
+
break;
|
|
13549
|
+
}
|
|
13550
|
+
message.stddevLongitude = reader.float();
|
|
13551
|
+
continue;
|
|
13552
|
+
}
|
|
13553
|
+
case 25: {
|
|
13554
|
+
if (tag !== 205) {
|
|
13555
|
+
break;
|
|
13556
|
+
}
|
|
13557
|
+
message.stddevAltitude = reader.float();
|
|
13558
|
+
continue;
|
|
13559
|
+
}
|
|
13560
|
+
case 26: {
|
|
13561
|
+
if (tag !== 213) {
|
|
13562
|
+
break;
|
|
13563
|
+
}
|
|
13564
|
+
message.stddevSemiMajor = reader.float();
|
|
13565
|
+
continue;
|
|
13566
|
+
}
|
|
13567
|
+
case 27: {
|
|
13568
|
+
if (tag !== 221) {
|
|
13569
|
+
break;
|
|
13570
|
+
}
|
|
13571
|
+
message.stddevSemiMinor = reader.float();
|
|
13572
|
+
continue;
|
|
13573
|
+
}
|
|
13574
|
+
case 28: {
|
|
13575
|
+
if (tag !== 229) {
|
|
13576
|
+
break;
|
|
13577
|
+
}
|
|
13578
|
+
message.errorEllipseOrientation = reader.float();
|
|
13579
|
+
continue;
|
|
13580
|
+
}
|
|
13581
|
+
case 29: {
|
|
13582
|
+
if (tag !== 237) {
|
|
13583
|
+
break;
|
|
13584
|
+
}
|
|
13585
|
+
message.rangeRms = reader.float();
|
|
13586
|
+
continue;
|
|
13587
|
+
}
|
|
13588
|
+
case 18: {
|
|
13589
|
+
if (tag !== 144) {
|
|
13590
|
+
break;
|
|
13591
|
+
}
|
|
13592
|
+
message.isAccuracyValid = reader.bool();
|
|
13593
|
+
continue;
|
|
13594
|
+
}
|
|
13595
|
+
case 10: {
|
|
13596
|
+
if (tag !== 85) {
|
|
13597
|
+
break;
|
|
13598
|
+
}
|
|
13599
|
+
message.courseOverGround = reader.float();
|
|
13600
|
+
continue;
|
|
13601
|
+
}
|
|
13602
|
+
case 19: {
|
|
13603
|
+
if (tag !== 152) {
|
|
13604
|
+
break;
|
|
13605
|
+
}
|
|
13606
|
+
message.isCourseValid = reader.bool();
|
|
13607
|
+
continue;
|
|
13608
|
+
}
|
|
13609
|
+
case 11: {
|
|
13610
|
+
if (tag !== 93) {
|
|
13611
|
+
break;
|
|
13612
|
+
}
|
|
13613
|
+
message.speedOverGround = reader.float();
|
|
13614
|
+
continue;
|
|
13615
|
+
}
|
|
13616
|
+
case 30: {
|
|
13617
|
+
if (tag !== 245) {
|
|
13618
|
+
break;
|
|
13619
|
+
}
|
|
13620
|
+
message.differentialAge = reader.float();
|
|
13621
|
+
continue;
|
|
13622
|
+
}
|
|
13623
|
+
case 31: {
|
|
13624
|
+
if (tag !== 248) {
|
|
13625
|
+
break;
|
|
13626
|
+
}
|
|
13627
|
+
message.differentialStation = reader.int32();
|
|
13628
|
+
continue;
|
|
13629
|
+
}
|
|
13630
|
+
case 12: {
|
|
13631
|
+
if (tag !== 96) {
|
|
13632
|
+
break;
|
|
13633
|
+
}
|
|
13634
|
+
message.baudRate = reader.uint32();
|
|
13635
|
+
continue;
|
|
13636
|
+
}
|
|
13637
|
+
case 13: {
|
|
13638
|
+
if (tag !== 104) {
|
|
13639
|
+
break;
|
|
13640
|
+
}
|
|
13641
|
+
message.reconnectCount = reader.uint32();
|
|
13642
|
+
continue;
|
|
13643
|
+
}
|
|
13644
|
+
case 14: {
|
|
13645
|
+
if (tag !== 112) {
|
|
13646
|
+
break;
|
|
13647
|
+
}
|
|
13648
|
+
message.receiveErrorCount = reader.uint32();
|
|
13649
|
+
continue;
|
|
13650
|
+
}
|
|
13651
|
+
case 15: {
|
|
13652
|
+
if (tag !== 125) {
|
|
13653
|
+
break;
|
|
13654
|
+
}
|
|
13655
|
+
message.timeSinceLastSentence = reader.float();
|
|
13656
|
+
continue;
|
|
13657
|
+
}
|
|
13658
|
+
case 16: {
|
|
13659
|
+
if (tag !== 130) {
|
|
13660
|
+
break;
|
|
13661
|
+
}
|
|
13662
|
+
message.satellites.push(exports.GnssSatellite.decode(reader, reader.uint32()));
|
|
13663
|
+
continue;
|
|
13664
|
+
}
|
|
13665
|
+
}
|
|
13666
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13667
|
+
break;
|
|
13668
|
+
}
|
|
13669
|
+
reader.skip(tag & 7);
|
|
13670
|
+
}
|
|
13671
|
+
return message;
|
|
13672
|
+
},
|
|
13673
|
+
fromJSON(object) {
|
|
13674
|
+
return {
|
|
13675
|
+
receiverConnected: isSet(object.receiverConnected) ? gt.Boolean(object.receiverConnected) : false,
|
|
13676
|
+
fixQuality: isSet(object.fixQuality) ? gt.Number(object.fixQuality) : 0,
|
|
13677
|
+
isValid: isSet(object.isValid) ? gt.Boolean(object.isValid) : false,
|
|
13678
|
+
satellitesUsed: isSet(object.satellitesUsed) ? gt.Number(object.satellitesUsed) : 0,
|
|
13679
|
+
satellitesTracked: isSet(object.satellitesTracked) ? gt.Number(object.satellitesTracked) : 0,
|
|
13680
|
+
satellitesInView: isSet(object.satellitesInView) ? gt.Number(object.satellitesInView) : 0,
|
|
13681
|
+
isUsedInFixValid: isSet(object.isUsedInFixValid) ? gt.Boolean(object.isUsedInFixValid) : false,
|
|
13682
|
+
fixMode: isSet(object.fixMode) ? gnssFixModeFromJSON(object.fixMode) : 0,
|
|
13683
|
+
hdop: isSet(object.hdop) ? gt.Number(object.hdop) : 0,
|
|
13684
|
+
pdop: isSet(object.pdop) ? gt.Number(object.pdop) : 0,
|
|
13685
|
+
vdop: isSet(object.vdop) ? gt.Number(object.vdop) : 0,
|
|
13686
|
+
globalPosition: isSet(object.globalPosition) ? exports.LatLongPosition.fromJSON(object.globalPosition) : undefined,
|
|
13687
|
+
altitude: isSet(object.altitude) ? gt.Number(object.altitude) : 0,
|
|
13688
|
+
stddevLatitude: isSet(object.stddevLatitude) ? gt.Number(object.stddevLatitude) : 0,
|
|
13689
|
+
stddevLongitude: isSet(object.stddevLongitude) ? gt.Number(object.stddevLongitude) : 0,
|
|
13690
|
+
stddevAltitude: isSet(object.stddevAltitude) ? gt.Number(object.stddevAltitude) : 0,
|
|
13691
|
+
stddevSemiMajor: isSet(object.stddevSemiMajor) ? gt.Number(object.stddevSemiMajor) : 0,
|
|
13692
|
+
stddevSemiMinor: isSet(object.stddevSemiMinor) ? gt.Number(object.stddevSemiMinor) : 0,
|
|
13693
|
+
errorEllipseOrientation: isSet(object.errorEllipseOrientation) ? gt.Number(object.errorEllipseOrientation) : 0,
|
|
13694
|
+
rangeRms: isSet(object.rangeRms) ? gt.Number(object.rangeRms) : 0,
|
|
13695
|
+
isAccuracyValid: isSet(object.isAccuracyValid) ? gt.Boolean(object.isAccuracyValid) : false,
|
|
13696
|
+
courseOverGround: isSet(object.courseOverGround) ? gt.Number(object.courseOverGround) : 0,
|
|
13697
|
+
isCourseValid: isSet(object.isCourseValid) ? gt.Boolean(object.isCourseValid) : false,
|
|
13698
|
+
speedOverGround: isSet(object.speedOverGround) ? gt.Number(object.speedOverGround) : 0,
|
|
13699
|
+
differentialAge: isSet(object.differentialAge) ? gt.Number(object.differentialAge) : 0,
|
|
13700
|
+
differentialStation: isSet(object.differentialStation) ? gt.Number(object.differentialStation) : 0,
|
|
13701
|
+
baudRate: isSet(object.baudRate) ? gt.Number(object.baudRate) : 0,
|
|
13702
|
+
reconnectCount: isSet(object.reconnectCount) ? gt.Number(object.reconnectCount) : 0,
|
|
13703
|
+
receiveErrorCount: isSet(object.receiveErrorCount) ? gt.Number(object.receiveErrorCount) : 0,
|
|
13704
|
+
timeSinceLastSentence: isSet(object.timeSinceLastSentence) ? gt.Number(object.timeSinceLastSentence) : 0,
|
|
13705
|
+
satellites: gt.Array.isArray(object?.satellites)
|
|
13706
|
+
? object.satellites.map((e) => exports.GnssSatellite.fromJSON(e))
|
|
13707
|
+
: [],
|
|
13708
|
+
};
|
|
13709
|
+
},
|
|
13710
|
+
toJSON(message) {
|
|
13711
|
+
const obj = {};
|
|
13712
|
+
if (message.receiverConnected !== false) {
|
|
13713
|
+
obj.receiverConnected = message.receiverConnected;
|
|
13714
|
+
}
|
|
13715
|
+
if (message.fixQuality !== 0) {
|
|
13716
|
+
obj.fixQuality = Math.round(message.fixQuality);
|
|
13717
|
+
}
|
|
13718
|
+
if (message.isValid !== false) {
|
|
13719
|
+
obj.isValid = message.isValid;
|
|
13720
|
+
}
|
|
13721
|
+
if (message.satellitesUsed !== 0) {
|
|
13722
|
+
obj.satellitesUsed = Math.round(message.satellitesUsed);
|
|
13723
|
+
}
|
|
13724
|
+
if (message.satellitesTracked !== 0) {
|
|
13725
|
+
obj.satellitesTracked = Math.round(message.satellitesTracked);
|
|
13726
|
+
}
|
|
13727
|
+
if (message.satellitesInView !== 0) {
|
|
13728
|
+
obj.satellitesInView = Math.round(message.satellitesInView);
|
|
13729
|
+
}
|
|
13730
|
+
if (message.isUsedInFixValid !== false) {
|
|
13731
|
+
obj.isUsedInFixValid = message.isUsedInFixValid;
|
|
13732
|
+
}
|
|
13733
|
+
if (message.fixMode !== 0) {
|
|
13734
|
+
obj.fixMode = gnssFixModeToJSON(message.fixMode);
|
|
13735
|
+
}
|
|
13736
|
+
if (message.hdop !== 0) {
|
|
13737
|
+
obj.hdop = message.hdop;
|
|
13738
|
+
}
|
|
13739
|
+
if (message.pdop !== 0) {
|
|
13740
|
+
obj.pdop = message.pdop;
|
|
13741
|
+
}
|
|
13742
|
+
if (message.vdop !== 0) {
|
|
13743
|
+
obj.vdop = message.vdop;
|
|
13744
|
+
}
|
|
13745
|
+
if (message.globalPosition !== undefined) {
|
|
13746
|
+
obj.globalPosition = exports.LatLongPosition.toJSON(message.globalPosition);
|
|
13747
|
+
}
|
|
13748
|
+
if (message.altitude !== 0) {
|
|
13749
|
+
obj.altitude = message.altitude;
|
|
13750
|
+
}
|
|
13751
|
+
if (message.stddevLatitude !== 0) {
|
|
13752
|
+
obj.stddevLatitude = message.stddevLatitude;
|
|
13753
|
+
}
|
|
13754
|
+
if (message.stddevLongitude !== 0) {
|
|
13755
|
+
obj.stddevLongitude = message.stddevLongitude;
|
|
13756
|
+
}
|
|
13757
|
+
if (message.stddevAltitude !== 0) {
|
|
13758
|
+
obj.stddevAltitude = message.stddevAltitude;
|
|
13759
|
+
}
|
|
13760
|
+
if (message.stddevSemiMajor !== 0) {
|
|
13761
|
+
obj.stddevSemiMajor = message.stddevSemiMajor;
|
|
13762
|
+
}
|
|
13763
|
+
if (message.stddevSemiMinor !== 0) {
|
|
13764
|
+
obj.stddevSemiMinor = message.stddevSemiMinor;
|
|
13765
|
+
}
|
|
13766
|
+
if (message.errorEllipseOrientation !== 0) {
|
|
13767
|
+
obj.errorEllipseOrientation = message.errorEllipseOrientation;
|
|
13768
|
+
}
|
|
13769
|
+
if (message.rangeRms !== 0) {
|
|
13770
|
+
obj.rangeRms = message.rangeRms;
|
|
13771
|
+
}
|
|
13772
|
+
if (message.isAccuracyValid !== false) {
|
|
13773
|
+
obj.isAccuracyValid = message.isAccuracyValid;
|
|
13774
|
+
}
|
|
13775
|
+
if (message.courseOverGround !== 0) {
|
|
13776
|
+
obj.courseOverGround = message.courseOverGround;
|
|
13777
|
+
}
|
|
13778
|
+
if (message.isCourseValid !== false) {
|
|
13779
|
+
obj.isCourseValid = message.isCourseValid;
|
|
13780
|
+
}
|
|
13781
|
+
if (message.speedOverGround !== 0) {
|
|
13782
|
+
obj.speedOverGround = message.speedOverGround;
|
|
13783
|
+
}
|
|
13784
|
+
if (message.differentialAge !== 0) {
|
|
13785
|
+
obj.differentialAge = message.differentialAge;
|
|
13786
|
+
}
|
|
13787
|
+
if (message.differentialStation !== 0) {
|
|
13788
|
+
obj.differentialStation = Math.round(message.differentialStation);
|
|
13789
|
+
}
|
|
13790
|
+
if (message.baudRate !== 0) {
|
|
13791
|
+
obj.baudRate = Math.round(message.baudRate);
|
|
13792
|
+
}
|
|
13793
|
+
if (message.reconnectCount !== 0) {
|
|
13794
|
+
obj.reconnectCount = Math.round(message.reconnectCount);
|
|
13795
|
+
}
|
|
13796
|
+
if (message.receiveErrorCount !== 0) {
|
|
13797
|
+
obj.receiveErrorCount = Math.round(message.receiveErrorCount);
|
|
13798
|
+
}
|
|
13799
|
+
if (message.timeSinceLastSentence !== 0) {
|
|
13800
|
+
obj.timeSinceLastSentence = message.timeSinceLastSentence;
|
|
13801
|
+
}
|
|
13802
|
+
if (message.satellites?.length) {
|
|
13803
|
+
obj.satellites = message.satellites.map((e) => exports.GnssSatellite.toJSON(e));
|
|
13804
|
+
}
|
|
13805
|
+
return obj;
|
|
13806
|
+
},
|
|
13807
|
+
create(base) {
|
|
13808
|
+
return exports.GnssStatus.fromPartial(base ?? {});
|
|
13809
|
+
},
|
|
13810
|
+
fromPartial(object) {
|
|
13811
|
+
const message = createBaseGnssStatus();
|
|
13812
|
+
message.receiverConnected = object.receiverConnected ?? false;
|
|
13813
|
+
message.fixQuality = object.fixQuality ?? 0;
|
|
13814
|
+
message.isValid = object.isValid ?? false;
|
|
13815
|
+
message.satellitesUsed = object.satellitesUsed ?? 0;
|
|
13816
|
+
message.satellitesTracked = object.satellitesTracked ?? 0;
|
|
13817
|
+
message.satellitesInView = object.satellitesInView ?? 0;
|
|
13818
|
+
message.isUsedInFixValid = object.isUsedInFixValid ?? false;
|
|
13819
|
+
message.fixMode = object.fixMode ?? 0;
|
|
13820
|
+
message.hdop = object.hdop ?? 0;
|
|
13821
|
+
message.pdop = object.pdop ?? 0;
|
|
13822
|
+
message.vdop = object.vdop ?? 0;
|
|
13823
|
+
message.globalPosition = (object.globalPosition !== undefined && object.globalPosition !== null)
|
|
13824
|
+
? exports.LatLongPosition.fromPartial(object.globalPosition)
|
|
13825
|
+
: undefined;
|
|
13826
|
+
message.altitude = object.altitude ?? 0;
|
|
13827
|
+
message.stddevLatitude = object.stddevLatitude ?? 0;
|
|
13828
|
+
message.stddevLongitude = object.stddevLongitude ?? 0;
|
|
13829
|
+
message.stddevAltitude = object.stddevAltitude ?? 0;
|
|
13830
|
+
message.stddevSemiMajor = object.stddevSemiMajor ?? 0;
|
|
13831
|
+
message.stddevSemiMinor = object.stddevSemiMinor ?? 0;
|
|
13832
|
+
message.errorEllipseOrientation = object.errorEllipseOrientation ?? 0;
|
|
13833
|
+
message.rangeRms = object.rangeRms ?? 0;
|
|
13834
|
+
message.isAccuracyValid = object.isAccuracyValid ?? false;
|
|
13835
|
+
message.courseOverGround = object.courseOverGround ?? 0;
|
|
13836
|
+
message.isCourseValid = object.isCourseValid ?? false;
|
|
13837
|
+
message.speedOverGround = object.speedOverGround ?? 0;
|
|
13838
|
+
message.differentialAge = object.differentialAge ?? 0;
|
|
13839
|
+
message.differentialStation = object.differentialStation ?? 0;
|
|
13840
|
+
message.baudRate = object.baudRate ?? 0;
|
|
13841
|
+
message.reconnectCount = object.reconnectCount ?? 0;
|
|
13842
|
+
message.receiveErrorCount = object.receiveErrorCount ?? 0;
|
|
13843
|
+
message.timeSinceLastSentence = object.timeSinceLastSentence ?? 0;
|
|
13844
|
+
message.satellites = object.satellites?.map((e) => exports.GnssSatellite.fromPartial(e)) || [];
|
|
13845
|
+
return message;
|
|
13846
|
+
},
|
|
13847
|
+
};
|
|
13051
13848
|
function createBaseGuestPortDevice() {
|
|
13052
13849
|
return {
|
|
13053
13850
|
deviceId: 0,
|
|
@@ -15274,6 +16071,57 @@ exports.MultibeamDiscovery = {
|
|
|
15274
16071
|
return message;
|
|
15275
16072
|
},
|
|
15276
16073
|
};
|
|
16074
|
+
function createBaseMultibeamColorFilter() {
|
|
16075
|
+
return { rgb: new Uint8Array(0) };
|
|
16076
|
+
}
|
|
16077
|
+
exports.MultibeamColorFilter = {
|
|
16078
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
16079
|
+
if (message.rgb.length !== 0) {
|
|
16080
|
+
writer.uint32(10).bytes(message.rgb);
|
|
16081
|
+
}
|
|
16082
|
+
return writer;
|
|
16083
|
+
},
|
|
16084
|
+
decode(input, length) {
|
|
16085
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
16086
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
16087
|
+
const message = createBaseMultibeamColorFilter();
|
|
16088
|
+
while (reader.pos < end) {
|
|
16089
|
+
const tag = reader.uint32();
|
|
16090
|
+
switch (tag >>> 3) {
|
|
16091
|
+
case 1: {
|
|
16092
|
+
if (tag !== 10) {
|
|
16093
|
+
break;
|
|
16094
|
+
}
|
|
16095
|
+
message.rgb = reader.bytes();
|
|
16096
|
+
continue;
|
|
16097
|
+
}
|
|
16098
|
+
}
|
|
16099
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
16100
|
+
break;
|
|
16101
|
+
}
|
|
16102
|
+
reader.skip(tag & 7);
|
|
16103
|
+
}
|
|
16104
|
+
return message;
|
|
16105
|
+
},
|
|
16106
|
+
fromJSON(object) {
|
|
16107
|
+
return { rgb: isSet(object.rgb) ? bytesFromBase64(object.rgb) : new Uint8Array(0) };
|
|
16108
|
+
},
|
|
16109
|
+
toJSON(message) {
|
|
16110
|
+
const obj = {};
|
|
16111
|
+
if (message.rgb.length !== 0) {
|
|
16112
|
+
obj.rgb = base64FromBytes(message.rgb);
|
|
16113
|
+
}
|
|
16114
|
+
return obj;
|
|
16115
|
+
},
|
|
16116
|
+
create(base) {
|
|
16117
|
+
return exports.MultibeamColorFilter.fromPartial(base ?? {});
|
|
16118
|
+
},
|
|
16119
|
+
fromPartial(object) {
|
|
16120
|
+
const message = createBaseMultibeamColorFilter();
|
|
16121
|
+
message.rgb = object.rgb ?? new Uint8Array(0);
|
|
16122
|
+
return message;
|
|
16123
|
+
},
|
|
16124
|
+
};
|
|
15277
16125
|
function createBaseMultibeamErrorFlags() {
|
|
15278
16126
|
return { connectedToAnotherClient: false, deviceOverheating: false, outOfWater: false };
|
|
15279
16127
|
}
|