@depz/sensor-sdk 0.1.0
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/README.md +69 -0
- package/dist/dataset.d.ts +93 -0
- package/dist/dataset.d.ts.map +1 -0
- package/dist/dataset.js +253 -0
- package/dist/dataset.js.map +1 -0
- package/dist/device/device.d.ts +185 -0
- package/dist/device/device.d.ts.map +1 -0
- package/dist/device/device.js +421 -0
- package/dist/device/device.js.map +1 -0
- package/dist/device/link.d.ts +62 -0
- package/dist/device/link.d.ts.map +1 -0
- package/dist/device/link.js +130 -0
- package/dist/device/link.js.map +1 -0
- package/dist/discovery.d.ts +109 -0
- package/dist/discovery.d.ts.map +1 -0
- package/dist/discovery.js +281 -0
- package/dist/discovery.js.map +1 -0
- package/dist/errors.d.ts +39 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +69 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -0
- package/dist/protocol/bno086.d.ts +36 -0
- package/dist/protocol/bno086.d.ts.map +1 -0
- package/dist/protocol/bno086.js +38 -0
- package/dist/protocol/bno086.js.map +1 -0
- package/dist/protocol/common.d.ts +103 -0
- package/dist/protocol/common.d.ts.map +1 -0
- package/dist/protocol/common.js +121 -0
- package/dist/protocol/common.js.map +1 -0
- package/dist/protocol/crc.d.ts +17 -0
- package/dist/protocol/crc.d.ts.map +1 -0
- package/dist/protocol/crc.js +55 -0
- package/dist/protocol/crc.js.map +1 -0
- package/dist/protocol/framing.d.ts +65 -0
- package/dist/protocol/framing.d.ts.map +1 -0
- package/dist/protocol/framing.js +152 -0
- package/dist/protocol/framing.js.map +1 -0
- package/dist/protocol/fwdepz.d.ts +21 -0
- package/dist/protocol/fwdepz.d.ts.map +1 -0
- package/dist/protocol/fwdepz.js +46 -0
- package/dist/protocol/fwdepz.js.map +1 -0
- package/dist/protocol/identity.d.ts +14 -0
- package/dist/protocol/identity.d.ts.map +1 -0
- package/dist/protocol/identity.js +28 -0
- package/dist/protocol/identity.js.map +1 -0
- package/dist/protocol/sr04.d.ts +38 -0
- package/dist/protocol/sr04.d.ts.map +1 -0
- package/dist/protocol/sr04.js +58 -0
- package/dist/protocol/sr04.js.map +1 -0
- package/dist/protocol/usb-ids.d.ts +60 -0
- package/dist/protocol/usb-ids.d.ts.map +1 -0
- package/dist/protocol/usb-ids.js +79 -0
- package/dist/protocol/usb-ids.js.map +1 -0
- package/dist/protocol/vl53l8.d.ts +59 -0
- package/dist/protocol/vl53l8.d.ts.map +1 -0
- package/dist/protocol/vl53l8.js +116 -0
- package/dist/protocol/vl53l8.js.map +1 -0
- package/dist/sensors/bno086/bno086.d.ts +197 -0
- package/dist/sensors/bno086/bno086.d.ts.map +1 -0
- package/dist/sensors/bno086/bno086.js +543 -0
- package/dist/sensors/bno086/bno086.js.map +1 -0
- package/dist/sensors/bno086/reports.d.ts +289 -0
- package/dist/sensors/bno086/reports.d.ts.map +1 -0
- package/dist/sensors/bno086/reports.js +397 -0
- package/dist/sensors/bno086/reports.js.map +1 -0
- package/dist/sensors/bno086/sh2.d.ts +307 -0
- package/dist/sensors/bno086/sh2.d.ts.map +1 -0
- package/dist/sensors/bno086/sh2.js +480 -0
- package/dist/sensors/bno086/sh2.js.map +1 -0
- package/dist/sensors/bno086/shtp.d.ts +98 -0
- package/dist/sensors/bno086/shtp.d.ts.map +1 -0
- package/dist/sensors/bno086/shtp.js +205 -0
- package/dist/sensors/bno086/shtp.js.map +1 -0
- package/dist/sensors/sr04.d.ts +65 -0
- package/dist/sensors/sr04.d.ts.map +1 -0
- package/dist/sensors/sr04.js +121 -0
- package/dist/sensors/sr04.js.map +1 -0
- package/dist/sensors/vl53l8/assets/ch.d.ts +16 -0
- package/dist/sensors/vl53l8/assets/ch.d.ts.map +1 -0
- package/dist/sensors/vl53l8/assets/ch.js +22 -0
- package/dist/sensors/vl53l8/assets/ch.js.map +1 -0
- package/dist/sensors/vl53l8/assets/cx.d.ts +16 -0
- package/dist/sensors/vl53l8/assets/cx.d.ts.map +1 -0
- package/dist/sensors/vl53l8/assets/cx.js +22 -0
- package/dist/sensors/vl53l8/assets/cx.js.map +1 -0
- package/dist/sensors/vl53l8/assets/decode.d.ts +7 -0
- package/dist/sensors/vl53l8/assets/decode.d.ts.map +1 -0
- package/dist/sensors/vl53l8/assets/decode.js +35 -0
- package/dist/sensors/vl53l8/assets/decode.js.map +1 -0
- package/dist/sensors/vl53l8/assets/index.d.ts +19 -0
- package/dist/sensors/vl53l8/assets/index.d.ts.map +1 -0
- package/dist/sensors/vl53l8/assets/index.js +11 -0
- package/dist/sensors/vl53l8/assets/index.js.map +1 -0
- package/dist/sensors/vl53l8/cnh.d.ts +113 -0
- package/dist/sensors/vl53l8/cnh.d.ts.map +1 -0
- package/dist/sensors/vl53l8/cnh.js +299 -0
- package/dist/sensors/vl53l8/cnh.js.map +1 -0
- package/dist/sensors/vl53l8/uld.d.ts +346 -0
- package/dist/sensors/vl53l8/uld.d.ts.map +1 -0
- package/dist/sensors/vl53l8/uld.js +1388 -0
- package/dist/sensors/vl53l8/uld.js.map +1 -0
- package/dist/sensors/vl53l8/vl53l8.d.ts +182 -0
- package/dist/sensors/vl53l8/vl53l8.d.ts.map +1 -0
- package/dist/sensors/vl53l8/vl53l8.js +411 -0
- package/dist/sensors/vl53l8/vl53l8.js.map +1 -0
- package/dist/transport/loopback.d.ts +18 -0
- package/dist/transport/loopback.d.ts.map +1 -0
- package/dist/transport/loopback.js +53 -0
- package/dist/transport/loopback.js.map +1 -0
- package/dist/transport/node.d.ts +51 -0
- package/dist/transport/node.d.ts.map +1 -0
- package/dist/transport/node.js +123 -0
- package/dist/transport/node.js.map +1 -0
- package/dist/transport/replay.d.ts +68 -0
- package/dist/transport/replay.d.ts.map +1 -0
- package/dist/transport/replay.js +196 -0
- package/dist/transport/replay.js.map +1 -0
- package/dist/transport/types.d.ts +23 -0
- package/dist/transport/types.d.ts.map +1 -0
- package/dist/transport/types.js +7 -0
- package/dist/transport/types.js.map +1 -0
- package/dist/transport/webserial.d.ts +69 -0
- package/dist/transport/webserial.d.ts.map +1 -0
- package/dist/transport/webserial.js +196 -0
- package/dist/transport/webserial.js.map +1 -0
- package/package.json +77 -0
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SH-2 input-report catalog and parsers (contracts/05_SENSOR_BNO086.md §5).
|
|
3
|
+
*
|
|
4
|
+
* Raw wire integers are authoritative and always preserved; scaled numbers
|
|
5
|
+
* are derived using the fixed Q points below (value = raw / 2**Q). Report
|
|
6
|
+
* IDs and Q points cross-checked against the BNO08X datasheet (CEVA
|
|
7
|
+
* 1000-3927) and the proven vendor host tool `bno086_tool.py`.
|
|
8
|
+
*
|
|
9
|
+
* Timestamps: channel-3 cargos start with a Base Timestamp Reference (0xFB,
|
|
10
|
+
* i32 base delta in 100 µs ticks, SUBTRACTED from the bridge capture time);
|
|
11
|
+
* each report adds its own 14-bit delay (status bits 7:2 are the upper 6
|
|
12
|
+
* bits, byte 3 the lower 8; 100 µs resolution):
|
|
13
|
+
*
|
|
14
|
+
* timestampUs = captureUs - baseDelta*100 + delay*100
|
|
15
|
+
*
|
|
16
|
+
* Mirrors the Python reference `depz_sensor_sdk.bno086.reports`.
|
|
17
|
+
*/
|
|
18
|
+
/** SH-2 input report IDs (datasheet §1.3.5, sh2 reference driver). */
|
|
19
|
+
export declare enum SensorId {
|
|
20
|
+
Accelerometer = 1,// calibrated, m/s², Q8
|
|
21
|
+
Gyroscope = 2,// calibrated, rad/s, Q9
|
|
22
|
+
Magnetometer = 3,// calibrated, µT, Q4
|
|
23
|
+
LinearAcceleration = 4,// gravity removed, m/s², Q8
|
|
24
|
+
RotationVector = 5,// quaternion Q14 + accuracy rad Q12
|
|
25
|
+
Gravity = 6,// m/s², Q8
|
|
26
|
+
UncalibratedGyroscope = 7,// rad/s Q9 + bias
|
|
27
|
+
GameRotationVector = 8,// quaternion Q14, no accuracy
|
|
28
|
+
GeomagneticRotationVector = 9,// quaternion Q14 + accuracy rad Q12
|
|
29
|
+
Pressure = 10,// hPa, Q20 (external sensor; unused on BNO086 boards)
|
|
30
|
+
AmbientLight = 11,// lux, Q8 (external)
|
|
31
|
+
Humidity = 12,// %, Q8 (external)
|
|
32
|
+
Proximity = 13,// cm, Q4 (external)
|
|
33
|
+
Temperature = 14,// °C, Q7 (external)
|
|
34
|
+
UncalibratedMagnetometer = 15,// µT Q4 + hard-iron bias
|
|
35
|
+
TapDetector = 16,
|
|
36
|
+
StepCounter = 17,
|
|
37
|
+
SignificantMotion = 18,
|
|
38
|
+
StabilityClassifier = 19,
|
|
39
|
+
RawAccelerometer = 20,// ADC counts + sensor-clock timestamp
|
|
40
|
+
RawGyroscope = 21,
|
|
41
|
+
RawMagnetometer = 22,
|
|
42
|
+
StepDetector = 24,
|
|
43
|
+
ShakeDetector = 25,
|
|
44
|
+
FlipDetector = 26,
|
|
45
|
+
PickupDetector = 27,
|
|
46
|
+
StabilityDetector = 28,
|
|
47
|
+
PersonalActivityClassifier = 30,
|
|
48
|
+
SleepDetector = 31,
|
|
49
|
+
TiltDetector = 32,
|
|
50
|
+
PocketDetector = 33,
|
|
51
|
+
CircleDetector = 34,
|
|
52
|
+
HeartRateMonitor = 35,
|
|
53
|
+
ArvrStabilizedRv = 40,// quaternion Q14 + accuracy rad Q12
|
|
54
|
+
ArvrStabilizedGameRv = 41,// quaternion Q14, no accuracy
|
|
55
|
+
GyroIntegratedRv = 42
|
|
56
|
+
}
|
|
57
|
+
export declare const BASE_TIMESTAMP_REF = 251;
|
|
58
|
+
export declare const TIMESTAMP_REBASE = 250;
|
|
59
|
+
/** Q point of the primary fields (value = raw / 2**Q); see module docs. */
|
|
60
|
+
export declare const Q_POINTS: Record<number, number>;
|
|
61
|
+
export declare const RV_ACCURACY_Q = 12;
|
|
62
|
+
export declare const GYRO_RV_ANGVEL_Q = 10;
|
|
63
|
+
/**
|
|
64
|
+
* Total report length on the wire, 4-byte SH-2 header included
|
|
65
|
+
* (sh2 reference driver report-length table).
|
|
66
|
+
*/
|
|
67
|
+
export declare const REPORT_LENGTHS: Record<number, number>;
|
|
68
|
+
export declare const STABILITY_NAMES: Record<number, string>;
|
|
69
|
+
export declare const ACTIVITY_NAMES: Record<number, string>;
|
|
70
|
+
/**
|
|
71
|
+
* Base for anything the sensor pushes; `timestampUs` is absolute in the MCU
|
|
72
|
+
* clock domain (bridge capture time corrected by timebase + delay).
|
|
73
|
+
*/
|
|
74
|
+
export interface ReportBase {
|
|
75
|
+
sensorId: number;
|
|
76
|
+
timestampUs: bigint;
|
|
77
|
+
}
|
|
78
|
+
/** Channel-3/4 report with the common SH-2 header fields. */
|
|
79
|
+
export interface InputReportBase extends ReportBase {
|
|
80
|
+
/** 8-bit rolling sample counter (drop detection). */
|
|
81
|
+
seq: number;
|
|
82
|
+
/** Status bits 1:0 — 0 unreliable … 3 high. */
|
|
83
|
+
accuracy: number;
|
|
84
|
+
/** Report delay already folded into timestampUs. */
|
|
85
|
+
delayUs: number;
|
|
86
|
+
}
|
|
87
|
+
/** 0x01 accelerometer / 0x04 linear acceleration / 0x06 gravity (Q8). */
|
|
88
|
+
export interface Acceleration extends InputReportBase {
|
|
89
|
+
type: "Acceleration";
|
|
90
|
+
xRaw: number;
|
|
91
|
+
yRaw: number;
|
|
92
|
+
zRaw: number;
|
|
93
|
+
/** m/s². */
|
|
94
|
+
x: number;
|
|
95
|
+
y: number;
|
|
96
|
+
z: number;
|
|
97
|
+
}
|
|
98
|
+
/** 0x02 calibrated gyroscope (Q9). */
|
|
99
|
+
export interface Gyroscope extends InputReportBase {
|
|
100
|
+
type: "Gyroscope";
|
|
101
|
+
xRaw: number;
|
|
102
|
+
yRaw: number;
|
|
103
|
+
zRaw: number;
|
|
104
|
+
/** rad/s. */
|
|
105
|
+
x: number;
|
|
106
|
+
y: number;
|
|
107
|
+
z: number;
|
|
108
|
+
}
|
|
109
|
+
/** 0x03 calibrated magnetic field (Q4). */
|
|
110
|
+
export interface Magnetometer extends InputReportBase {
|
|
111
|
+
type: "Magnetometer";
|
|
112
|
+
xRaw: number;
|
|
113
|
+
yRaw: number;
|
|
114
|
+
zRaw: number;
|
|
115
|
+
/** µT. */
|
|
116
|
+
x: number;
|
|
117
|
+
y: number;
|
|
118
|
+
z: number;
|
|
119
|
+
}
|
|
120
|
+
/** 0x07 uncalibrated gyroscope + bias estimate (all Q9, rad/s). */
|
|
121
|
+
export interface UncalibratedGyroscope extends InputReportBase {
|
|
122
|
+
type: "UncalibratedGyroscope";
|
|
123
|
+
xRaw: number;
|
|
124
|
+
yRaw: number;
|
|
125
|
+
zRaw: number;
|
|
126
|
+
biasXRaw: number;
|
|
127
|
+
biasYRaw: number;
|
|
128
|
+
biasZRaw: number;
|
|
129
|
+
x: number;
|
|
130
|
+
y: number;
|
|
131
|
+
z: number;
|
|
132
|
+
/** rad/s. */
|
|
133
|
+
bias: [number, number, number];
|
|
134
|
+
}
|
|
135
|
+
/** 0x0F uncalibrated magnetic field + hard-iron bias (all Q4, µT). */
|
|
136
|
+
export interface UncalibratedMagnetometer extends InputReportBase {
|
|
137
|
+
type: "UncalibratedMagnetometer";
|
|
138
|
+
xRaw: number;
|
|
139
|
+
yRaw: number;
|
|
140
|
+
zRaw: number;
|
|
141
|
+
biasXRaw: number;
|
|
142
|
+
biasYRaw: number;
|
|
143
|
+
biasZRaw: number;
|
|
144
|
+
x: number;
|
|
145
|
+
y: number;
|
|
146
|
+
z: number;
|
|
147
|
+
/** µT. */
|
|
148
|
+
bias: [number, number, number];
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Quaternion reports 0x05/0x08/0x09/0x28/0x29 (unit quaternion, Q14).
|
|
152
|
+
* `accuracyRaw` (Q12, radians) is present only for 0x05/0x09/0x28.
|
|
153
|
+
*/
|
|
154
|
+
export interface RotationVector extends InputReportBase {
|
|
155
|
+
type: "RotationVector";
|
|
156
|
+
iRaw: number;
|
|
157
|
+
jRaw: number;
|
|
158
|
+
kRaw: number;
|
|
159
|
+
realRaw: number;
|
|
160
|
+
accuracyRaw: number | null;
|
|
161
|
+
i: number;
|
|
162
|
+
j: number;
|
|
163
|
+
k: number;
|
|
164
|
+
real: number;
|
|
165
|
+
/** Estimated heading accuracy in radians (null for game variants). */
|
|
166
|
+
accuracyRad: number | null;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* 0x2A gyro-integrated rotation vector (channel 5, dense — no SH-2 header).
|
|
170
|
+
* Quaternion Q14, angular velocity Q10 rad/s.
|
|
171
|
+
*/
|
|
172
|
+
export interface GyroIntegratedRV extends ReportBase {
|
|
173
|
+
type: "GyroIntegratedRV";
|
|
174
|
+
iRaw: number;
|
|
175
|
+
jRaw: number;
|
|
176
|
+
kRaw: number;
|
|
177
|
+
realRaw: number;
|
|
178
|
+
vxRaw: number;
|
|
179
|
+
vyRaw: number;
|
|
180
|
+
vzRaw: number;
|
|
181
|
+
i: number;
|
|
182
|
+
j: number;
|
|
183
|
+
k: number;
|
|
184
|
+
real: number;
|
|
185
|
+
/** rad/s. */
|
|
186
|
+
angularVelocity: [number, number, number];
|
|
187
|
+
}
|
|
188
|
+
/** Environment reports 0x0A–0x0E: single value, Q from Q_POINTS. */
|
|
189
|
+
export interface ScalarReport extends InputReportBase {
|
|
190
|
+
type: "ScalarReport";
|
|
191
|
+
valueRaw: number;
|
|
192
|
+
value: number;
|
|
193
|
+
}
|
|
194
|
+
/** 0x10 tap detector; `flags` bit 6 = double tap, bits 0–5 axis/sign. */
|
|
195
|
+
export interface TapDetector extends InputReportBase {
|
|
196
|
+
type: "TapDetector";
|
|
197
|
+
flags: number;
|
|
198
|
+
doubleTap: boolean;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* 0x11 step counter. NOTE: latency u32 µs at bytes 4–7, steps u16 at bytes
|
|
202
|
+
* 8–9 per SH-2; the vendor tool's `latency(2)+steps(2)` comment is wrong.
|
|
203
|
+
*/
|
|
204
|
+
export interface StepCounter extends InputReportBase {
|
|
205
|
+
type: "StepCounter";
|
|
206
|
+
latencyUs: number;
|
|
207
|
+
steps: number;
|
|
208
|
+
}
|
|
209
|
+
/** 0x18 step detector; latency from step event to report, µs. */
|
|
210
|
+
export interface StepDetector extends InputReportBase {
|
|
211
|
+
type: "StepDetector";
|
|
212
|
+
latencyUs: number;
|
|
213
|
+
}
|
|
214
|
+
/** 0x12 significant motion (1 = motion detected; sensor auto-disables). */
|
|
215
|
+
export interface SignificantMotion extends InputReportBase {
|
|
216
|
+
type: "SignificantMotion";
|
|
217
|
+
motion: number;
|
|
218
|
+
}
|
|
219
|
+
/** 0x13 stability classification (see STABILITY_NAMES). */
|
|
220
|
+
export interface StabilityClassifier extends InputReportBase {
|
|
221
|
+
type: "StabilityClassifier";
|
|
222
|
+
classification: number;
|
|
223
|
+
name: string;
|
|
224
|
+
}
|
|
225
|
+
/** 0x19 shake detector; bits 0/1/2 = X/Y/Z shake. */
|
|
226
|
+
export interface ShakeDetector extends InputReportBase {
|
|
227
|
+
type: "ShakeDetector";
|
|
228
|
+
flags: number;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Simple u16-value detectors: 0x1A flip, 0x1B pickup, 0x1C stability
|
|
232
|
+
* detector, 0x1F sleep, 0x20 tilt, 0x21 pocket, 0x22 circle, 0x23 HR.
|
|
233
|
+
*/
|
|
234
|
+
export interface GenericEvent extends InputReportBase {
|
|
235
|
+
type: "GenericEvent";
|
|
236
|
+
valueRaw: number;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* 0x1E personal activity classifier (see ACTIVITY_NAMES).
|
|
240
|
+
* `confidences` are 0–100 per state, states 0–9 of the current page.
|
|
241
|
+
*/
|
|
242
|
+
export interface PersonalActivityClassifier extends InputReportBase {
|
|
243
|
+
type: "PersonalActivityClassifier";
|
|
244
|
+
pageNumber: number;
|
|
245
|
+
endOfSequence: boolean;
|
|
246
|
+
mostLikelyState: number;
|
|
247
|
+
confidences: number[];
|
|
248
|
+
mostLikelyName: string;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* 0x14/0x15/0x16 raw ADC samples + sensor-clock timestamp (u32 µs).
|
|
252
|
+
* `temperatureRaw` is populated only for the raw gyroscope.
|
|
253
|
+
*/
|
|
254
|
+
export interface RawSensor extends InputReportBase {
|
|
255
|
+
type: "RawSensor";
|
|
256
|
+
xRaw: number;
|
|
257
|
+
yRaw: number;
|
|
258
|
+
zRaw: number;
|
|
259
|
+
sensorTimestampUs: number;
|
|
260
|
+
temperatureRaw: number;
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Unrecognized report ID: raw bytes from the ID to end of cargo (the length
|
|
264
|
+
* is unknowable, so parsing stops here).
|
|
265
|
+
*/
|
|
266
|
+
export interface UnknownReport extends ReportBase {
|
|
267
|
+
type: "UnknownReport";
|
|
268
|
+
data: Uint8Array;
|
|
269
|
+
}
|
|
270
|
+
/** Channel-3/4 typed reports (share the SH-2 input header fields). */
|
|
271
|
+
export type InputReport = Acceleration | Gyroscope | Magnetometer | UncalibratedGyroscope | UncalibratedMagnetometer | RotationVector | ScalarReport | TapDetector | StepCounter | StepDetector | SignificantMotion | StabilityClassifier | ShakeDetector | GenericEvent | PersonalActivityClassifier | RawSensor;
|
|
272
|
+
/** Anything the sensor pushes. */
|
|
273
|
+
export type Report = InputReport | GyroIntegratedRV | UnknownReport;
|
|
274
|
+
/**
|
|
275
|
+
* Parse a channel-3/4 cargo into typed reports.
|
|
276
|
+
*
|
|
277
|
+
* `captureTimestampUs` is the bridge RPT_DATA capture time (MCU uptime).
|
|
278
|
+
* Handles 0xFB base timestamp references and 0xFA rebases; every report's
|
|
279
|
+
* timestamp is `base + delay` where base = capture − baseDelta·100 µs.
|
|
280
|
+
*/
|
|
281
|
+
export declare function parseInputCargo(payload: Uint8Array, captureTimestampUs: bigint): Report[];
|
|
282
|
+
/**
|
|
283
|
+
* Parse a channel-5 cargo (gyro-integrated RV, dense format).
|
|
284
|
+
*
|
|
285
|
+
* Two shapes seen on hardware (vendor tool): 7×i16 bare, or prefixed with
|
|
286
|
+
* 0xFB + i32 base delta + u16 delay (both 100 µs ticks).
|
|
287
|
+
*/
|
|
288
|
+
export declare function parseGyroRvCargo(payload: Uint8Array, captureTimestampUs: bigint): GyroIntegratedRV | null;
|
|
289
|
+
//# sourceMappingURL=reports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reports.d.ts","sourceRoot":"","sources":["../../../src/sensors/bno086/reports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,sEAAsE;AACtE,oBAAY,QAAQ;IAClB,aAAa,IAAO,CAAE,uBAAuB;IAC7C,SAAS,IAAO,CAAE,wBAAwB;IAC1C,YAAY,IAAO,CAAE,qBAAqB;IAC1C,kBAAkB,IAAO,CAAE,4BAA4B;IACvD,cAAc,IAAO,CAAE,oCAAoC;IAC3D,OAAO,IAAO,CAAE,WAAW;IAC3B,qBAAqB,IAAO,CAAE,kBAAkB;IAChD,kBAAkB,IAAO,CAAE,8BAA8B;IACzD,yBAAyB,IAAO,CAAE,oCAAoC;IACtE,QAAQ,KAAO,CAAE,sDAAsD;IACvE,YAAY,KAAO,CAAE,qBAAqB;IAC1C,QAAQ,KAAO,CAAE,mBAAmB;IACpC,SAAS,KAAO,CAAE,oBAAoB;IACtC,WAAW,KAAO,CAAE,oBAAoB;IACxC,wBAAwB,KAAO,CAAE,yBAAyB;IAC1D,WAAW,KAAO;IAClB,WAAW,KAAO;IAClB,iBAAiB,KAAO;IACxB,mBAAmB,KAAO;IAC1B,gBAAgB,KAAO,CAAE,sCAAsC;IAC/D,YAAY,KAAO;IACnB,eAAe,KAAO;IACtB,YAAY,KAAO;IACnB,aAAa,KAAO;IACpB,YAAY,KAAO;IACnB,cAAc,KAAO;IACrB,iBAAiB,KAAO;IACxB,0BAA0B,KAAO;IACjC,aAAa,K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