@blueyerobotics/protocol-definitions 3.2.0-e9cac0e4 → 3.2.0-fed2b1e2
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/LICENSE +165 -0
- package/README.npm.md +40 -0
- package/dist/message_formats.d.ts +47 -0
- package/dist/message_formats.js +287 -3
- package/dist/telemetry.d.ts +9 -1
- package/dist/telemetry.js +73 -1
- package/package.json +8 -6
package/LICENSE
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 3, 29 June 2007
|
|
3
|
+
|
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
6
|
+
of this license document, but changing it is not allowed.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
This version of the GNU Lesser General Public License incorporates
|
|
10
|
+
the terms and conditions of version 3 of the GNU General Public
|
|
11
|
+
License, supplemented by the additional permissions listed below.
|
|
12
|
+
|
|
13
|
+
0. Additional Definitions.
|
|
14
|
+
|
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
16
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
17
|
+
General Public License.
|
|
18
|
+
|
|
19
|
+
"The Library" refers to a covered work governed by this License,
|
|
20
|
+
other than an Application or a Combined Work as defined below.
|
|
21
|
+
|
|
22
|
+
An "Application" is any work that makes use of an interface provided
|
|
23
|
+
by the Library, but which is not otherwise based on the Library.
|
|
24
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
|
25
|
+
of using an interface provided by the Library.
|
|
26
|
+
|
|
27
|
+
A "Combined Work" is a work produced by combining or linking an
|
|
28
|
+
Application with the Library. The particular version of the Library
|
|
29
|
+
with which the Combined Work was made is also called the "Linked
|
|
30
|
+
Version".
|
|
31
|
+
|
|
32
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
|
33
|
+
Corresponding Source for the Combined Work, excluding any source code
|
|
34
|
+
for portions of the Combined Work that, considered in isolation, are
|
|
35
|
+
based on the Application, and not on the Linked Version.
|
|
36
|
+
|
|
37
|
+
The "Corresponding Application Code" for a Combined Work means the
|
|
38
|
+
object code and/or source code for the Application, including any data
|
|
39
|
+
and utility programs needed for reproducing the Combined Work from the
|
|
40
|
+
Application, but excluding the System Libraries of the Combined Work.
|
|
41
|
+
|
|
42
|
+
1. Exception to Section 3 of the GNU GPL.
|
|
43
|
+
|
|
44
|
+
You may convey a covered work under sections 3 and 4 of this License
|
|
45
|
+
without being bound by section 3 of the GNU GPL.
|
|
46
|
+
|
|
47
|
+
2. Conveying Modified Versions.
|
|
48
|
+
|
|
49
|
+
If you modify a copy of the Library, and, in your modifications, a
|
|
50
|
+
facility refers to a function or data to be supplied by an Application
|
|
51
|
+
that uses the facility (other than as an argument passed when the
|
|
52
|
+
facility is invoked), then you may convey a copy of the modified
|
|
53
|
+
version:
|
|
54
|
+
|
|
55
|
+
a) under this License, provided that you make a good faith effort to
|
|
56
|
+
ensure that, in the event an Application does not supply the
|
|
57
|
+
function or data, the facility still operates, and performs
|
|
58
|
+
whatever part of its purpose remains meaningful, or
|
|
59
|
+
|
|
60
|
+
b) under the GNU GPL, with none of the additional permissions of
|
|
61
|
+
this License applicable to that copy.
|
|
62
|
+
|
|
63
|
+
3. Object Code Incorporating Material from Library Header Files.
|
|
64
|
+
|
|
65
|
+
The object code form of an Application may incorporate material from
|
|
66
|
+
a header file that is part of the Library. You may convey such object
|
|
67
|
+
code under terms of your choice, provided that, if the incorporated
|
|
68
|
+
material is not limited to numerical parameters, data structure
|
|
69
|
+
layouts and accessors, or small macros, inline functions and templates
|
|
70
|
+
(ten or fewer lines in length), you do both of the following:
|
|
71
|
+
|
|
72
|
+
a) Give prominent notice with each copy of the object code that the
|
|
73
|
+
Library is used in it and that the Library and its use are
|
|
74
|
+
covered by this License.
|
|
75
|
+
|
|
76
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
77
|
+
document.
|
|
78
|
+
|
|
79
|
+
4. Combined Works.
|
|
80
|
+
|
|
81
|
+
You may convey a Combined Work under terms of your choice that,
|
|
82
|
+
taken together, effectively do not restrict modification of the
|
|
83
|
+
portions of the Library contained in the Combined Work and reverse
|
|
84
|
+
engineering for debugging such modifications, if you also do each of
|
|
85
|
+
the following:
|
|
86
|
+
|
|
87
|
+
a) Give prominent notice with each copy of the Combined Work that
|
|
88
|
+
the Library is used in it and that the Library and its use are
|
|
89
|
+
covered by this License.
|
|
90
|
+
|
|
91
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
92
|
+
document.
|
|
93
|
+
|
|
94
|
+
c) For a Combined Work that displays copyright notices during
|
|
95
|
+
execution, include the copyright notice for the Library among
|
|
96
|
+
these notices, as well as a reference directing the user to the
|
|
97
|
+
copies of the GNU GPL and this license document.
|
|
98
|
+
|
|
99
|
+
d) Do one of the following:
|
|
100
|
+
|
|
101
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
|
102
|
+
License, and the Corresponding Application Code in a form
|
|
103
|
+
suitable for, and under terms that permit, the user to
|
|
104
|
+
recombine or relink the Application with a modified version of
|
|
105
|
+
the Linked Version to produce a modified Combined Work, in the
|
|
106
|
+
manner specified by section 6 of the GNU GPL for conveying
|
|
107
|
+
Corresponding Source.
|
|
108
|
+
|
|
109
|
+
1) Use a suitable shared library mechanism for linking with the
|
|
110
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
|
111
|
+
a copy of the Library already present on the user's computer
|
|
112
|
+
system, and (b) will operate properly with a modified version
|
|
113
|
+
of the Library that is interface-compatible with the Linked
|
|
114
|
+
Version.
|
|
115
|
+
|
|
116
|
+
e) Provide Installation Information, but only if you would otherwise
|
|
117
|
+
be required to provide such information under section 6 of the
|
|
118
|
+
GNU GPL, and only to the extent that such information is
|
|
119
|
+
necessary to install and execute a modified version of the
|
|
120
|
+
Combined Work produced by recombining or relinking the
|
|
121
|
+
Application with a modified version of the Linked Version. (If
|
|
122
|
+
you use option 4d0, the Installation Information must accompany
|
|
123
|
+
the Minimal Corresponding Source and Corresponding Application
|
|
124
|
+
Code. If you use option 4d1, you must provide the Installation
|
|
125
|
+
Information in the manner specified by section 6 of the GNU GPL
|
|
126
|
+
for conveying Corresponding Source.)
|
|
127
|
+
|
|
128
|
+
5. Combined Libraries.
|
|
129
|
+
|
|
130
|
+
You may place library facilities that are a work based on the
|
|
131
|
+
Library side by side in a single library together with other library
|
|
132
|
+
facilities that are not Applications and are not covered by this
|
|
133
|
+
License, and convey such a combined library under terms of your
|
|
134
|
+
choice, if you do both of the following:
|
|
135
|
+
|
|
136
|
+
a) Accompany the combined library with a copy of the same work based
|
|
137
|
+
on the Library, uncombined with any other library facilities,
|
|
138
|
+
conveyed under the terms of this License.
|
|
139
|
+
|
|
140
|
+
b) Give prominent notice with the combined library that part of it
|
|
141
|
+
is a work based on the Library, and explaining where to find the
|
|
142
|
+
accompanying uncombined form of the same work.
|
|
143
|
+
|
|
144
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
|
145
|
+
|
|
146
|
+
The Free Software Foundation may publish revised and/or new versions
|
|
147
|
+
of the GNU Lesser General Public License from time to time. Such new
|
|
148
|
+
versions will be similar in spirit to the present version, but may
|
|
149
|
+
differ in detail to address new problems or concerns.
|
|
150
|
+
|
|
151
|
+
Each version is given a distinguishing version number. If the
|
|
152
|
+
Library as you received it specifies that a certain numbered version
|
|
153
|
+
of the GNU Lesser General Public License "or any later version"
|
|
154
|
+
applies to it, you have the option of following the terms and
|
|
155
|
+
conditions either of that published version or of any later version
|
|
156
|
+
published by the Free Software Foundation. If the Library as you
|
|
157
|
+
received it does not specify a version number of the GNU Lesser
|
|
158
|
+
General Public License, you may choose any version of the GNU Lesser
|
|
159
|
+
General Public License ever published by the Free Software Foundation.
|
|
160
|
+
|
|
161
|
+
If the Library as you received it specifies that a proxy can decide
|
|
162
|
+
whether future versions of the GNU Lesser General Public License shall
|
|
163
|
+
apply, that proxy's public statement of acceptance of any version is
|
|
164
|
+
permanent authorization for you to choose that version for the
|
|
165
|
+
Library.
|
package/README.npm.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# @blueyerobotics/protocol-definitions
|
|
2
|
+
|
|
3
|
+
TypeScript protobuf definitions for Blueye Robotics protocols generated using [ts-proto](https://github.com/stephenh/ts-proto).
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @blueyerobotics/protocol-definitions
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { blueye } from "@blueyerobotics/protocol-definitions";
|
|
15
|
+
|
|
16
|
+
// Create a new GetBatteryReq message
|
|
17
|
+
const request = blueye.protocol.GetBatteryReq.create();
|
|
18
|
+
|
|
19
|
+
// Serialize the message to a Uint8Array (binary)
|
|
20
|
+
const binary = blueye.protocol.GetBatteryReq.encode(request).finish();
|
|
21
|
+
|
|
22
|
+
// ...
|
|
23
|
+
|
|
24
|
+
// For demonstration, we will simulate a response from the device
|
|
25
|
+
const response = blueye.protocol.GetBatteryRep.create({
|
|
26
|
+
battery: {
|
|
27
|
+
level: 85,
|
|
28
|
+
voltage: 12.5,
|
|
29
|
+
temperature: 25,
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
const binaryResponse = blueye.protocol.GetBatteryRep.encode(response).finish();
|
|
34
|
+
|
|
35
|
+
// Decode a binary response back into a message
|
|
36
|
+
const decoded = blueye.protocol.GetBatteryRep.decode(binaryResponse);
|
|
37
|
+
|
|
38
|
+
// Access fields
|
|
39
|
+
console.log(decoded.battery?.level);
|
|
40
|
+
```
|
|
@@ -562,6 +562,49 @@ export declare enum LogEntry_LogLevel {
|
|
|
562
562
|
}
|
|
563
563
|
export declare function logEntry_LogLevelFromJSON(object: any): LogEntry_LogLevel;
|
|
564
564
|
export declare function logEntry_LogLevelToJSON(object: LogEntry_LogLevel): string;
|
|
565
|
+
export interface KernelLogEntry {
|
|
566
|
+
/** Log level, info, warning, error, etc. */
|
|
567
|
+
level: KernelLogEntry_KernelLogLevel;
|
|
568
|
+
/** Sequence number of the log entry. */
|
|
569
|
+
seqnum: number;
|
|
570
|
+
/** Timestamp of the log entry. */
|
|
571
|
+
timestamp: Date | undefined;
|
|
572
|
+
/** Log messages. */
|
|
573
|
+
messages: string[];
|
|
574
|
+
/** List of key-value pairs. */
|
|
575
|
+
fields: KernelLogEntry_KeyValuePair[];
|
|
576
|
+
}
|
|
577
|
+
/** Kernel log level. */
|
|
578
|
+
export declare enum KernelLogEntry_KernelLogLevel {
|
|
579
|
+
/** KERNEL_LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
|
|
580
|
+
KERNEL_LOG_LEVEL_UNSPECIFIED = 0,
|
|
581
|
+
/** KERNEL_LOG_LEVEL_EMERG - Emergency log level. */
|
|
582
|
+
KERNEL_LOG_LEVEL_EMERG = 1,
|
|
583
|
+
/** KERNEL_LOG_LEVEL_ALERT - Alert log level. */
|
|
584
|
+
KERNEL_LOG_LEVEL_ALERT = 2,
|
|
585
|
+
/** KERNEL_LOG_LEVEL_CRIT - Critical log level. */
|
|
586
|
+
KERNEL_LOG_LEVEL_CRIT = 3,
|
|
587
|
+
/** KERNEL_LOG_LEVEL_ERR - Error log level. */
|
|
588
|
+
KERNEL_LOG_LEVEL_ERR = 4,
|
|
589
|
+
/** KERNEL_LOG_LEVEL_WARNING - Warning log level. */
|
|
590
|
+
KERNEL_LOG_LEVEL_WARNING = 5,
|
|
591
|
+
/** KERNEL_LOG_LEVEL_NOTICE - Notice log level. */
|
|
592
|
+
KERNEL_LOG_LEVEL_NOTICE = 6,
|
|
593
|
+
/** KERNEL_LOG_LEVEL_INFO - Informational log level. */
|
|
594
|
+
KERNEL_LOG_LEVEL_INFO = 7,
|
|
595
|
+
/** KERNEL_LOG_LEVEL_DEBUG - Debug log level. */
|
|
596
|
+
KERNEL_LOG_LEVEL_DEBUG = 8,
|
|
597
|
+
UNRECOGNIZED = -1
|
|
598
|
+
}
|
|
599
|
+
export declare function kernelLogEntry_KernelLogLevelFromJSON(object: any): KernelLogEntry_KernelLogLevel;
|
|
600
|
+
export declare function kernelLogEntry_KernelLogLevelToJSON(object: KernelLogEntry_KernelLogLevel): string;
|
|
601
|
+
/** Key-value pair used for structured logging. */
|
|
602
|
+
export interface KernelLogEntry_KeyValuePair {
|
|
603
|
+
/** Key of the key-value pair. */
|
|
604
|
+
key: string;
|
|
605
|
+
/** Value of the key-value pair. */
|
|
606
|
+
value: string;
|
|
607
|
+
}
|
|
565
608
|
/** If you use both values at the same time they cancel each other out. */
|
|
566
609
|
export interface MotionInput {
|
|
567
610
|
/** Forward (positive) and backwards (negative) movement. (-1..1). */
|
|
@@ -731,6 +774,8 @@ export interface RecordState {
|
|
|
731
774
|
multibeamSeconds: number;
|
|
732
775
|
/** Multibeam record fps. */
|
|
733
776
|
multibeamFps: number;
|
|
777
|
+
/** Storage location used for recording. */
|
|
778
|
+
storageLocation: StorageLocation;
|
|
734
779
|
}
|
|
735
780
|
/** Time-lapse state published if time-lapse mission is running. */
|
|
736
781
|
export interface TimeLapseState {
|
|
@@ -1931,6 +1976,8 @@ export interface SurfaceUnitVersionInfo {
|
|
|
1931
1976
|
}
|
|
1932
1977
|
export declare const BinlogRecord: MessageFns<BinlogRecord>;
|
|
1933
1978
|
export declare const LogEntry: MessageFns<LogEntry>;
|
|
1979
|
+
export declare const KernelLogEntry: MessageFns<KernelLogEntry>;
|
|
1980
|
+
export declare const KernelLogEntry_KeyValuePair: MessageFns<KernelLogEntry_KeyValuePair>;
|
|
1934
1981
|
export declare const MotionInput: MessageFns<MotionInput>;
|
|
1935
1982
|
export declare const Lights: MessageFns<Lights>;
|
|
1936
1983
|
export declare const Laser: MessageFns<Laser>;
|
package/dist/message_formats.js
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
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.SurfaceUnitVersionInfo = exports.SurfaceUnitBatteryInfo = 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 = void 0;
|
|
8
|
+
exports.AutoPilotHeaveState = exports.AutoPilotSurgeYawState = exports.WeatherVaningState = exports.StationKeepingState = exports.AutoAltitudeState = exports.AutoDepthState = exports.AutoHeadingState = exports.ConnectionDuration = exports.LatLongPosition = exports.Laser = exports.Lights = exports.MotionInput = exports.KernelLogEntry_KeyValuePair = exports.KernelLogEntry = exports.LogEntry = exports.BinlogRecord = exports.SurfaceUnitBatteryInfo_ChargeStatus = exports.MultibeamConfig_MaximumNumberOfBeams = exports.MultibeamConfig_PingRate = exports.CalibrationState_Status = exports.RemovableStorageDevice_Status = exports.BatteryBQ40Z50_BatteryStatus_BatteryError = exports.PingerConfiguration_MountingDirection = exports.KernelLogEntry_KernelLogLevel = exports.LogEntry_LogLevel = exports.MultibeamFrequencyMode = exports.GuestPortError = exports.GuestPortDetachStatus = exports.NavigationSensorID = exports.GuestPortNumber = exports.GuestPortDeviceID = exports.FontSize = exports.ThicknessUnit = exports.DepthUnit = exports.LogoType = exports.TemperatureUnit = exports.StreamingProtocol = exports.Camera = exports.Framerate = exports.Resolution = exports.PressureSensorType = exports.Model = exports.StorageLocation = exports.NotificationLevel = exports.NotificationType = exports.ResetCoordinateSource = exports.HeadingMode = exports.HeadingSource = exports.LocationSource = exports.IntervalType = void 0;
|
|
9
|
+
exports.CameraParameters = exports.ErrorFlags = exports.DroneInfo = exports.TiltVelocity = exports.TiltAngle = exports.NStreamers = exports.IperfStatus = exports.CalibrationState = exports.RemovableStorageErrorFlags = exports.RemovableStorageDevice = exports.StoragePartition = exports.StorageSpace = exports.RecordOn = exports.DiveTime = exports.ControllerHealth = exports.ControlForce = exports.Notification = exports.Reference = 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 = void 0;
|
|
10
|
+
exports.SurfaceUnitVersionInfo = exports.SurfaceUnitBatteryInfo = 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.NavigationSensorStatus = exports.OverlayParameters = void 0;
|
|
11
11
|
exports.intervalTypeFromJSON = intervalTypeFromJSON;
|
|
12
12
|
exports.intervalTypeToJSON = intervalTypeToJSON;
|
|
13
13
|
exports.locationSourceFromJSON = locationSourceFromJSON;
|
|
@@ -60,6 +60,8 @@ exports.multibeamFrequencyModeFromJSON = multibeamFrequencyModeFromJSON;
|
|
|
60
60
|
exports.multibeamFrequencyModeToJSON = multibeamFrequencyModeToJSON;
|
|
61
61
|
exports.logEntry_LogLevelFromJSON = logEntry_LogLevelFromJSON;
|
|
62
62
|
exports.logEntry_LogLevelToJSON = logEntry_LogLevelToJSON;
|
|
63
|
+
exports.kernelLogEntry_KernelLogLevelFromJSON = kernelLogEntry_KernelLogLevelFromJSON;
|
|
64
|
+
exports.kernelLogEntry_KernelLogLevelToJSON = kernelLogEntry_KernelLogLevelToJSON;
|
|
63
65
|
exports.pingerConfiguration_MountingDirectionFromJSON = pingerConfiguration_MountingDirectionFromJSON;
|
|
64
66
|
exports.pingerConfiguration_MountingDirectionToJSON = pingerConfiguration_MountingDirectionToJSON;
|
|
65
67
|
exports.batteryBQ40Z50_BatteryStatus_BatteryErrorFromJSON = batteryBQ40Z50_BatteryStatus_BatteryErrorFromJSON;
|
|
@@ -1862,6 +1864,89 @@ function logEntry_LogLevelToJSON(object) {
|
|
|
1862
1864
|
return "UNRECOGNIZED";
|
|
1863
1865
|
}
|
|
1864
1866
|
}
|
|
1867
|
+
/** Kernel log level. */
|
|
1868
|
+
var KernelLogEntry_KernelLogLevel;
|
|
1869
|
+
(function (KernelLogEntry_KernelLogLevel) {
|
|
1870
|
+
/** KERNEL_LOG_LEVEL_UNSPECIFIED - Unspecified log level. */
|
|
1871
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_UNSPECIFIED"] = 0] = "KERNEL_LOG_LEVEL_UNSPECIFIED";
|
|
1872
|
+
/** KERNEL_LOG_LEVEL_EMERG - Emergency log level. */
|
|
1873
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_EMERG"] = 1] = "KERNEL_LOG_LEVEL_EMERG";
|
|
1874
|
+
/** KERNEL_LOG_LEVEL_ALERT - Alert log level. */
|
|
1875
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_ALERT"] = 2] = "KERNEL_LOG_LEVEL_ALERT";
|
|
1876
|
+
/** KERNEL_LOG_LEVEL_CRIT - Critical log level. */
|
|
1877
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_CRIT"] = 3] = "KERNEL_LOG_LEVEL_CRIT";
|
|
1878
|
+
/** KERNEL_LOG_LEVEL_ERR - Error log level. */
|
|
1879
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_ERR"] = 4] = "KERNEL_LOG_LEVEL_ERR";
|
|
1880
|
+
/** KERNEL_LOG_LEVEL_WARNING - Warning log level. */
|
|
1881
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_WARNING"] = 5] = "KERNEL_LOG_LEVEL_WARNING";
|
|
1882
|
+
/** KERNEL_LOG_LEVEL_NOTICE - Notice log level. */
|
|
1883
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_NOTICE"] = 6] = "KERNEL_LOG_LEVEL_NOTICE";
|
|
1884
|
+
/** KERNEL_LOG_LEVEL_INFO - Informational log level. */
|
|
1885
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_INFO"] = 7] = "KERNEL_LOG_LEVEL_INFO";
|
|
1886
|
+
/** KERNEL_LOG_LEVEL_DEBUG - Debug log level. */
|
|
1887
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["KERNEL_LOG_LEVEL_DEBUG"] = 8] = "KERNEL_LOG_LEVEL_DEBUG";
|
|
1888
|
+
KernelLogEntry_KernelLogLevel[KernelLogEntry_KernelLogLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1889
|
+
})(KernelLogEntry_KernelLogLevel || (exports.KernelLogEntry_KernelLogLevel = KernelLogEntry_KernelLogLevel = {}));
|
|
1890
|
+
function kernelLogEntry_KernelLogLevelFromJSON(object) {
|
|
1891
|
+
switch (object) {
|
|
1892
|
+
case 0:
|
|
1893
|
+
case "KERNEL_LOG_LEVEL_UNSPECIFIED":
|
|
1894
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_UNSPECIFIED;
|
|
1895
|
+
case 1:
|
|
1896
|
+
case "KERNEL_LOG_LEVEL_EMERG":
|
|
1897
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_EMERG;
|
|
1898
|
+
case 2:
|
|
1899
|
+
case "KERNEL_LOG_LEVEL_ALERT":
|
|
1900
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ALERT;
|
|
1901
|
+
case 3:
|
|
1902
|
+
case "KERNEL_LOG_LEVEL_CRIT":
|
|
1903
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_CRIT;
|
|
1904
|
+
case 4:
|
|
1905
|
+
case "KERNEL_LOG_LEVEL_ERR":
|
|
1906
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ERR;
|
|
1907
|
+
case 5:
|
|
1908
|
+
case "KERNEL_LOG_LEVEL_WARNING":
|
|
1909
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_WARNING;
|
|
1910
|
+
case 6:
|
|
1911
|
+
case "KERNEL_LOG_LEVEL_NOTICE":
|
|
1912
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_NOTICE;
|
|
1913
|
+
case 7:
|
|
1914
|
+
case "KERNEL_LOG_LEVEL_INFO":
|
|
1915
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_INFO;
|
|
1916
|
+
case 8:
|
|
1917
|
+
case "KERNEL_LOG_LEVEL_DEBUG":
|
|
1918
|
+
return KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_DEBUG;
|
|
1919
|
+
case -1:
|
|
1920
|
+
case "UNRECOGNIZED":
|
|
1921
|
+
default:
|
|
1922
|
+
return KernelLogEntry_KernelLogLevel.UNRECOGNIZED;
|
|
1923
|
+
}
|
|
1924
|
+
}
|
|
1925
|
+
function kernelLogEntry_KernelLogLevelToJSON(object) {
|
|
1926
|
+
switch (object) {
|
|
1927
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_UNSPECIFIED:
|
|
1928
|
+
return "KERNEL_LOG_LEVEL_UNSPECIFIED";
|
|
1929
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_EMERG:
|
|
1930
|
+
return "KERNEL_LOG_LEVEL_EMERG";
|
|
1931
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ALERT:
|
|
1932
|
+
return "KERNEL_LOG_LEVEL_ALERT";
|
|
1933
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_CRIT:
|
|
1934
|
+
return "KERNEL_LOG_LEVEL_CRIT";
|
|
1935
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_ERR:
|
|
1936
|
+
return "KERNEL_LOG_LEVEL_ERR";
|
|
1937
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_WARNING:
|
|
1938
|
+
return "KERNEL_LOG_LEVEL_WARNING";
|
|
1939
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_NOTICE:
|
|
1940
|
+
return "KERNEL_LOG_LEVEL_NOTICE";
|
|
1941
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_INFO:
|
|
1942
|
+
return "KERNEL_LOG_LEVEL_INFO";
|
|
1943
|
+
case KernelLogEntry_KernelLogLevel.KERNEL_LOG_LEVEL_DEBUG:
|
|
1944
|
+
return "KERNEL_LOG_LEVEL_DEBUG";
|
|
1945
|
+
case KernelLogEntry_KernelLogLevel.UNRECOGNIZED:
|
|
1946
|
+
default:
|
|
1947
|
+
return "UNRECOGNIZED";
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1865
1950
|
var PingerConfiguration_MountingDirection;
|
|
1866
1951
|
(function (PingerConfiguration_MountingDirection) {
|
|
1867
1952
|
/** MOUNTING_DIRECTION_UNSPECIFIED - Mounting direction is unspecified. */
|
|
@@ -2511,6 +2596,189 @@ exports.LogEntry = {
|
|
|
2511
2596
|
return message;
|
|
2512
2597
|
},
|
|
2513
2598
|
};
|
|
2599
|
+
function createBaseKernelLogEntry() {
|
|
2600
|
+
return { level: 0, seqnum: 0, timestamp: undefined, messages: [], fields: [] };
|
|
2601
|
+
}
|
|
2602
|
+
exports.KernelLogEntry = {
|
|
2603
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2604
|
+
if (message.level !== 0) {
|
|
2605
|
+
writer.uint32(8).int32(message.level);
|
|
2606
|
+
}
|
|
2607
|
+
if (message.seqnum !== 0) {
|
|
2608
|
+
writer.uint32(16).uint32(message.seqnum);
|
|
2609
|
+
}
|
|
2610
|
+
if (message.timestamp !== undefined) {
|
|
2611
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(26).fork()).join();
|
|
2612
|
+
}
|
|
2613
|
+
for (const v of message.messages) {
|
|
2614
|
+
writer.uint32(34).string(v);
|
|
2615
|
+
}
|
|
2616
|
+
for (const v of message.fields) {
|
|
2617
|
+
exports.KernelLogEntry_KeyValuePair.encode(v, writer.uint32(42).fork()).join();
|
|
2618
|
+
}
|
|
2619
|
+
return writer;
|
|
2620
|
+
},
|
|
2621
|
+
decode(input, length) {
|
|
2622
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2623
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2624
|
+
const message = createBaseKernelLogEntry();
|
|
2625
|
+
while (reader.pos < end) {
|
|
2626
|
+
const tag = reader.uint32();
|
|
2627
|
+
switch (tag >>> 3) {
|
|
2628
|
+
case 1: {
|
|
2629
|
+
if (tag !== 8) {
|
|
2630
|
+
break;
|
|
2631
|
+
}
|
|
2632
|
+
message.level = reader.int32();
|
|
2633
|
+
continue;
|
|
2634
|
+
}
|
|
2635
|
+
case 2: {
|
|
2636
|
+
if (tag !== 16) {
|
|
2637
|
+
break;
|
|
2638
|
+
}
|
|
2639
|
+
message.seqnum = reader.uint32();
|
|
2640
|
+
continue;
|
|
2641
|
+
}
|
|
2642
|
+
case 3: {
|
|
2643
|
+
if (tag !== 26) {
|
|
2644
|
+
break;
|
|
2645
|
+
}
|
|
2646
|
+
message.timestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
2647
|
+
continue;
|
|
2648
|
+
}
|
|
2649
|
+
case 4: {
|
|
2650
|
+
if (tag !== 34) {
|
|
2651
|
+
break;
|
|
2652
|
+
}
|
|
2653
|
+
message.messages.push(reader.string());
|
|
2654
|
+
continue;
|
|
2655
|
+
}
|
|
2656
|
+
case 5: {
|
|
2657
|
+
if (tag !== 42) {
|
|
2658
|
+
break;
|
|
2659
|
+
}
|
|
2660
|
+
message.fields.push(exports.KernelLogEntry_KeyValuePair.decode(reader, reader.uint32()));
|
|
2661
|
+
continue;
|
|
2662
|
+
}
|
|
2663
|
+
}
|
|
2664
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2665
|
+
break;
|
|
2666
|
+
}
|
|
2667
|
+
reader.skip(tag & 7);
|
|
2668
|
+
}
|
|
2669
|
+
return message;
|
|
2670
|
+
},
|
|
2671
|
+
fromJSON(object) {
|
|
2672
|
+
return {
|
|
2673
|
+
level: isSet(object.level) ? kernelLogEntry_KernelLogLevelFromJSON(object.level) : 0,
|
|
2674
|
+
seqnum: isSet(object.seqnum) ? gt.Number(object.seqnum) : 0,
|
|
2675
|
+
timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
2676
|
+
messages: gt.Array.isArray(object?.messages) ? object.messages.map((e) => gt.String(e)) : [],
|
|
2677
|
+
fields: gt.Array.isArray(object?.fields)
|
|
2678
|
+
? object.fields.map((e) => exports.KernelLogEntry_KeyValuePair.fromJSON(e))
|
|
2679
|
+
: [],
|
|
2680
|
+
};
|
|
2681
|
+
},
|
|
2682
|
+
toJSON(message) {
|
|
2683
|
+
const obj = {};
|
|
2684
|
+
if (message.level !== 0) {
|
|
2685
|
+
obj.level = kernelLogEntry_KernelLogLevelToJSON(message.level);
|
|
2686
|
+
}
|
|
2687
|
+
if (message.seqnum !== 0) {
|
|
2688
|
+
obj.seqnum = Math.round(message.seqnum);
|
|
2689
|
+
}
|
|
2690
|
+
if (message.timestamp !== undefined) {
|
|
2691
|
+
obj.timestamp = message.timestamp.toISOString();
|
|
2692
|
+
}
|
|
2693
|
+
if (message.messages?.length) {
|
|
2694
|
+
obj.messages = message.messages;
|
|
2695
|
+
}
|
|
2696
|
+
if (message.fields?.length) {
|
|
2697
|
+
obj.fields = message.fields.map((e) => exports.KernelLogEntry_KeyValuePair.toJSON(e));
|
|
2698
|
+
}
|
|
2699
|
+
return obj;
|
|
2700
|
+
},
|
|
2701
|
+
create(base) {
|
|
2702
|
+
return exports.KernelLogEntry.fromPartial(base ?? {});
|
|
2703
|
+
},
|
|
2704
|
+
fromPartial(object) {
|
|
2705
|
+
const message = createBaseKernelLogEntry();
|
|
2706
|
+
message.level = object.level ?? 0;
|
|
2707
|
+
message.seqnum = object.seqnum ?? 0;
|
|
2708
|
+
message.timestamp = object.timestamp ?? undefined;
|
|
2709
|
+
message.messages = object.messages?.map((e) => e) || [];
|
|
2710
|
+
message.fields = object.fields?.map((e) => exports.KernelLogEntry_KeyValuePair.fromPartial(e)) || [];
|
|
2711
|
+
return message;
|
|
2712
|
+
},
|
|
2713
|
+
};
|
|
2714
|
+
function createBaseKernelLogEntry_KeyValuePair() {
|
|
2715
|
+
return { key: "", value: "" };
|
|
2716
|
+
}
|
|
2717
|
+
exports.KernelLogEntry_KeyValuePair = {
|
|
2718
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2719
|
+
if (message.key !== "") {
|
|
2720
|
+
writer.uint32(10).string(message.key);
|
|
2721
|
+
}
|
|
2722
|
+
if (message.value !== "") {
|
|
2723
|
+
writer.uint32(18).string(message.value);
|
|
2724
|
+
}
|
|
2725
|
+
return writer;
|
|
2726
|
+
},
|
|
2727
|
+
decode(input, length) {
|
|
2728
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2729
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2730
|
+
const message = createBaseKernelLogEntry_KeyValuePair();
|
|
2731
|
+
while (reader.pos < end) {
|
|
2732
|
+
const tag = reader.uint32();
|
|
2733
|
+
switch (tag >>> 3) {
|
|
2734
|
+
case 1: {
|
|
2735
|
+
if (tag !== 10) {
|
|
2736
|
+
break;
|
|
2737
|
+
}
|
|
2738
|
+
message.key = reader.string();
|
|
2739
|
+
continue;
|
|
2740
|
+
}
|
|
2741
|
+
case 2: {
|
|
2742
|
+
if (tag !== 18) {
|
|
2743
|
+
break;
|
|
2744
|
+
}
|
|
2745
|
+
message.value = reader.string();
|
|
2746
|
+
continue;
|
|
2747
|
+
}
|
|
2748
|
+
}
|
|
2749
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2750
|
+
break;
|
|
2751
|
+
}
|
|
2752
|
+
reader.skip(tag & 7);
|
|
2753
|
+
}
|
|
2754
|
+
return message;
|
|
2755
|
+
},
|
|
2756
|
+
fromJSON(object) {
|
|
2757
|
+
return {
|
|
2758
|
+
key: isSet(object.key) ? gt.String(object.key) : "",
|
|
2759
|
+
value: isSet(object.value) ? gt.String(object.value) : "",
|
|
2760
|
+
};
|
|
2761
|
+
},
|
|
2762
|
+
toJSON(message) {
|
|
2763
|
+
const obj = {};
|
|
2764
|
+
if (message.key !== "") {
|
|
2765
|
+
obj.key = message.key;
|
|
2766
|
+
}
|
|
2767
|
+
if (message.value !== "") {
|
|
2768
|
+
obj.value = message.value;
|
|
2769
|
+
}
|
|
2770
|
+
return obj;
|
|
2771
|
+
},
|
|
2772
|
+
create(base) {
|
|
2773
|
+
return exports.KernelLogEntry_KeyValuePair.fromPartial(base ?? {});
|
|
2774
|
+
},
|
|
2775
|
+
fromPartial(object) {
|
|
2776
|
+
const message = createBaseKernelLogEntry_KeyValuePair();
|
|
2777
|
+
message.key = object.key ?? "";
|
|
2778
|
+
message.value = object.value ?? "";
|
|
2779
|
+
return message;
|
|
2780
|
+
},
|
|
2781
|
+
};
|
|
2514
2782
|
function createBaseMotionInput() {
|
|
2515
2783
|
return { surge: 0, sway: 0, heave: 0, roll: 0, pitch: 0, yaw: 0, slow: 0, boost: 0 };
|
|
2516
2784
|
}
|
|
@@ -3792,6 +4060,7 @@ function createBaseRecordState() {
|
|
|
3792
4060
|
multibeamIsRecording: false,
|
|
3793
4061
|
multibeamSeconds: 0,
|
|
3794
4062
|
multibeamFps: 0,
|
|
4063
|
+
storageLocation: 0,
|
|
3795
4064
|
};
|
|
3796
4065
|
}
|
|
3797
4066
|
exports.RecordState = {
|
|
@@ -3823,6 +4092,9 @@ exports.RecordState = {
|
|
|
3823
4092
|
if (message.multibeamFps !== 0) {
|
|
3824
4093
|
writer.uint32(77).float(message.multibeamFps);
|
|
3825
4094
|
}
|
|
4095
|
+
if (message.storageLocation !== 0) {
|
|
4096
|
+
writer.uint32(80).int32(message.storageLocation);
|
|
4097
|
+
}
|
|
3826
4098
|
return writer;
|
|
3827
4099
|
},
|
|
3828
4100
|
decode(input, length) {
|
|
@@ -3895,6 +4167,13 @@ exports.RecordState = {
|
|
|
3895
4167
|
message.multibeamFps = reader.float();
|
|
3896
4168
|
continue;
|
|
3897
4169
|
}
|
|
4170
|
+
case 10: {
|
|
4171
|
+
if (tag !== 80) {
|
|
4172
|
+
break;
|
|
4173
|
+
}
|
|
4174
|
+
message.storageLocation = reader.int32();
|
|
4175
|
+
continue;
|
|
4176
|
+
}
|
|
3898
4177
|
}
|
|
3899
4178
|
if ((tag & 7) === 4 || tag === 0) {
|
|
3900
4179
|
break;
|
|
@@ -3914,6 +4193,7 @@ exports.RecordState = {
|
|
|
3914
4193
|
multibeamIsRecording: isSet(object.multibeamIsRecording) ? gt.Boolean(object.multibeamIsRecording) : false,
|
|
3915
4194
|
multibeamSeconds: isSet(object.multibeamSeconds) ? gt.Number(object.multibeamSeconds) : 0,
|
|
3916
4195
|
multibeamFps: isSet(object.multibeamFps) ? gt.Number(object.multibeamFps) : 0,
|
|
4196
|
+
storageLocation: isSet(object.storageLocation) ? storageLocationFromJSON(object.storageLocation) : 0,
|
|
3917
4197
|
};
|
|
3918
4198
|
},
|
|
3919
4199
|
toJSON(message) {
|
|
@@ -3945,6 +4225,9 @@ exports.RecordState = {
|
|
|
3945
4225
|
if (message.multibeamFps !== 0) {
|
|
3946
4226
|
obj.multibeamFps = message.multibeamFps;
|
|
3947
4227
|
}
|
|
4228
|
+
if (message.storageLocation !== 0) {
|
|
4229
|
+
obj.storageLocation = storageLocationToJSON(message.storageLocation);
|
|
4230
|
+
}
|
|
3948
4231
|
return obj;
|
|
3949
4232
|
},
|
|
3950
4233
|
create(base) {
|
|
@@ -3961,6 +4244,7 @@ exports.RecordState = {
|
|
|
3961
4244
|
message.multibeamIsRecording = object.multibeamIsRecording ?? false;
|
|
3962
4245
|
message.multibeamSeconds = object.multibeamSeconds ?? 0;
|
|
3963
4246
|
message.multibeamFps = object.multibeamFps ?? 0;
|
|
4247
|
+
message.storageLocation = object.storageLocation ?? 0;
|
|
3964
4248
|
return message;
|
|
3965
4249
|
},
|
|
3966
4250
|
};
|
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, Attitude, Battery, BatteryBQ40Z50, CalibrationState, CanisterHumidity, CanisterTemperature, ConnectedClient, ControlForce, ControllerHealth, ControlMode, CpProbe, CPUInfo, CPUTemperature, Depth, DiveTime, DroneInfo, DvlVelocity, ErrorFlags, ForwardDistance, GenericServo, GuestPortCurrent, Imu, IperfStatus, Laser, LatLongPosition, Lights, MagneticDeclination, MedusaSpectrometerData, MultibeamConfig, MultibeamDiscovery, MultibeamPing, MultibeamServo, Notification, NStreamers, PositionEstimate, RecordState, Reference, RemovableStorageDevice, StorageSpace, SurfaceUnitBatteryInfo, SurfaceUnitVersionInfo, SystemTime, ThicknessGauge, TiltAngle, TiltStabilizationState, TimeLapseState, WaterTemperature } from "./message_formats";
|
|
3
|
+
import { Altitude, Attitude, Battery, BatteryBQ40Z50, CalibrationState, CanisterHumidity, CanisterTemperature, ConnectedClient, ControlForce, ControllerHealth, ControlMode, CpProbe, CPUInfo, CPUTemperature, Depth, DiveTime, DroneInfo, DvlVelocity, ErrorFlags, ForwardDistance, GenericServo, GuestPortCurrent, Imu, IperfStatus, KernelLogEntry, Laser, LatLongPosition, Lights, LogEntry, MagneticDeclination, MedusaSpectrometerData, MultibeamConfig, MultibeamDiscovery, MultibeamPing, MultibeamServo, Notification, NStreamers, PositionEstimate, RecordState, Reference, RemovableStorageDevice, StorageSpace, SurfaceUnitBatteryInfo, SurfaceUnitVersionInfo, SystemTime, ThicknessGauge, TiltAngle, TiltStabilizationState, TimeLapseState, WaterTemperature } from "./message_formats";
|
|
4
4
|
import { MissionStatus, ReferenceAutoPilot } from "./mission_planning";
|
|
5
5
|
/**
|
|
6
6
|
* Telemetry
|
|
@@ -298,6 +298,13 @@ export interface SurfaceUnitTel {
|
|
|
298
298
|
/** Version information. */
|
|
299
299
|
versionInfo: SurfaceUnitVersionInfo | undefined;
|
|
300
300
|
}
|
|
301
|
+
/** Log entry telemetry message. */
|
|
302
|
+
export interface LogEntryTel {
|
|
303
|
+
/** Blunux log entry. */
|
|
304
|
+
blunux?: LogEntry | undefined;
|
|
305
|
+
/** Kernel log entry. */
|
|
306
|
+
kernel?: KernelLogEntry | undefined;
|
|
307
|
+
}
|
|
301
308
|
export declare const AttitudeTel: MessageFns<AttitudeTel>;
|
|
302
309
|
export declare const MagneticDeclinationTel: MessageFns<MagneticDeclinationTel>;
|
|
303
310
|
export declare const AltitudeTel: MessageFns<AltitudeTel>;
|
|
@@ -354,6 +361,7 @@ export declare const MultibeamConfigTel: MessageFns<MultibeamConfigTel>;
|
|
|
354
361
|
export declare const MultibeamDiscoveryTel: MessageFns<MultibeamDiscoveryTel>;
|
|
355
362
|
export declare const CPUInfoTel: MessageFns<CPUInfoTel>;
|
|
356
363
|
export declare const SurfaceUnitTel: MessageFns<SurfaceUnitTel>;
|
|
364
|
+
export declare const LogEntryTel: MessageFns<LogEntryTel>;
|
|
357
365
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
358
366
|
type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
359
367
|
[K in keyof T]?: DeepPartial<T[K]>;
|
package/dist/telemetry.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
// source: telemetry.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.Imu2Tel = 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.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.SurfaceUnitTel = exports.CPUInfoTel = exports.MultibeamDiscoveryTel = exports.MultibeamConfigTel = exports.MultibeamPingTel = exports.MedusaSpectrometerDataTel = void 0;
|
|
9
|
+
exports.LogEntryTel = exports.SurfaceUnitTel = exports.CPUInfoTel = exports.MultibeamDiscoveryTel = exports.MultibeamConfigTel = exports.MultibeamPingTel = exports.MedusaSpectrometerDataTel = void 0;
|
|
10
10
|
/* eslint-disable */
|
|
11
11
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
12
12
|
const aquatroll_1 = require("./aquatroll");
|
|
@@ -3066,6 +3066,78 @@ exports.SurfaceUnitTel = {
|
|
|
3066
3066
|
return message;
|
|
3067
3067
|
},
|
|
3068
3068
|
};
|
|
3069
|
+
function createBaseLogEntryTel() {
|
|
3070
|
+
return { blunux: undefined, kernel: undefined };
|
|
3071
|
+
}
|
|
3072
|
+
exports.LogEntryTel = {
|
|
3073
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
3074
|
+
if (message.blunux !== undefined) {
|
|
3075
|
+
message_formats_1.LogEntry.encode(message.blunux, writer.uint32(10).fork()).join();
|
|
3076
|
+
}
|
|
3077
|
+
if (message.kernel !== undefined) {
|
|
3078
|
+
message_formats_1.KernelLogEntry.encode(message.kernel, writer.uint32(18).fork()).join();
|
|
3079
|
+
}
|
|
3080
|
+
return writer;
|
|
3081
|
+
},
|
|
3082
|
+
decode(input, length) {
|
|
3083
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
3084
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3085
|
+
const message = createBaseLogEntryTel();
|
|
3086
|
+
while (reader.pos < end) {
|
|
3087
|
+
const tag = reader.uint32();
|
|
3088
|
+
switch (tag >>> 3) {
|
|
3089
|
+
case 1: {
|
|
3090
|
+
if (tag !== 10) {
|
|
3091
|
+
break;
|
|
3092
|
+
}
|
|
3093
|
+
message.blunux = message_formats_1.LogEntry.decode(reader, reader.uint32());
|
|
3094
|
+
continue;
|
|
3095
|
+
}
|
|
3096
|
+
case 2: {
|
|
3097
|
+
if (tag !== 18) {
|
|
3098
|
+
break;
|
|
3099
|
+
}
|
|
3100
|
+
message.kernel = message_formats_1.KernelLogEntry.decode(reader, reader.uint32());
|
|
3101
|
+
continue;
|
|
3102
|
+
}
|
|
3103
|
+
}
|
|
3104
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3105
|
+
break;
|
|
3106
|
+
}
|
|
3107
|
+
reader.skip(tag & 7);
|
|
3108
|
+
}
|
|
3109
|
+
return message;
|
|
3110
|
+
},
|
|
3111
|
+
fromJSON(object) {
|
|
3112
|
+
return {
|
|
3113
|
+
blunux: isSet(object.blunux) ? message_formats_1.LogEntry.fromJSON(object.blunux) : undefined,
|
|
3114
|
+
kernel: isSet(object.kernel) ? message_formats_1.KernelLogEntry.fromJSON(object.kernel) : undefined,
|
|
3115
|
+
};
|
|
3116
|
+
},
|
|
3117
|
+
toJSON(message) {
|
|
3118
|
+
const obj = {};
|
|
3119
|
+
if (message.blunux !== undefined) {
|
|
3120
|
+
obj.blunux = message_formats_1.LogEntry.toJSON(message.blunux);
|
|
3121
|
+
}
|
|
3122
|
+
if (message.kernel !== undefined) {
|
|
3123
|
+
obj.kernel = message_formats_1.KernelLogEntry.toJSON(message.kernel);
|
|
3124
|
+
}
|
|
3125
|
+
return obj;
|
|
3126
|
+
},
|
|
3127
|
+
create(base) {
|
|
3128
|
+
return exports.LogEntryTel.fromPartial(base ?? {});
|
|
3129
|
+
},
|
|
3130
|
+
fromPartial(object) {
|
|
3131
|
+
const message = createBaseLogEntryTel();
|
|
3132
|
+
message.blunux = (object.blunux !== undefined && object.blunux !== null)
|
|
3133
|
+
? message_formats_1.LogEntry.fromPartial(object.blunux)
|
|
3134
|
+
: undefined;
|
|
3135
|
+
message.kernel = (object.kernel !== undefined && object.kernel !== null)
|
|
3136
|
+
? message_formats_1.KernelLogEntry.fromPartial(object.kernel)
|
|
3137
|
+
: undefined;
|
|
3138
|
+
return message;
|
|
3139
|
+
},
|
|
3140
|
+
};
|
|
3069
3141
|
const gt = (() => {
|
|
3070
3142
|
if (typeof globalThis !== "undefined") {
|
|
3071
3143
|
return globalThis;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blueyerobotics/protocol-definitions",
|
|
3
|
-
"version": "3.2.0-
|
|
3
|
+
"version": "3.2.0-fed2b1e2",
|
|
4
4
|
"license": "LGPL-3.0-only",
|
|
5
5
|
"description": "TypeScript definitions for Blueye Robotics protocols",
|
|
6
6
|
"repository": {
|
|
@@ -9,15 +9,17 @@
|
|
|
9
9
|
},
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"types": "dist/index.d.ts",
|
|
12
|
-
"files": [
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
16
15
|
"dependencies": {
|
|
17
16
|
"@bufbuild/protobuf": "^2.5.2"
|
|
18
17
|
},
|
|
19
18
|
"devDependencies": {
|
|
20
19
|
"ts-proto": "^2.7.5",
|
|
21
20
|
"typescript": "^5.8.3"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsc"
|
|
22
24
|
}
|
|
23
|
-
}
|
|
25
|
+
}
|