@blueyerobotics/protocol-definitions 3.3.0-991d560c → 3.3.0-c6f3225a
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 +127 -6
- package/dist/message_formats.js +796 -5
- package/dist/req_rep.d.ts +9 -1
- package/dist/req_rep.js +21 -2
- package/dist/telemetry.d.ts +7 -1
- package/dist/telemetry.js +55 -2
- package/package.json +1 -1
|
@@ -552,6 +552,36 @@ export declare enum NavigationSensorID {
|
|
|
552
552
|
}
|
|
553
553
|
export declare function navigationSensorIDFromJSON(object: any): NavigationSensorID;
|
|
554
554
|
export declare function navigationSensorIDToJSON(object: NavigationSensorID): string;
|
|
555
|
+
/** Position fix mode reported by the NMEA GSA sentence. */
|
|
556
|
+
export declare enum GnssFixMode {
|
|
557
|
+
/** GNSS_FIX_MODE_UNSPECIFIED - No GSA sentence has been received. */
|
|
558
|
+
GNSS_FIX_MODE_UNSPECIFIED = 0,
|
|
559
|
+
/** GNSS_FIX_MODE_NO_FIX - The receiver has no position fix. */
|
|
560
|
+
GNSS_FIX_MODE_NO_FIX = 1,
|
|
561
|
+
/** GNSS_FIX_MODE_2D - Horizontal fix only, no usable altitude. */
|
|
562
|
+
GNSS_FIX_MODE_2D = 2,
|
|
563
|
+
/** GNSS_FIX_MODE_3D - Full three dimensional fix. */
|
|
564
|
+
GNSS_FIX_MODE_3D = 3,
|
|
565
|
+
UNRECOGNIZED = -1
|
|
566
|
+
}
|
|
567
|
+
export declare function gnssFixModeFromJSON(object: any): GnssFixMode;
|
|
568
|
+
export declare function gnssFixModeToJSON(object: GnssFixMode): string;
|
|
569
|
+
/** GNSS constellation a satellite belongs to. */
|
|
570
|
+
export declare enum GnssConstellation {
|
|
571
|
+
/** GNSS_CONSTELLATION_UNSPECIFIED - Unspecified. */
|
|
572
|
+
GNSS_CONSTELLATION_UNSPECIFIED = 0,
|
|
573
|
+
/** GNSS_CONSTELLATION_GPS - GPS. */
|
|
574
|
+
GNSS_CONSTELLATION_GPS = 1,
|
|
575
|
+
/** GNSS_CONSTELLATION_GLONASS - GLONASS. */
|
|
576
|
+
GNSS_CONSTELLATION_GLONASS = 2,
|
|
577
|
+
/** GNSS_CONSTELLATION_GALILEO - Galileo. */
|
|
578
|
+
GNSS_CONSTELLATION_GALILEO = 3,
|
|
579
|
+
/** GNSS_CONSTELLATION_BEIDOU - BeiDou. */
|
|
580
|
+
GNSS_CONSTELLATION_BEIDOU = 4,
|
|
581
|
+
UNRECOGNIZED = -1
|
|
582
|
+
}
|
|
583
|
+
export declare function gnssConstellationFromJSON(object: any): GnssConstellation;
|
|
584
|
+
export declare function gnssConstellationToJSON(object: GnssConstellation): string;
|
|
555
585
|
/** Status for guest port devices that can be attached and detached. */
|
|
556
586
|
export declare enum GuestPortDetachStatus {
|
|
557
587
|
/** GUEST_PORT_DETACH_STATUS_UNSPECIFIED - Unspecified (Default for non-detachable devices). */
|
|
@@ -752,7 +782,7 @@ export interface MotionInput {
|
|
|
752
782
|
roll: number;
|
|
753
783
|
/** Pitch down (negative) or up (positive). (-1..1). */
|
|
754
784
|
pitch: number;
|
|
755
|
-
/**
|
|
785
|
+
/** Clockwise (positive) and counter-clockwise (negative) rotation (-1..1). */
|
|
756
786
|
yaw: number;
|
|
757
787
|
/** Modifier used to reduce the speed of the motion (0..1). */
|
|
758
788
|
slow: number;
|
|
@@ -2041,6 +2071,86 @@ export interface NavigationSensorStatus {
|
|
|
2041
2071
|
/** Global position from sensor. */
|
|
2042
2072
|
globalPosition: LatLongPosition | undefined;
|
|
2043
2073
|
}
|
|
2074
|
+
/** Satellite tracked by the Blueye GNSS receiver. */
|
|
2075
|
+
export interface GnssSatellite {
|
|
2076
|
+
/** Constellation the satellite belongs to. */
|
|
2077
|
+
constellation: GnssConstellation;
|
|
2078
|
+
/** Satellite id within the constellation. */
|
|
2079
|
+
satelliteId: number;
|
|
2080
|
+
/** Carrier to noise ratio (dB-Hz). */
|
|
2081
|
+
snr: number;
|
|
2082
|
+
/** Elevation above the horizon (°, 0..90), or -1 when the receiver did not report it. */
|
|
2083
|
+
elevation: number;
|
|
2084
|
+
/** Azimuth clockwise from true north (°, 0..359), or -1 when the receiver did not report it. */
|
|
2085
|
+
azimuth: number;
|
|
2086
|
+
/** Whether GSA lists the satellite as used in the fix. Only meaningful if is_used_in_fix_valid. */
|
|
2087
|
+
usedInFix: boolean;
|
|
2088
|
+
}
|
|
2089
|
+
/** Status of the onboard Blueye GNSS receiver and its driver. */
|
|
2090
|
+
export interface GnssStatus {
|
|
2091
|
+
/** True when the receiver is connected and producing NMEA sentences. */
|
|
2092
|
+
receiverConnected: boolean;
|
|
2093
|
+
/** NMEA GGA fix quality indicator (0 = no fix). */
|
|
2094
|
+
fixQuality: number;
|
|
2095
|
+
/** True when the receiver reports a usable position fix. */
|
|
2096
|
+
isValid: boolean;
|
|
2097
|
+
/** Number of satellites used in the position fix. */
|
|
2098
|
+
satellitesUsed: number;
|
|
2099
|
+
/** Satellites in the satellites list: those with a signal in the latest GSV burst. */
|
|
2100
|
+
satellitesTracked: number;
|
|
2101
|
+
/** Satellites predicted above the horizon, over all constellations; needs no signal. */
|
|
2102
|
+
satellitesInView: number;
|
|
2103
|
+
/** True when GSA could be attributed to a constellation, making used_in_fix usable. */
|
|
2104
|
+
isUsedInFixValid: boolean;
|
|
2105
|
+
/** Fix mode from GSA (2D/3D). */
|
|
2106
|
+
fixMode: GnssFixMode;
|
|
2107
|
+
/** Horizontal dilution of precision. */
|
|
2108
|
+
hdop: number;
|
|
2109
|
+
/** Position (3D) dilution of precision, from GSA. */
|
|
2110
|
+
pdop: number;
|
|
2111
|
+
/** Vertical dilution of precision, from GSA. */
|
|
2112
|
+
vdop: number;
|
|
2113
|
+
/** Reported global position. */
|
|
2114
|
+
globalPosition: LatLongPosition | undefined;
|
|
2115
|
+
/** Altitude above mean sea level (m), from GGA. */
|
|
2116
|
+
altitude: number;
|
|
2117
|
+
/** Standard deviation of the latitude (m). Meaningless unless is_accuracy_valid. */
|
|
2118
|
+
stddevLatitude: number;
|
|
2119
|
+
/** Standard deviation of the longitude (m). Meaningless unless is_accuracy_valid. */
|
|
2120
|
+
stddevLongitude: number;
|
|
2121
|
+
/** Standard deviation of the altitude (m). Meaningless unless is_accuracy_valid. */
|
|
2122
|
+
stddevAltitude: number;
|
|
2123
|
+
/** Semi-major axis of the horizontal error ellipse (m). */
|
|
2124
|
+
stddevSemiMajor: number;
|
|
2125
|
+
/** Semi-minor axis of the horizontal error ellipse (m). */
|
|
2126
|
+
stddevSemiMinor: number;
|
|
2127
|
+
/** Orientation of the semi-major axis, clockwise from true north (°). */
|
|
2128
|
+
errorEllipseOrientation: number;
|
|
2129
|
+
/** RMS of the range residuals (m), from GST. */
|
|
2130
|
+
rangeRms: number;
|
|
2131
|
+
/** True once the receiver has reported a GST sentence to derive the deviations from. */
|
|
2132
|
+
isAccuracyValid: boolean;
|
|
2133
|
+
/** Course over ground (°). Meaningless unless is_course_valid. */
|
|
2134
|
+
courseOverGround: number;
|
|
2135
|
+
/** True when the fix is valid and the receiver actually reported a course. */
|
|
2136
|
+
isCourseValid: boolean;
|
|
2137
|
+
/** Speed over ground (m/s). */
|
|
2138
|
+
speedOverGround: number;
|
|
2139
|
+
/** Age of the differential corrections (s), or -1 without DGPS/RTK. */
|
|
2140
|
+
differentialAge: number;
|
|
2141
|
+
/** Id of the station supplying the differential corrections, or -1 when absent. */
|
|
2142
|
+
differentialStation: number;
|
|
2143
|
+
/** Serial baud rate in use (bit/s). */
|
|
2144
|
+
baudRate: number;
|
|
2145
|
+
/** Times the driver has reconnected to the receiver since boot. */
|
|
2146
|
+
reconnectCount: number;
|
|
2147
|
+
/** Receive errors seen by the driver since boot. */
|
|
2148
|
+
receiveErrorCount: number;
|
|
2149
|
+
/** Time since the last NMEA sentence was received (s). */
|
|
2150
|
+
timeSinceLastSentence: number;
|
|
2151
|
+
/** Satellites currently tracked with signal strength. */
|
|
2152
|
+
satellites: GnssSatellite[];
|
|
2153
|
+
}
|
|
2044
2154
|
/** Information about a device connected to one of the guest ports. */
|
|
2045
2155
|
export interface GuestPortDevice {
|
|
2046
2156
|
/** Blueye device identifier. */
|
|
@@ -2632,12 +2742,19 @@ export interface BoundingBox {
|
|
|
2632
2742
|
height: number;
|
|
2633
2743
|
}
|
|
2634
2744
|
/**
|
|
2635
|
-
* RLE-encoded binary segmentation mask
|
|
2745
|
+
* RLE-encoded binary segmentation mask with its own anchor box.
|
|
2636
2746
|
*
|
|
2637
2747
|
* The mask bitmap has dimensions (mask_width x mask_height) covering the
|
|
2638
|
-
*
|
|
2639
|
-
* data as packed uint16 little-endian: alternating
|
|
2640
|
-
* pixel runs starting with background.
|
|
2748
|
+
* mask_box region of the camera image. The counts field stores run-length
|
|
2749
|
+
* encoded data as packed uint16 little-endian: alternating
|
|
2750
|
+
* background/foreground pixel runs starting with background. Runs longer
|
|
2751
|
+
* than 65535 pixels are split by inserting a zero-length run of the
|
|
2752
|
+
* opposite class (e.g. 70000 becomes 65535, 0, 4465), so decoders need no
|
|
2753
|
+
* special handling — a zero-length run just toggles the class.
|
|
2754
|
+
*
|
|
2755
|
+
* Scale the mask to mask_box, not to the detection's bounding_box: the
|
|
2756
|
+
* bounding box may be smoothed by tracking, while mask_box is pinned to the
|
|
2757
|
+
* raw detection position, so the mask stays on the actual object pixels.
|
|
2641
2758
|
*/
|
|
2642
2759
|
export interface SegmentationMask {
|
|
2643
2760
|
/** Width of the RLE bitmap. */
|
|
@@ -2646,10 +2763,12 @@ export interface SegmentationMask {
|
|
|
2646
2763
|
maskHeight: number;
|
|
2647
2764
|
/** RLE counts as packed uint16 little-endian. */
|
|
2648
2765
|
counts: Uint8Array;
|
|
2766
|
+
/** Image region the mask bitmap covers (raw detection position, never smoothed). */
|
|
2767
|
+
maskBox: BoundingBox | undefined;
|
|
2649
2768
|
}
|
|
2650
2769
|
/** A single object detection from a computer vision model. */
|
|
2651
2770
|
export interface ObjectDetection {
|
|
2652
|
-
/** Bounding box of the detected object. */
|
|
2771
|
+
/** Bounding box of the detected object (may be smoothed by tracking). */
|
|
2653
2772
|
boundingBox: BoundingBox | undefined;
|
|
2654
2773
|
/** Detection confidence score (0..1). */
|
|
2655
2774
|
confidence: number;
|
|
@@ -2854,6 +2973,8 @@ export declare const ErrorFlags: MessageFns<ErrorFlags>;
|
|
|
2854
2973
|
export declare const CameraParameters: MessageFns<CameraParameters>;
|
|
2855
2974
|
export declare const OverlayParameters: MessageFns<OverlayParameters>;
|
|
2856
2975
|
export declare const NavigationSensorStatus: MessageFns<NavigationSensorStatus>;
|
|
2976
|
+
export declare const GnssSatellite: MessageFns<GnssSatellite>;
|
|
2977
|
+
export declare const GnssStatus: MessageFns<GnssStatus>;
|
|
2857
2978
|
export declare const GuestPortDevice: MessageFns<GuestPortDevice>;
|
|
2858
2979
|
export declare const GuestPortDeviceList: MessageFns<GuestPortDeviceList>;
|
|
2859
2980
|
export declare const GuestPortConnectorInfo: MessageFns<GuestPortConnectorInfo>;
|
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.NvmeInfo = exports.VideoCodecInfo = exports.ThermalZone = exports.MemoryInfo = exports.DlaInfo = exports.GpuInfo = exports.CpuCoreLoad = exports.CPUInfo = exports.PersistentStorageSettings = exports.MutltibeamRecordingIndex = exports.MultibeamFrameOffset = exports.MultibeamErrorFlags = 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 = 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;
|
|
@@ -1934,6 +1938,109 @@ function navigationSensorIDToJSON(object) {
|
|
|
1934
1938
|
return "UNRECOGNIZED";
|
|
1935
1939
|
}
|
|
1936
1940
|
}
|
|
1941
|
+
/** Position fix mode reported by the NMEA GSA sentence. */
|
|
1942
|
+
var GnssFixMode;
|
|
1943
|
+
(function (GnssFixMode) {
|
|
1944
|
+
/** GNSS_FIX_MODE_UNSPECIFIED - No GSA sentence has been received. */
|
|
1945
|
+
GnssFixMode[GnssFixMode["GNSS_FIX_MODE_UNSPECIFIED"] = 0] = "GNSS_FIX_MODE_UNSPECIFIED";
|
|
1946
|
+
/** GNSS_FIX_MODE_NO_FIX - The receiver has no position fix. */
|
|
1947
|
+
GnssFixMode[GnssFixMode["GNSS_FIX_MODE_NO_FIX"] = 1] = "GNSS_FIX_MODE_NO_FIX";
|
|
1948
|
+
/** GNSS_FIX_MODE_2D - Horizontal fix only, no usable altitude. */
|
|
1949
|
+
GnssFixMode[GnssFixMode["GNSS_FIX_MODE_2D"] = 2] = "GNSS_FIX_MODE_2D";
|
|
1950
|
+
/** GNSS_FIX_MODE_3D - Full three dimensional fix. */
|
|
1951
|
+
GnssFixMode[GnssFixMode["GNSS_FIX_MODE_3D"] = 3] = "GNSS_FIX_MODE_3D";
|
|
1952
|
+
GnssFixMode[GnssFixMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1953
|
+
})(GnssFixMode || (exports.GnssFixMode = GnssFixMode = {}));
|
|
1954
|
+
function gnssFixModeFromJSON(object) {
|
|
1955
|
+
switch (object) {
|
|
1956
|
+
case 0:
|
|
1957
|
+
case "GNSS_FIX_MODE_UNSPECIFIED":
|
|
1958
|
+
return GnssFixMode.GNSS_FIX_MODE_UNSPECIFIED;
|
|
1959
|
+
case 1:
|
|
1960
|
+
case "GNSS_FIX_MODE_NO_FIX":
|
|
1961
|
+
return GnssFixMode.GNSS_FIX_MODE_NO_FIX;
|
|
1962
|
+
case 2:
|
|
1963
|
+
case "GNSS_FIX_MODE_2D":
|
|
1964
|
+
return GnssFixMode.GNSS_FIX_MODE_2D;
|
|
1965
|
+
case 3:
|
|
1966
|
+
case "GNSS_FIX_MODE_3D":
|
|
1967
|
+
return GnssFixMode.GNSS_FIX_MODE_3D;
|
|
1968
|
+
case -1:
|
|
1969
|
+
case "UNRECOGNIZED":
|
|
1970
|
+
default:
|
|
1971
|
+
return GnssFixMode.UNRECOGNIZED;
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
function gnssFixModeToJSON(object) {
|
|
1975
|
+
switch (object) {
|
|
1976
|
+
case GnssFixMode.GNSS_FIX_MODE_UNSPECIFIED:
|
|
1977
|
+
return "GNSS_FIX_MODE_UNSPECIFIED";
|
|
1978
|
+
case GnssFixMode.GNSS_FIX_MODE_NO_FIX:
|
|
1979
|
+
return "GNSS_FIX_MODE_NO_FIX";
|
|
1980
|
+
case GnssFixMode.GNSS_FIX_MODE_2D:
|
|
1981
|
+
return "GNSS_FIX_MODE_2D";
|
|
1982
|
+
case GnssFixMode.GNSS_FIX_MODE_3D:
|
|
1983
|
+
return "GNSS_FIX_MODE_3D";
|
|
1984
|
+
case GnssFixMode.UNRECOGNIZED:
|
|
1985
|
+
default:
|
|
1986
|
+
return "UNRECOGNIZED";
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
/** GNSS constellation a satellite belongs to. */
|
|
1990
|
+
var GnssConstellation;
|
|
1991
|
+
(function (GnssConstellation) {
|
|
1992
|
+
/** GNSS_CONSTELLATION_UNSPECIFIED - Unspecified. */
|
|
1993
|
+
GnssConstellation[GnssConstellation["GNSS_CONSTELLATION_UNSPECIFIED"] = 0] = "GNSS_CONSTELLATION_UNSPECIFIED";
|
|
1994
|
+
/** GNSS_CONSTELLATION_GPS - GPS. */
|
|
1995
|
+
GnssConstellation[GnssConstellation["GNSS_CONSTELLATION_GPS"] = 1] = "GNSS_CONSTELLATION_GPS";
|
|
1996
|
+
/** GNSS_CONSTELLATION_GLONASS - GLONASS. */
|
|
1997
|
+
GnssConstellation[GnssConstellation["GNSS_CONSTELLATION_GLONASS"] = 2] = "GNSS_CONSTELLATION_GLONASS";
|
|
1998
|
+
/** GNSS_CONSTELLATION_GALILEO - Galileo. */
|
|
1999
|
+
GnssConstellation[GnssConstellation["GNSS_CONSTELLATION_GALILEO"] = 3] = "GNSS_CONSTELLATION_GALILEO";
|
|
2000
|
+
/** GNSS_CONSTELLATION_BEIDOU - BeiDou. */
|
|
2001
|
+
GnssConstellation[GnssConstellation["GNSS_CONSTELLATION_BEIDOU"] = 4] = "GNSS_CONSTELLATION_BEIDOU";
|
|
2002
|
+
GnssConstellation[GnssConstellation["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
2003
|
+
})(GnssConstellation || (exports.GnssConstellation = GnssConstellation = {}));
|
|
2004
|
+
function gnssConstellationFromJSON(object) {
|
|
2005
|
+
switch (object) {
|
|
2006
|
+
case 0:
|
|
2007
|
+
case "GNSS_CONSTELLATION_UNSPECIFIED":
|
|
2008
|
+
return GnssConstellation.GNSS_CONSTELLATION_UNSPECIFIED;
|
|
2009
|
+
case 1:
|
|
2010
|
+
case "GNSS_CONSTELLATION_GPS":
|
|
2011
|
+
return GnssConstellation.GNSS_CONSTELLATION_GPS;
|
|
2012
|
+
case 2:
|
|
2013
|
+
case "GNSS_CONSTELLATION_GLONASS":
|
|
2014
|
+
return GnssConstellation.GNSS_CONSTELLATION_GLONASS;
|
|
2015
|
+
case 3:
|
|
2016
|
+
case "GNSS_CONSTELLATION_GALILEO":
|
|
2017
|
+
return GnssConstellation.GNSS_CONSTELLATION_GALILEO;
|
|
2018
|
+
case 4:
|
|
2019
|
+
case "GNSS_CONSTELLATION_BEIDOU":
|
|
2020
|
+
return GnssConstellation.GNSS_CONSTELLATION_BEIDOU;
|
|
2021
|
+
case -1:
|
|
2022
|
+
case "UNRECOGNIZED":
|
|
2023
|
+
default:
|
|
2024
|
+
return GnssConstellation.UNRECOGNIZED;
|
|
2025
|
+
}
|
|
2026
|
+
}
|
|
2027
|
+
function gnssConstellationToJSON(object) {
|
|
2028
|
+
switch (object) {
|
|
2029
|
+
case GnssConstellation.GNSS_CONSTELLATION_UNSPECIFIED:
|
|
2030
|
+
return "GNSS_CONSTELLATION_UNSPECIFIED";
|
|
2031
|
+
case GnssConstellation.GNSS_CONSTELLATION_GPS:
|
|
2032
|
+
return "GNSS_CONSTELLATION_GPS";
|
|
2033
|
+
case GnssConstellation.GNSS_CONSTELLATION_GLONASS:
|
|
2034
|
+
return "GNSS_CONSTELLATION_GLONASS";
|
|
2035
|
+
case GnssConstellation.GNSS_CONSTELLATION_GALILEO:
|
|
2036
|
+
return "GNSS_CONSTELLATION_GALILEO";
|
|
2037
|
+
case GnssConstellation.GNSS_CONSTELLATION_BEIDOU:
|
|
2038
|
+
return "GNSS_CONSTELLATION_BEIDOU";
|
|
2039
|
+
case GnssConstellation.UNRECOGNIZED:
|
|
2040
|
+
default:
|
|
2041
|
+
return "UNRECOGNIZED";
|
|
2042
|
+
}
|
|
2043
|
+
}
|
|
1937
2044
|
/** Status for guest port devices that can be attached and detached. */
|
|
1938
2045
|
var GuestPortDetachStatus;
|
|
1939
2046
|
(function (GuestPortDetachStatus) {
|
|
@@ -13048,6 +13155,673 @@ exports.NavigationSensorStatus = {
|
|
|
13048
13155
|
return message;
|
|
13049
13156
|
},
|
|
13050
13157
|
};
|
|
13158
|
+
function createBaseGnssSatellite() {
|
|
13159
|
+
return { constellation: 0, satelliteId: 0, snr: 0, elevation: 0, azimuth: 0, usedInFix: false };
|
|
13160
|
+
}
|
|
13161
|
+
exports.GnssSatellite = {
|
|
13162
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13163
|
+
if (message.constellation !== 0) {
|
|
13164
|
+
writer.uint32(8).int32(message.constellation);
|
|
13165
|
+
}
|
|
13166
|
+
if (message.satelliteId !== 0) {
|
|
13167
|
+
writer.uint32(16).uint32(message.satelliteId);
|
|
13168
|
+
}
|
|
13169
|
+
if (message.snr !== 0) {
|
|
13170
|
+
writer.uint32(24).uint32(message.snr);
|
|
13171
|
+
}
|
|
13172
|
+
if (message.elevation !== 0) {
|
|
13173
|
+
writer.uint32(32).int32(message.elevation);
|
|
13174
|
+
}
|
|
13175
|
+
if (message.azimuth !== 0) {
|
|
13176
|
+
writer.uint32(40).int32(message.azimuth);
|
|
13177
|
+
}
|
|
13178
|
+
if (message.usedInFix !== false) {
|
|
13179
|
+
writer.uint32(48).bool(message.usedInFix);
|
|
13180
|
+
}
|
|
13181
|
+
return writer;
|
|
13182
|
+
},
|
|
13183
|
+
decode(input, length) {
|
|
13184
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13185
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13186
|
+
const message = createBaseGnssSatellite();
|
|
13187
|
+
while (reader.pos < end) {
|
|
13188
|
+
const tag = reader.uint32();
|
|
13189
|
+
switch (tag >>> 3) {
|
|
13190
|
+
case 1: {
|
|
13191
|
+
if (tag !== 8) {
|
|
13192
|
+
break;
|
|
13193
|
+
}
|
|
13194
|
+
message.constellation = reader.int32();
|
|
13195
|
+
continue;
|
|
13196
|
+
}
|
|
13197
|
+
case 2: {
|
|
13198
|
+
if (tag !== 16) {
|
|
13199
|
+
break;
|
|
13200
|
+
}
|
|
13201
|
+
message.satelliteId = reader.uint32();
|
|
13202
|
+
continue;
|
|
13203
|
+
}
|
|
13204
|
+
case 3: {
|
|
13205
|
+
if (tag !== 24) {
|
|
13206
|
+
break;
|
|
13207
|
+
}
|
|
13208
|
+
message.snr = reader.uint32();
|
|
13209
|
+
continue;
|
|
13210
|
+
}
|
|
13211
|
+
case 4: {
|
|
13212
|
+
if (tag !== 32) {
|
|
13213
|
+
break;
|
|
13214
|
+
}
|
|
13215
|
+
message.elevation = reader.int32();
|
|
13216
|
+
continue;
|
|
13217
|
+
}
|
|
13218
|
+
case 5: {
|
|
13219
|
+
if (tag !== 40) {
|
|
13220
|
+
break;
|
|
13221
|
+
}
|
|
13222
|
+
message.azimuth = reader.int32();
|
|
13223
|
+
continue;
|
|
13224
|
+
}
|
|
13225
|
+
case 6: {
|
|
13226
|
+
if (tag !== 48) {
|
|
13227
|
+
break;
|
|
13228
|
+
}
|
|
13229
|
+
message.usedInFix = reader.bool();
|
|
13230
|
+
continue;
|
|
13231
|
+
}
|
|
13232
|
+
}
|
|
13233
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13234
|
+
break;
|
|
13235
|
+
}
|
|
13236
|
+
reader.skip(tag & 7);
|
|
13237
|
+
}
|
|
13238
|
+
return message;
|
|
13239
|
+
},
|
|
13240
|
+
fromJSON(object) {
|
|
13241
|
+
return {
|
|
13242
|
+
constellation: isSet(object.constellation) ? gnssConstellationFromJSON(object.constellation) : 0,
|
|
13243
|
+
satelliteId: isSet(object.satelliteId) ? gt.Number(object.satelliteId) : 0,
|
|
13244
|
+
snr: isSet(object.snr) ? gt.Number(object.snr) : 0,
|
|
13245
|
+
elevation: isSet(object.elevation) ? gt.Number(object.elevation) : 0,
|
|
13246
|
+
azimuth: isSet(object.azimuth) ? gt.Number(object.azimuth) : 0,
|
|
13247
|
+
usedInFix: isSet(object.usedInFix) ? gt.Boolean(object.usedInFix) : false,
|
|
13248
|
+
};
|
|
13249
|
+
},
|
|
13250
|
+
toJSON(message) {
|
|
13251
|
+
const obj = {};
|
|
13252
|
+
if (message.constellation !== 0) {
|
|
13253
|
+
obj.constellation = gnssConstellationToJSON(message.constellation);
|
|
13254
|
+
}
|
|
13255
|
+
if (message.satelliteId !== 0) {
|
|
13256
|
+
obj.satelliteId = Math.round(message.satelliteId);
|
|
13257
|
+
}
|
|
13258
|
+
if (message.snr !== 0) {
|
|
13259
|
+
obj.snr = Math.round(message.snr);
|
|
13260
|
+
}
|
|
13261
|
+
if (message.elevation !== 0) {
|
|
13262
|
+
obj.elevation = Math.round(message.elevation);
|
|
13263
|
+
}
|
|
13264
|
+
if (message.azimuth !== 0) {
|
|
13265
|
+
obj.azimuth = Math.round(message.azimuth);
|
|
13266
|
+
}
|
|
13267
|
+
if (message.usedInFix !== false) {
|
|
13268
|
+
obj.usedInFix = message.usedInFix;
|
|
13269
|
+
}
|
|
13270
|
+
return obj;
|
|
13271
|
+
},
|
|
13272
|
+
create(base) {
|
|
13273
|
+
return exports.GnssSatellite.fromPartial(base ?? {});
|
|
13274
|
+
},
|
|
13275
|
+
fromPartial(object) {
|
|
13276
|
+
const message = createBaseGnssSatellite();
|
|
13277
|
+
message.constellation = object.constellation ?? 0;
|
|
13278
|
+
message.satelliteId = object.satelliteId ?? 0;
|
|
13279
|
+
message.snr = object.snr ?? 0;
|
|
13280
|
+
message.elevation = object.elevation ?? 0;
|
|
13281
|
+
message.azimuth = object.azimuth ?? 0;
|
|
13282
|
+
message.usedInFix = object.usedInFix ?? false;
|
|
13283
|
+
return message;
|
|
13284
|
+
},
|
|
13285
|
+
};
|
|
13286
|
+
function createBaseGnssStatus() {
|
|
13287
|
+
return {
|
|
13288
|
+
receiverConnected: false,
|
|
13289
|
+
fixQuality: 0,
|
|
13290
|
+
isValid: false,
|
|
13291
|
+
satellitesUsed: 0,
|
|
13292
|
+
satellitesTracked: 0,
|
|
13293
|
+
satellitesInView: 0,
|
|
13294
|
+
isUsedInFixValid: false,
|
|
13295
|
+
fixMode: 0,
|
|
13296
|
+
hdop: 0,
|
|
13297
|
+
pdop: 0,
|
|
13298
|
+
vdop: 0,
|
|
13299
|
+
globalPosition: undefined,
|
|
13300
|
+
altitude: 0,
|
|
13301
|
+
stddevLatitude: 0,
|
|
13302
|
+
stddevLongitude: 0,
|
|
13303
|
+
stddevAltitude: 0,
|
|
13304
|
+
stddevSemiMajor: 0,
|
|
13305
|
+
stddevSemiMinor: 0,
|
|
13306
|
+
errorEllipseOrientation: 0,
|
|
13307
|
+
rangeRms: 0,
|
|
13308
|
+
isAccuracyValid: false,
|
|
13309
|
+
courseOverGround: 0,
|
|
13310
|
+
isCourseValid: false,
|
|
13311
|
+
speedOverGround: 0,
|
|
13312
|
+
differentialAge: 0,
|
|
13313
|
+
differentialStation: 0,
|
|
13314
|
+
baudRate: 0,
|
|
13315
|
+
reconnectCount: 0,
|
|
13316
|
+
receiveErrorCount: 0,
|
|
13317
|
+
timeSinceLastSentence: 0,
|
|
13318
|
+
satellites: [],
|
|
13319
|
+
};
|
|
13320
|
+
}
|
|
13321
|
+
exports.GnssStatus = {
|
|
13322
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
13323
|
+
if (message.receiverConnected !== false) {
|
|
13324
|
+
writer.uint32(8).bool(message.receiverConnected);
|
|
13325
|
+
}
|
|
13326
|
+
if (message.fixQuality !== 0) {
|
|
13327
|
+
writer.uint32(16).uint32(message.fixQuality);
|
|
13328
|
+
}
|
|
13329
|
+
if (message.isValid !== false) {
|
|
13330
|
+
writer.uint32(24).bool(message.isValid);
|
|
13331
|
+
}
|
|
13332
|
+
if (message.satellitesUsed !== 0) {
|
|
13333
|
+
writer.uint32(32).uint32(message.satellitesUsed);
|
|
13334
|
+
}
|
|
13335
|
+
if (message.satellitesTracked !== 0) {
|
|
13336
|
+
writer.uint32(40).uint32(message.satellitesTracked);
|
|
13337
|
+
}
|
|
13338
|
+
if (message.satellitesInView !== 0) {
|
|
13339
|
+
writer.uint32(136).uint32(message.satellitesInView);
|
|
13340
|
+
}
|
|
13341
|
+
if (message.isUsedInFixValid !== false) {
|
|
13342
|
+
writer.uint32(160).bool(message.isUsedInFixValid);
|
|
13343
|
+
}
|
|
13344
|
+
if (message.fixMode !== 0) {
|
|
13345
|
+
writer.uint32(168).int32(message.fixMode);
|
|
13346
|
+
}
|
|
13347
|
+
if (message.hdop !== 0) {
|
|
13348
|
+
writer.uint32(53).float(message.hdop);
|
|
13349
|
+
}
|
|
13350
|
+
if (message.pdop !== 0) {
|
|
13351
|
+
writer.uint32(181).float(message.pdop);
|
|
13352
|
+
}
|
|
13353
|
+
if (message.vdop !== 0) {
|
|
13354
|
+
writer.uint32(189).float(message.vdop);
|
|
13355
|
+
}
|
|
13356
|
+
if (message.globalPosition !== undefined) {
|
|
13357
|
+
exports.LatLongPosition.encode(message.globalPosition, writer.uint32(58).fork()).join();
|
|
13358
|
+
}
|
|
13359
|
+
if (message.altitude !== 0) {
|
|
13360
|
+
writer.uint32(197).float(message.altitude);
|
|
13361
|
+
}
|
|
13362
|
+
if (message.stddevLatitude !== 0) {
|
|
13363
|
+
writer.uint32(69).float(message.stddevLatitude);
|
|
13364
|
+
}
|
|
13365
|
+
if (message.stddevLongitude !== 0) {
|
|
13366
|
+
writer.uint32(77).float(message.stddevLongitude);
|
|
13367
|
+
}
|
|
13368
|
+
if (message.stddevAltitude !== 0) {
|
|
13369
|
+
writer.uint32(205).float(message.stddevAltitude);
|
|
13370
|
+
}
|
|
13371
|
+
if (message.stddevSemiMajor !== 0) {
|
|
13372
|
+
writer.uint32(213).float(message.stddevSemiMajor);
|
|
13373
|
+
}
|
|
13374
|
+
if (message.stddevSemiMinor !== 0) {
|
|
13375
|
+
writer.uint32(221).float(message.stddevSemiMinor);
|
|
13376
|
+
}
|
|
13377
|
+
if (message.errorEllipseOrientation !== 0) {
|
|
13378
|
+
writer.uint32(229).float(message.errorEllipseOrientation);
|
|
13379
|
+
}
|
|
13380
|
+
if (message.rangeRms !== 0) {
|
|
13381
|
+
writer.uint32(237).float(message.rangeRms);
|
|
13382
|
+
}
|
|
13383
|
+
if (message.isAccuracyValid !== false) {
|
|
13384
|
+
writer.uint32(144).bool(message.isAccuracyValid);
|
|
13385
|
+
}
|
|
13386
|
+
if (message.courseOverGround !== 0) {
|
|
13387
|
+
writer.uint32(85).float(message.courseOverGround);
|
|
13388
|
+
}
|
|
13389
|
+
if (message.isCourseValid !== false) {
|
|
13390
|
+
writer.uint32(152).bool(message.isCourseValid);
|
|
13391
|
+
}
|
|
13392
|
+
if (message.speedOverGround !== 0) {
|
|
13393
|
+
writer.uint32(93).float(message.speedOverGround);
|
|
13394
|
+
}
|
|
13395
|
+
if (message.differentialAge !== 0) {
|
|
13396
|
+
writer.uint32(245).float(message.differentialAge);
|
|
13397
|
+
}
|
|
13398
|
+
if (message.differentialStation !== 0) {
|
|
13399
|
+
writer.uint32(248).int32(message.differentialStation);
|
|
13400
|
+
}
|
|
13401
|
+
if (message.baudRate !== 0) {
|
|
13402
|
+
writer.uint32(96).uint32(message.baudRate);
|
|
13403
|
+
}
|
|
13404
|
+
if (message.reconnectCount !== 0) {
|
|
13405
|
+
writer.uint32(104).uint32(message.reconnectCount);
|
|
13406
|
+
}
|
|
13407
|
+
if (message.receiveErrorCount !== 0) {
|
|
13408
|
+
writer.uint32(112).uint32(message.receiveErrorCount);
|
|
13409
|
+
}
|
|
13410
|
+
if (message.timeSinceLastSentence !== 0) {
|
|
13411
|
+
writer.uint32(125).float(message.timeSinceLastSentence);
|
|
13412
|
+
}
|
|
13413
|
+
for (const v of message.satellites) {
|
|
13414
|
+
exports.GnssSatellite.encode(v, writer.uint32(130).fork()).join();
|
|
13415
|
+
}
|
|
13416
|
+
return writer;
|
|
13417
|
+
},
|
|
13418
|
+
decode(input, length) {
|
|
13419
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
13420
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
13421
|
+
const message = createBaseGnssStatus();
|
|
13422
|
+
while (reader.pos < end) {
|
|
13423
|
+
const tag = reader.uint32();
|
|
13424
|
+
switch (tag >>> 3) {
|
|
13425
|
+
case 1: {
|
|
13426
|
+
if (tag !== 8) {
|
|
13427
|
+
break;
|
|
13428
|
+
}
|
|
13429
|
+
message.receiverConnected = reader.bool();
|
|
13430
|
+
continue;
|
|
13431
|
+
}
|
|
13432
|
+
case 2: {
|
|
13433
|
+
if (tag !== 16) {
|
|
13434
|
+
break;
|
|
13435
|
+
}
|
|
13436
|
+
message.fixQuality = reader.uint32();
|
|
13437
|
+
continue;
|
|
13438
|
+
}
|
|
13439
|
+
case 3: {
|
|
13440
|
+
if (tag !== 24) {
|
|
13441
|
+
break;
|
|
13442
|
+
}
|
|
13443
|
+
message.isValid = reader.bool();
|
|
13444
|
+
continue;
|
|
13445
|
+
}
|
|
13446
|
+
case 4: {
|
|
13447
|
+
if (tag !== 32) {
|
|
13448
|
+
break;
|
|
13449
|
+
}
|
|
13450
|
+
message.satellitesUsed = reader.uint32();
|
|
13451
|
+
continue;
|
|
13452
|
+
}
|
|
13453
|
+
case 5: {
|
|
13454
|
+
if (tag !== 40) {
|
|
13455
|
+
break;
|
|
13456
|
+
}
|
|
13457
|
+
message.satellitesTracked = reader.uint32();
|
|
13458
|
+
continue;
|
|
13459
|
+
}
|
|
13460
|
+
case 17: {
|
|
13461
|
+
if (tag !== 136) {
|
|
13462
|
+
break;
|
|
13463
|
+
}
|
|
13464
|
+
message.satellitesInView = reader.uint32();
|
|
13465
|
+
continue;
|
|
13466
|
+
}
|
|
13467
|
+
case 20: {
|
|
13468
|
+
if (tag !== 160) {
|
|
13469
|
+
break;
|
|
13470
|
+
}
|
|
13471
|
+
message.isUsedInFixValid = reader.bool();
|
|
13472
|
+
continue;
|
|
13473
|
+
}
|
|
13474
|
+
case 21: {
|
|
13475
|
+
if (tag !== 168) {
|
|
13476
|
+
break;
|
|
13477
|
+
}
|
|
13478
|
+
message.fixMode = reader.int32();
|
|
13479
|
+
continue;
|
|
13480
|
+
}
|
|
13481
|
+
case 6: {
|
|
13482
|
+
if (tag !== 53) {
|
|
13483
|
+
break;
|
|
13484
|
+
}
|
|
13485
|
+
message.hdop = reader.float();
|
|
13486
|
+
continue;
|
|
13487
|
+
}
|
|
13488
|
+
case 22: {
|
|
13489
|
+
if (tag !== 181) {
|
|
13490
|
+
break;
|
|
13491
|
+
}
|
|
13492
|
+
message.pdop = reader.float();
|
|
13493
|
+
continue;
|
|
13494
|
+
}
|
|
13495
|
+
case 23: {
|
|
13496
|
+
if (tag !== 189) {
|
|
13497
|
+
break;
|
|
13498
|
+
}
|
|
13499
|
+
message.vdop = reader.float();
|
|
13500
|
+
continue;
|
|
13501
|
+
}
|
|
13502
|
+
case 7: {
|
|
13503
|
+
if (tag !== 58) {
|
|
13504
|
+
break;
|
|
13505
|
+
}
|
|
13506
|
+
message.globalPosition = exports.LatLongPosition.decode(reader, reader.uint32());
|
|
13507
|
+
continue;
|
|
13508
|
+
}
|
|
13509
|
+
case 24: {
|
|
13510
|
+
if (tag !== 197) {
|
|
13511
|
+
break;
|
|
13512
|
+
}
|
|
13513
|
+
message.altitude = reader.float();
|
|
13514
|
+
continue;
|
|
13515
|
+
}
|
|
13516
|
+
case 8: {
|
|
13517
|
+
if (tag !== 69) {
|
|
13518
|
+
break;
|
|
13519
|
+
}
|
|
13520
|
+
message.stddevLatitude = reader.float();
|
|
13521
|
+
continue;
|
|
13522
|
+
}
|
|
13523
|
+
case 9: {
|
|
13524
|
+
if (tag !== 77) {
|
|
13525
|
+
break;
|
|
13526
|
+
}
|
|
13527
|
+
message.stddevLongitude = reader.float();
|
|
13528
|
+
continue;
|
|
13529
|
+
}
|
|
13530
|
+
case 25: {
|
|
13531
|
+
if (tag !== 205) {
|
|
13532
|
+
break;
|
|
13533
|
+
}
|
|
13534
|
+
message.stddevAltitude = reader.float();
|
|
13535
|
+
continue;
|
|
13536
|
+
}
|
|
13537
|
+
case 26: {
|
|
13538
|
+
if (tag !== 213) {
|
|
13539
|
+
break;
|
|
13540
|
+
}
|
|
13541
|
+
message.stddevSemiMajor = reader.float();
|
|
13542
|
+
continue;
|
|
13543
|
+
}
|
|
13544
|
+
case 27: {
|
|
13545
|
+
if (tag !== 221) {
|
|
13546
|
+
break;
|
|
13547
|
+
}
|
|
13548
|
+
message.stddevSemiMinor = reader.float();
|
|
13549
|
+
continue;
|
|
13550
|
+
}
|
|
13551
|
+
case 28: {
|
|
13552
|
+
if (tag !== 229) {
|
|
13553
|
+
break;
|
|
13554
|
+
}
|
|
13555
|
+
message.errorEllipseOrientation = reader.float();
|
|
13556
|
+
continue;
|
|
13557
|
+
}
|
|
13558
|
+
case 29: {
|
|
13559
|
+
if (tag !== 237) {
|
|
13560
|
+
break;
|
|
13561
|
+
}
|
|
13562
|
+
message.rangeRms = reader.float();
|
|
13563
|
+
continue;
|
|
13564
|
+
}
|
|
13565
|
+
case 18: {
|
|
13566
|
+
if (tag !== 144) {
|
|
13567
|
+
break;
|
|
13568
|
+
}
|
|
13569
|
+
message.isAccuracyValid = reader.bool();
|
|
13570
|
+
continue;
|
|
13571
|
+
}
|
|
13572
|
+
case 10: {
|
|
13573
|
+
if (tag !== 85) {
|
|
13574
|
+
break;
|
|
13575
|
+
}
|
|
13576
|
+
message.courseOverGround = reader.float();
|
|
13577
|
+
continue;
|
|
13578
|
+
}
|
|
13579
|
+
case 19: {
|
|
13580
|
+
if (tag !== 152) {
|
|
13581
|
+
break;
|
|
13582
|
+
}
|
|
13583
|
+
message.isCourseValid = reader.bool();
|
|
13584
|
+
continue;
|
|
13585
|
+
}
|
|
13586
|
+
case 11: {
|
|
13587
|
+
if (tag !== 93) {
|
|
13588
|
+
break;
|
|
13589
|
+
}
|
|
13590
|
+
message.speedOverGround = reader.float();
|
|
13591
|
+
continue;
|
|
13592
|
+
}
|
|
13593
|
+
case 30: {
|
|
13594
|
+
if (tag !== 245) {
|
|
13595
|
+
break;
|
|
13596
|
+
}
|
|
13597
|
+
message.differentialAge = reader.float();
|
|
13598
|
+
continue;
|
|
13599
|
+
}
|
|
13600
|
+
case 31: {
|
|
13601
|
+
if (tag !== 248) {
|
|
13602
|
+
break;
|
|
13603
|
+
}
|
|
13604
|
+
message.differentialStation = reader.int32();
|
|
13605
|
+
continue;
|
|
13606
|
+
}
|
|
13607
|
+
case 12: {
|
|
13608
|
+
if (tag !== 96) {
|
|
13609
|
+
break;
|
|
13610
|
+
}
|
|
13611
|
+
message.baudRate = reader.uint32();
|
|
13612
|
+
continue;
|
|
13613
|
+
}
|
|
13614
|
+
case 13: {
|
|
13615
|
+
if (tag !== 104) {
|
|
13616
|
+
break;
|
|
13617
|
+
}
|
|
13618
|
+
message.reconnectCount = reader.uint32();
|
|
13619
|
+
continue;
|
|
13620
|
+
}
|
|
13621
|
+
case 14: {
|
|
13622
|
+
if (tag !== 112) {
|
|
13623
|
+
break;
|
|
13624
|
+
}
|
|
13625
|
+
message.receiveErrorCount = reader.uint32();
|
|
13626
|
+
continue;
|
|
13627
|
+
}
|
|
13628
|
+
case 15: {
|
|
13629
|
+
if (tag !== 125) {
|
|
13630
|
+
break;
|
|
13631
|
+
}
|
|
13632
|
+
message.timeSinceLastSentence = reader.float();
|
|
13633
|
+
continue;
|
|
13634
|
+
}
|
|
13635
|
+
case 16: {
|
|
13636
|
+
if (tag !== 130) {
|
|
13637
|
+
break;
|
|
13638
|
+
}
|
|
13639
|
+
message.satellites.push(exports.GnssSatellite.decode(reader, reader.uint32()));
|
|
13640
|
+
continue;
|
|
13641
|
+
}
|
|
13642
|
+
}
|
|
13643
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
13644
|
+
break;
|
|
13645
|
+
}
|
|
13646
|
+
reader.skip(tag & 7);
|
|
13647
|
+
}
|
|
13648
|
+
return message;
|
|
13649
|
+
},
|
|
13650
|
+
fromJSON(object) {
|
|
13651
|
+
return {
|
|
13652
|
+
receiverConnected: isSet(object.receiverConnected) ? gt.Boolean(object.receiverConnected) : false,
|
|
13653
|
+
fixQuality: isSet(object.fixQuality) ? gt.Number(object.fixQuality) : 0,
|
|
13654
|
+
isValid: isSet(object.isValid) ? gt.Boolean(object.isValid) : false,
|
|
13655
|
+
satellitesUsed: isSet(object.satellitesUsed) ? gt.Number(object.satellitesUsed) : 0,
|
|
13656
|
+
satellitesTracked: isSet(object.satellitesTracked) ? gt.Number(object.satellitesTracked) : 0,
|
|
13657
|
+
satellitesInView: isSet(object.satellitesInView) ? gt.Number(object.satellitesInView) : 0,
|
|
13658
|
+
isUsedInFixValid: isSet(object.isUsedInFixValid) ? gt.Boolean(object.isUsedInFixValid) : false,
|
|
13659
|
+
fixMode: isSet(object.fixMode) ? gnssFixModeFromJSON(object.fixMode) : 0,
|
|
13660
|
+
hdop: isSet(object.hdop) ? gt.Number(object.hdop) : 0,
|
|
13661
|
+
pdop: isSet(object.pdop) ? gt.Number(object.pdop) : 0,
|
|
13662
|
+
vdop: isSet(object.vdop) ? gt.Number(object.vdop) : 0,
|
|
13663
|
+
globalPosition: isSet(object.globalPosition) ? exports.LatLongPosition.fromJSON(object.globalPosition) : undefined,
|
|
13664
|
+
altitude: isSet(object.altitude) ? gt.Number(object.altitude) : 0,
|
|
13665
|
+
stddevLatitude: isSet(object.stddevLatitude) ? gt.Number(object.stddevLatitude) : 0,
|
|
13666
|
+
stddevLongitude: isSet(object.stddevLongitude) ? gt.Number(object.stddevLongitude) : 0,
|
|
13667
|
+
stddevAltitude: isSet(object.stddevAltitude) ? gt.Number(object.stddevAltitude) : 0,
|
|
13668
|
+
stddevSemiMajor: isSet(object.stddevSemiMajor) ? gt.Number(object.stddevSemiMajor) : 0,
|
|
13669
|
+
stddevSemiMinor: isSet(object.stddevSemiMinor) ? gt.Number(object.stddevSemiMinor) : 0,
|
|
13670
|
+
errorEllipseOrientation: isSet(object.errorEllipseOrientation) ? gt.Number(object.errorEllipseOrientation) : 0,
|
|
13671
|
+
rangeRms: isSet(object.rangeRms) ? gt.Number(object.rangeRms) : 0,
|
|
13672
|
+
isAccuracyValid: isSet(object.isAccuracyValid) ? gt.Boolean(object.isAccuracyValid) : false,
|
|
13673
|
+
courseOverGround: isSet(object.courseOverGround) ? gt.Number(object.courseOverGround) : 0,
|
|
13674
|
+
isCourseValid: isSet(object.isCourseValid) ? gt.Boolean(object.isCourseValid) : false,
|
|
13675
|
+
speedOverGround: isSet(object.speedOverGround) ? gt.Number(object.speedOverGround) : 0,
|
|
13676
|
+
differentialAge: isSet(object.differentialAge) ? gt.Number(object.differentialAge) : 0,
|
|
13677
|
+
differentialStation: isSet(object.differentialStation) ? gt.Number(object.differentialStation) : 0,
|
|
13678
|
+
baudRate: isSet(object.baudRate) ? gt.Number(object.baudRate) : 0,
|
|
13679
|
+
reconnectCount: isSet(object.reconnectCount) ? gt.Number(object.reconnectCount) : 0,
|
|
13680
|
+
receiveErrorCount: isSet(object.receiveErrorCount) ? gt.Number(object.receiveErrorCount) : 0,
|
|
13681
|
+
timeSinceLastSentence: isSet(object.timeSinceLastSentence) ? gt.Number(object.timeSinceLastSentence) : 0,
|
|
13682
|
+
satellites: gt.Array.isArray(object?.satellites)
|
|
13683
|
+
? object.satellites.map((e) => exports.GnssSatellite.fromJSON(e))
|
|
13684
|
+
: [],
|
|
13685
|
+
};
|
|
13686
|
+
},
|
|
13687
|
+
toJSON(message) {
|
|
13688
|
+
const obj = {};
|
|
13689
|
+
if (message.receiverConnected !== false) {
|
|
13690
|
+
obj.receiverConnected = message.receiverConnected;
|
|
13691
|
+
}
|
|
13692
|
+
if (message.fixQuality !== 0) {
|
|
13693
|
+
obj.fixQuality = Math.round(message.fixQuality);
|
|
13694
|
+
}
|
|
13695
|
+
if (message.isValid !== false) {
|
|
13696
|
+
obj.isValid = message.isValid;
|
|
13697
|
+
}
|
|
13698
|
+
if (message.satellitesUsed !== 0) {
|
|
13699
|
+
obj.satellitesUsed = Math.round(message.satellitesUsed);
|
|
13700
|
+
}
|
|
13701
|
+
if (message.satellitesTracked !== 0) {
|
|
13702
|
+
obj.satellitesTracked = Math.round(message.satellitesTracked);
|
|
13703
|
+
}
|
|
13704
|
+
if (message.satellitesInView !== 0) {
|
|
13705
|
+
obj.satellitesInView = Math.round(message.satellitesInView);
|
|
13706
|
+
}
|
|
13707
|
+
if (message.isUsedInFixValid !== false) {
|
|
13708
|
+
obj.isUsedInFixValid = message.isUsedInFixValid;
|
|
13709
|
+
}
|
|
13710
|
+
if (message.fixMode !== 0) {
|
|
13711
|
+
obj.fixMode = gnssFixModeToJSON(message.fixMode);
|
|
13712
|
+
}
|
|
13713
|
+
if (message.hdop !== 0) {
|
|
13714
|
+
obj.hdop = message.hdop;
|
|
13715
|
+
}
|
|
13716
|
+
if (message.pdop !== 0) {
|
|
13717
|
+
obj.pdop = message.pdop;
|
|
13718
|
+
}
|
|
13719
|
+
if (message.vdop !== 0) {
|
|
13720
|
+
obj.vdop = message.vdop;
|
|
13721
|
+
}
|
|
13722
|
+
if (message.globalPosition !== undefined) {
|
|
13723
|
+
obj.globalPosition = exports.LatLongPosition.toJSON(message.globalPosition);
|
|
13724
|
+
}
|
|
13725
|
+
if (message.altitude !== 0) {
|
|
13726
|
+
obj.altitude = message.altitude;
|
|
13727
|
+
}
|
|
13728
|
+
if (message.stddevLatitude !== 0) {
|
|
13729
|
+
obj.stddevLatitude = message.stddevLatitude;
|
|
13730
|
+
}
|
|
13731
|
+
if (message.stddevLongitude !== 0) {
|
|
13732
|
+
obj.stddevLongitude = message.stddevLongitude;
|
|
13733
|
+
}
|
|
13734
|
+
if (message.stddevAltitude !== 0) {
|
|
13735
|
+
obj.stddevAltitude = message.stddevAltitude;
|
|
13736
|
+
}
|
|
13737
|
+
if (message.stddevSemiMajor !== 0) {
|
|
13738
|
+
obj.stddevSemiMajor = message.stddevSemiMajor;
|
|
13739
|
+
}
|
|
13740
|
+
if (message.stddevSemiMinor !== 0) {
|
|
13741
|
+
obj.stddevSemiMinor = message.stddevSemiMinor;
|
|
13742
|
+
}
|
|
13743
|
+
if (message.errorEllipseOrientation !== 0) {
|
|
13744
|
+
obj.errorEllipseOrientation = message.errorEllipseOrientation;
|
|
13745
|
+
}
|
|
13746
|
+
if (message.rangeRms !== 0) {
|
|
13747
|
+
obj.rangeRms = message.rangeRms;
|
|
13748
|
+
}
|
|
13749
|
+
if (message.isAccuracyValid !== false) {
|
|
13750
|
+
obj.isAccuracyValid = message.isAccuracyValid;
|
|
13751
|
+
}
|
|
13752
|
+
if (message.courseOverGround !== 0) {
|
|
13753
|
+
obj.courseOverGround = message.courseOverGround;
|
|
13754
|
+
}
|
|
13755
|
+
if (message.isCourseValid !== false) {
|
|
13756
|
+
obj.isCourseValid = message.isCourseValid;
|
|
13757
|
+
}
|
|
13758
|
+
if (message.speedOverGround !== 0) {
|
|
13759
|
+
obj.speedOverGround = message.speedOverGround;
|
|
13760
|
+
}
|
|
13761
|
+
if (message.differentialAge !== 0) {
|
|
13762
|
+
obj.differentialAge = message.differentialAge;
|
|
13763
|
+
}
|
|
13764
|
+
if (message.differentialStation !== 0) {
|
|
13765
|
+
obj.differentialStation = Math.round(message.differentialStation);
|
|
13766
|
+
}
|
|
13767
|
+
if (message.baudRate !== 0) {
|
|
13768
|
+
obj.baudRate = Math.round(message.baudRate);
|
|
13769
|
+
}
|
|
13770
|
+
if (message.reconnectCount !== 0) {
|
|
13771
|
+
obj.reconnectCount = Math.round(message.reconnectCount);
|
|
13772
|
+
}
|
|
13773
|
+
if (message.receiveErrorCount !== 0) {
|
|
13774
|
+
obj.receiveErrorCount = Math.round(message.receiveErrorCount);
|
|
13775
|
+
}
|
|
13776
|
+
if (message.timeSinceLastSentence !== 0) {
|
|
13777
|
+
obj.timeSinceLastSentence = message.timeSinceLastSentence;
|
|
13778
|
+
}
|
|
13779
|
+
if (message.satellites?.length) {
|
|
13780
|
+
obj.satellites = message.satellites.map((e) => exports.GnssSatellite.toJSON(e));
|
|
13781
|
+
}
|
|
13782
|
+
return obj;
|
|
13783
|
+
},
|
|
13784
|
+
create(base) {
|
|
13785
|
+
return exports.GnssStatus.fromPartial(base ?? {});
|
|
13786
|
+
},
|
|
13787
|
+
fromPartial(object) {
|
|
13788
|
+
const message = createBaseGnssStatus();
|
|
13789
|
+
message.receiverConnected = object.receiverConnected ?? false;
|
|
13790
|
+
message.fixQuality = object.fixQuality ?? 0;
|
|
13791
|
+
message.isValid = object.isValid ?? false;
|
|
13792
|
+
message.satellitesUsed = object.satellitesUsed ?? 0;
|
|
13793
|
+
message.satellitesTracked = object.satellitesTracked ?? 0;
|
|
13794
|
+
message.satellitesInView = object.satellitesInView ?? 0;
|
|
13795
|
+
message.isUsedInFixValid = object.isUsedInFixValid ?? false;
|
|
13796
|
+
message.fixMode = object.fixMode ?? 0;
|
|
13797
|
+
message.hdop = object.hdop ?? 0;
|
|
13798
|
+
message.pdop = object.pdop ?? 0;
|
|
13799
|
+
message.vdop = object.vdop ?? 0;
|
|
13800
|
+
message.globalPosition = (object.globalPosition !== undefined && object.globalPosition !== null)
|
|
13801
|
+
? exports.LatLongPosition.fromPartial(object.globalPosition)
|
|
13802
|
+
: undefined;
|
|
13803
|
+
message.altitude = object.altitude ?? 0;
|
|
13804
|
+
message.stddevLatitude = object.stddevLatitude ?? 0;
|
|
13805
|
+
message.stddevLongitude = object.stddevLongitude ?? 0;
|
|
13806
|
+
message.stddevAltitude = object.stddevAltitude ?? 0;
|
|
13807
|
+
message.stddevSemiMajor = object.stddevSemiMajor ?? 0;
|
|
13808
|
+
message.stddevSemiMinor = object.stddevSemiMinor ?? 0;
|
|
13809
|
+
message.errorEllipseOrientation = object.errorEllipseOrientation ?? 0;
|
|
13810
|
+
message.rangeRms = object.rangeRms ?? 0;
|
|
13811
|
+
message.isAccuracyValid = object.isAccuracyValid ?? false;
|
|
13812
|
+
message.courseOverGround = object.courseOverGround ?? 0;
|
|
13813
|
+
message.isCourseValid = object.isCourseValid ?? false;
|
|
13814
|
+
message.speedOverGround = object.speedOverGround ?? 0;
|
|
13815
|
+
message.differentialAge = object.differentialAge ?? 0;
|
|
13816
|
+
message.differentialStation = object.differentialStation ?? 0;
|
|
13817
|
+
message.baudRate = object.baudRate ?? 0;
|
|
13818
|
+
message.reconnectCount = object.reconnectCount ?? 0;
|
|
13819
|
+
message.receiveErrorCount = object.receiveErrorCount ?? 0;
|
|
13820
|
+
message.timeSinceLastSentence = object.timeSinceLastSentence ?? 0;
|
|
13821
|
+
message.satellites = object.satellites?.map((e) => exports.GnssSatellite.fromPartial(e)) || [];
|
|
13822
|
+
return message;
|
|
13823
|
+
},
|
|
13824
|
+
};
|
|
13051
13825
|
function createBaseGuestPortDevice() {
|
|
13052
13826
|
return {
|
|
13053
13827
|
deviceId: 0,
|
|
@@ -17433,7 +18207,7 @@ exports.BoundingBox = {
|
|
|
17433
18207
|
},
|
|
17434
18208
|
};
|
|
17435
18209
|
function createBaseSegmentationMask() {
|
|
17436
|
-
return { maskWidth: 0, maskHeight: 0, counts: new Uint8Array(0) };
|
|
18210
|
+
return { maskWidth: 0, maskHeight: 0, counts: new Uint8Array(0), maskBox: undefined };
|
|
17437
18211
|
}
|
|
17438
18212
|
exports.SegmentationMask = {
|
|
17439
18213
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -17446,6 +18220,9 @@ exports.SegmentationMask = {
|
|
|
17446
18220
|
if (message.counts.length !== 0) {
|
|
17447
18221
|
writer.uint32(26).bytes(message.counts);
|
|
17448
18222
|
}
|
|
18223
|
+
if (message.maskBox !== undefined) {
|
|
18224
|
+
exports.BoundingBox.encode(message.maskBox, writer.uint32(34).fork()).join();
|
|
18225
|
+
}
|
|
17449
18226
|
return writer;
|
|
17450
18227
|
},
|
|
17451
18228
|
decode(input, length) {
|
|
@@ -17476,6 +18253,13 @@ exports.SegmentationMask = {
|
|
|
17476
18253
|
message.counts = reader.bytes();
|
|
17477
18254
|
continue;
|
|
17478
18255
|
}
|
|
18256
|
+
case 4: {
|
|
18257
|
+
if (tag !== 34) {
|
|
18258
|
+
break;
|
|
18259
|
+
}
|
|
18260
|
+
message.maskBox = exports.BoundingBox.decode(reader, reader.uint32());
|
|
18261
|
+
continue;
|
|
18262
|
+
}
|
|
17479
18263
|
}
|
|
17480
18264
|
if ((tag & 7) === 4 || tag === 0) {
|
|
17481
18265
|
break;
|
|
@@ -17489,6 +18273,7 @@ exports.SegmentationMask = {
|
|
|
17489
18273
|
maskWidth: isSet(object.maskWidth) ? gt.Number(object.maskWidth) : 0,
|
|
17490
18274
|
maskHeight: isSet(object.maskHeight) ? gt.Number(object.maskHeight) : 0,
|
|
17491
18275
|
counts: isSet(object.counts) ? bytesFromBase64(object.counts) : new Uint8Array(0),
|
|
18276
|
+
maskBox: isSet(object.maskBox) ? exports.BoundingBox.fromJSON(object.maskBox) : undefined,
|
|
17492
18277
|
};
|
|
17493
18278
|
},
|
|
17494
18279
|
toJSON(message) {
|
|
@@ -17502,6 +18287,9 @@ exports.SegmentationMask = {
|
|
|
17502
18287
|
if (message.counts.length !== 0) {
|
|
17503
18288
|
obj.counts = base64FromBytes(message.counts);
|
|
17504
18289
|
}
|
|
18290
|
+
if (message.maskBox !== undefined) {
|
|
18291
|
+
obj.maskBox = exports.BoundingBox.toJSON(message.maskBox);
|
|
18292
|
+
}
|
|
17505
18293
|
return obj;
|
|
17506
18294
|
},
|
|
17507
18295
|
create(base) {
|
|
@@ -17512,6 +18300,9 @@ exports.SegmentationMask = {
|
|
|
17512
18300
|
message.maskWidth = object.maskWidth ?? 0;
|
|
17513
18301
|
message.maskHeight = object.maskHeight ?? 0;
|
|
17514
18302
|
message.counts = object.counts ?? new Uint8Array(0);
|
|
18303
|
+
message.maskBox = (object.maskBox !== undefined && object.maskBox !== null)
|
|
18304
|
+
? exports.BoundingBox.fromPartial(object.maskBox)
|
|
18305
|
+
: undefined;
|
|
17515
18306
|
return message;
|
|
17516
18307
|
},
|
|
17517
18308
|
};
|
package/dist/req_rep.d.ts
CHANGED
|
@@ -122,10 +122,18 @@ export interface DisconnectClientRep {
|
|
|
122
122
|
*/
|
|
123
123
|
export interface GetBatteryReq {
|
|
124
124
|
}
|
|
125
|
-
/**
|
|
125
|
+
/**
|
|
126
|
+
* Response with essential battery information.
|
|
127
|
+
*
|
|
128
|
+
* On models with two batteries running in parallel (e.g. the X7), second_battery
|
|
129
|
+
* holds the essential information for the second battery. When only a single
|
|
130
|
+
* battery is used, second_battery is undefined (not set).
|
|
131
|
+
*/
|
|
126
132
|
export interface GetBatteryRep {
|
|
127
133
|
/** Essential battery information. */
|
|
128
134
|
battery: Battery | undefined;
|
|
135
|
+
/** Second battery, when present. Not set if only one battery is used. */
|
|
136
|
+
secondBattery: Battery | undefined;
|
|
129
137
|
}
|
|
130
138
|
/** Issue a desired mission to the reference_generator. */
|
|
131
139
|
export interface SetMissionReq {
|
package/dist/req_rep.js
CHANGED
|
@@ -960,13 +960,16 @@ exports.GetBatteryReq = {
|
|
|
960
960
|
},
|
|
961
961
|
};
|
|
962
962
|
function createBaseGetBatteryRep() {
|
|
963
|
-
return { battery: undefined };
|
|
963
|
+
return { battery: undefined, secondBattery: undefined };
|
|
964
964
|
}
|
|
965
965
|
exports.GetBatteryRep = {
|
|
966
966
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
967
967
|
if (message.battery !== undefined) {
|
|
968
968
|
message_formats_1.Battery.encode(message.battery, writer.uint32(10).fork()).join();
|
|
969
969
|
}
|
|
970
|
+
if (message.secondBattery !== undefined) {
|
|
971
|
+
message_formats_1.Battery.encode(message.secondBattery, writer.uint32(18).fork()).join();
|
|
972
|
+
}
|
|
970
973
|
return writer;
|
|
971
974
|
},
|
|
972
975
|
decode(input, length) {
|
|
@@ -983,6 +986,13 @@ exports.GetBatteryRep = {
|
|
|
983
986
|
message.battery = message_formats_1.Battery.decode(reader, reader.uint32());
|
|
984
987
|
continue;
|
|
985
988
|
}
|
|
989
|
+
case 2: {
|
|
990
|
+
if (tag !== 18) {
|
|
991
|
+
break;
|
|
992
|
+
}
|
|
993
|
+
message.secondBattery = message_formats_1.Battery.decode(reader, reader.uint32());
|
|
994
|
+
continue;
|
|
995
|
+
}
|
|
986
996
|
}
|
|
987
997
|
if ((tag & 7) === 4 || tag === 0) {
|
|
988
998
|
break;
|
|
@@ -992,13 +1002,19 @@ exports.GetBatteryRep = {
|
|
|
992
1002
|
return message;
|
|
993
1003
|
},
|
|
994
1004
|
fromJSON(object) {
|
|
995
|
-
return {
|
|
1005
|
+
return {
|
|
1006
|
+
battery: isSet(object.battery) ? message_formats_1.Battery.fromJSON(object.battery) : undefined,
|
|
1007
|
+
secondBattery: isSet(object.secondBattery) ? message_formats_1.Battery.fromJSON(object.secondBattery) : undefined,
|
|
1008
|
+
};
|
|
996
1009
|
},
|
|
997
1010
|
toJSON(message) {
|
|
998
1011
|
const obj = {};
|
|
999
1012
|
if (message.battery !== undefined) {
|
|
1000
1013
|
obj.battery = message_formats_1.Battery.toJSON(message.battery);
|
|
1001
1014
|
}
|
|
1015
|
+
if (message.secondBattery !== undefined) {
|
|
1016
|
+
obj.secondBattery = message_formats_1.Battery.toJSON(message.secondBattery);
|
|
1017
|
+
}
|
|
1002
1018
|
return obj;
|
|
1003
1019
|
},
|
|
1004
1020
|
create(base) {
|
|
@@ -1009,6 +1025,9 @@ exports.GetBatteryRep = {
|
|
|
1009
1025
|
message.battery = (object.battery !== undefined && object.battery !== null)
|
|
1010
1026
|
? message_formats_1.Battery.fromPartial(object.battery)
|
|
1011
1027
|
: undefined;
|
|
1028
|
+
message.secondBattery = (object.secondBattery !== undefined && object.secondBattery !== null)
|
|
1029
|
+
? message_formats_1.Battery.fromPartial(object.secondBattery)
|
|
1030
|
+
: undefined;
|
|
1012
1031
|
return message;
|
|
1013
1032
|
},
|
|
1014
1033
|
};
|
package/dist/telemetry.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import { AquaTrollProbeMetadata, AquaTrollSensorMetadataArray, AquaTrollSensorParametersArray } from "./aquatroll";
|
|
3
|
-
import { Altitude, Annotation, Attitude, Battery, BatteryBQ40Z50, CalibrationState, CameraPanTiltZoom, CanisterHumidity, CanisterTemperature, ConnectedClient, ControlForce, ControllerHealth, ControlMode, CpProbe, CPUInfo, CPUTemperature, Depth, DiveTime, DroneInfo, DvlVelocity, ErrorFlags, FilterMessage, ForwardDistance, GenericServo, GuestPortCurrent, Imu, IperfStatus, KernelLogEntry, Laser, LaserDetection, LatLongPosition, Lights, LogEntry, MagneticDeclination, MedusaSpectrometerData, ModelDetections, MultibeamConfig, MultibeamDiscovery, MultibeamPing, MultibeamServo, Notification, NStreamers, PositionEstimate, RecordState, Reference, RemovableStorageDevice, SotState, StorageSpace, SurfaceUnitBatteryInfo, SurfaceUnitVersionInfo, SystemPerformanceInfo, SystemTime, ThicknessGauge, TiltAngle, TiltStabilizationState, TimeLapseState, WaterTemperature } from "./message_formats";
|
|
3
|
+
import { Altitude, Annotation, Attitude, Battery, BatteryBQ40Z50, CalibrationState, CameraPanTiltZoom, CanisterHumidity, CanisterTemperature, ConnectedClient, ControlForce, ControllerHealth, ControlMode, CpProbe, CPUInfo, CPUTemperature, Depth, DiveTime, DroneInfo, DvlVelocity, ErrorFlags, FilterMessage, ForwardDistance, GenericServo, GnssStatus, GuestPortCurrent, Imu, IperfStatus, KernelLogEntry, Laser, LaserDetection, LatLongPosition, Lights, LogEntry, MagneticDeclination, MedusaSpectrometerData, ModelDetections, MultibeamConfig, MultibeamDiscovery, MultibeamPing, MultibeamServo, Notification, NStreamers, PositionEstimate, RecordState, Reference, RemovableStorageDevice, SotState, StorageSpace, SurfaceUnitBatteryInfo, SurfaceUnitVersionInfo, SystemPerformanceInfo, SystemTime, ThicknessGauge, TiltAngle, TiltStabilizationState, TimeLapseState, WaterTemperature } from "./message_formats";
|
|
4
4
|
import { MissionStatus, ReferenceAutoPilot } from "./mission_planning";
|
|
5
5
|
/**
|
|
6
6
|
* Telemetry
|
|
@@ -94,6 +94,11 @@ export interface PilotGPSPositionTel {
|
|
|
94
94
|
/** The GPS position of the pilot. */
|
|
95
95
|
position: LatLongPosition | undefined;
|
|
96
96
|
}
|
|
97
|
+
/** Status of the onboard Blueye GNSS receiver and its driver. */
|
|
98
|
+
export interface GnssStatusTel {
|
|
99
|
+
/** Status of the Blueye GNSS receiver. */
|
|
100
|
+
gnssStatus: GnssStatus | undefined;
|
|
101
|
+
}
|
|
97
102
|
/** Record state from the drone. */
|
|
98
103
|
export interface RecordStateTel {
|
|
99
104
|
/** Record state. */
|
|
@@ -418,6 +423,7 @@ export declare const LightsTel: MessageFns<LightsTel>;
|
|
|
418
423
|
export declare const GuestPortLightsTel: MessageFns<GuestPortLightsTel>;
|
|
419
424
|
export declare const LaserTel: MessageFns<LaserTel>;
|
|
420
425
|
export declare const PilotGPSPositionTel: MessageFns<PilotGPSPositionTel>;
|
|
426
|
+
export declare const GnssStatusTel: MessageFns<GnssStatusTel>;
|
|
421
427
|
export declare const RecordStateTel: MessageFns<RecordStateTel>;
|
|
422
428
|
export declare const TimeLapseStateTel: MessageFns<TimeLapseStateTel>;
|
|
423
429
|
export declare const BatteryTel: MessageFns<BatteryTel>;
|
package/dist/telemetry.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
// protoc v3.21.12
|
|
6
6
|
// source: telemetry.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
9
|
-
exports.AnnotationTel = exports.SotStateTel = exports.CameraPanTiltZoomTel = exports.ColorCorrectionTel = exports.TurbidityFilterTel = exports.ObjectDetectionsTel = exports.LogEntryTel = exports.SurfaceUnitTel = exports.SystemPerformanceInfoTel = exports.CPUInfoTel = exports.MultibeamDiscoveryTel = exports.MultibeamConfigTel = exports.MultibeamPingTel = exports.MedusaSpectrometerDataTel = exports.CalibratedImuHpTel = exports.ImuHpTel = void 0;
|
|
8
|
+
exports.Imu1Tel = exports.CalibratedImuTel = exports.GuestPortCurrentTel = exports.MultibeamServoTel = exports.GenericServoTel = exports.ConnectedClientsTel = exports.AquaTrollSensorParametersTel = exports.AquaTrollSensorMetadataTel = exports.AquaTrollProbeMetadataTel = exports.CpProbeTel = exports.ThicknessGaugeTel = exports.ControlModeTel = exports.ErrorFlagsTel = exports.DroneInfoTel = exports.TiltAngleTel = exports.NStreamersTel = exports.IperfTel = exports.TiltStabilizationTel = exports.CalibrationStateTel = exports.DataStorageSpaceTel = exports.RemovableStorageTel = exports.VideoStorageSpaceTel = exports.CanisterBottomHumidityTel = exports.CanisterBottomTemperatureTel = exports.CPUTemperatureTel = exports.WaterTemperatureTel = exports.DroneTimeTel = exports.DiveTimeTel = exports.BatteryBQ40Z50Tel = exports.BatteryTel = exports.TimeLapseStateTel = exports.RecordStateTel = exports.GnssStatusTel = exports.PilotGPSPositionTel = exports.LaserTel = exports.GuestPortLightsTel = exports.LightsTel = exports.ControllerHealthTel = exports.ControlForceTel = exports.NotificationTel = exports.MissionStatusTel = exports.ReferenceAutoPilotTel = exports.ReferenceTel = exports.DepthTel = exports.PositionEstimateTel = exports.DvlVelocityTel = exports.ForwardDistanceTel = exports.AltitudeTel = exports.MagneticDeclinationTel = exports.AttitudeTel = void 0;
|
|
9
|
+
exports.AnnotationTel = exports.SotStateTel = exports.CameraPanTiltZoomTel = exports.ColorCorrectionTel = exports.TurbidityFilterTel = exports.ObjectDetectionsTel = exports.LogEntryTel = exports.SurfaceUnitTel = exports.SystemPerformanceInfoTel = exports.CPUInfoTel = exports.MultibeamDiscoveryTel = exports.MultibeamConfigTel = exports.MultibeamPingTel = exports.MedusaSpectrometerDataTel = exports.CalibratedImuHpTel = exports.ImuHpTel = exports.Imu2Tel = void 0;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
12
12
|
const aquatroll_1 = require("./aquatroll");
|
|
@@ -942,6 +942,59 @@ exports.PilotGPSPositionTel = {
|
|
|
942
942
|
return message;
|
|
943
943
|
},
|
|
944
944
|
};
|
|
945
|
+
function createBaseGnssStatusTel() {
|
|
946
|
+
return { gnssStatus: undefined };
|
|
947
|
+
}
|
|
948
|
+
exports.GnssStatusTel = {
|
|
949
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
950
|
+
if (message.gnssStatus !== undefined) {
|
|
951
|
+
message_formats_1.GnssStatus.encode(message.gnssStatus, writer.uint32(10).fork()).join();
|
|
952
|
+
}
|
|
953
|
+
return writer;
|
|
954
|
+
},
|
|
955
|
+
decode(input, length) {
|
|
956
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
957
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
958
|
+
const message = createBaseGnssStatusTel();
|
|
959
|
+
while (reader.pos < end) {
|
|
960
|
+
const tag = reader.uint32();
|
|
961
|
+
switch (tag >>> 3) {
|
|
962
|
+
case 1: {
|
|
963
|
+
if (tag !== 10) {
|
|
964
|
+
break;
|
|
965
|
+
}
|
|
966
|
+
message.gnssStatus = message_formats_1.GnssStatus.decode(reader, reader.uint32());
|
|
967
|
+
continue;
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
971
|
+
break;
|
|
972
|
+
}
|
|
973
|
+
reader.skip(tag & 7);
|
|
974
|
+
}
|
|
975
|
+
return message;
|
|
976
|
+
},
|
|
977
|
+
fromJSON(object) {
|
|
978
|
+
return { gnssStatus: isSet(object.gnssStatus) ? message_formats_1.GnssStatus.fromJSON(object.gnssStatus) : undefined };
|
|
979
|
+
},
|
|
980
|
+
toJSON(message) {
|
|
981
|
+
const obj = {};
|
|
982
|
+
if (message.gnssStatus !== undefined) {
|
|
983
|
+
obj.gnssStatus = message_formats_1.GnssStatus.toJSON(message.gnssStatus);
|
|
984
|
+
}
|
|
985
|
+
return obj;
|
|
986
|
+
},
|
|
987
|
+
create(base) {
|
|
988
|
+
return exports.GnssStatusTel.fromPartial(base ?? {});
|
|
989
|
+
},
|
|
990
|
+
fromPartial(object) {
|
|
991
|
+
const message = createBaseGnssStatusTel();
|
|
992
|
+
message.gnssStatus = (object.gnssStatus !== undefined && object.gnssStatus !== null)
|
|
993
|
+
? message_formats_1.GnssStatus.fromPartial(object.gnssStatus)
|
|
994
|
+
: undefined;
|
|
995
|
+
return message;
|
|
996
|
+
},
|
|
997
|
+
};
|
|
945
998
|
function createBaseRecordStateTel() {
|
|
946
999
|
return { recordState: undefined };
|
|
947
1000
|
}
|