poe-svelte-ui-lib 2.29.2 → 2.30.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.
@@ -0,0 +1,2825 @@
1
+ export const DRONECAN_TYPES = [
2
+ {
3
+ name: "ardupilot.equipment.power.BatteryCells",
4
+ id: 20012,
5
+ kind: "msg",
6
+ signature: 0x5c8b1abd15890ea4n,
7
+ msg: {
8
+ fields: [
9
+ { name: "voltages", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 24, dyn: true } },
10
+ { name: "index", type: { k: "p", kind: "u", bits: 16 } },
11
+ ],
12
+ min: 16,
13
+ max: 405,
14
+ },
15
+ },
16
+ {
17
+ name: "ardupilot.equipment.power.BatteryContinuous",
18
+ id: 20010,
19
+ kind: "msg",
20
+ signature: 0x756b561340d5e4aen,
21
+ msg: {
22
+ fields: [
23
+ { name: "temperature_cells", type: { k: "p", kind: "f", bits: 16 } },
24
+ { name: "temperature_pcb", type: { k: "p", kind: "f", bits: 16 } },
25
+ { name: "temperature_other", type: { k: "p", kind: "f", bits: 16 } },
26
+ { name: "current", type: { k: "p", kind: "f", bits: 32 } },
27
+ { name: "voltage", type: { k: "p", kind: "f", bits: 32 } },
28
+ { name: "state_of_charge", type: { k: "p", kind: "f", bits: 16 } },
29
+ { name: "slot_id", type: { k: "p", kind: "u", bits: 8 } },
30
+ { name: "capacity_consumed", type: { k: "p", kind: "f", bits: 32 } },
31
+ { name: "status_flags", type: { k: "p", kind: "u", bits: 32 } },
32
+ ],
33
+ min: 200,
34
+ max: 200,
35
+ constants: {
36
+ STATUS_FLAG_READY_TO_USE: 1,
37
+ STATUS_FLAG_CHARGING: 2,
38
+ STATUS_FLAG_CELL_BALANCING: 4,
39
+ STATUS_FLAG_FAULT_CELL_IMBALANCE: 8,
40
+ STATUS_FLAG_AUTO_DISCHARGING: 16,
41
+ STATUS_FLAG_REQUIRES_SERVICE: 32,
42
+ STATUS_FLAG_BAD_BATTERY: 64,
43
+ STATUS_FLAG_PROTECTIONS_ENABLED: 128,
44
+ STATUS_FLAG_FAULT_PROTECTION_SYSTEM: 256,
45
+ STATUS_FLAG_FAULT_OVER_VOLT: 512,
46
+ STATUS_FLAG_FAULT_UNDER_VOLT: 1024,
47
+ STATUS_FLAG_FAULT_OVER_TEMP: 2048,
48
+ STATUS_FLAG_FAULT_UNDER_TEMP: 4096,
49
+ STATUS_FLAG_FAULT_OVER_CURRENT: 8192,
50
+ STATUS_FLAG_FAULT_SHORT_CIRCUIT: 16384,
51
+ STATUS_FLAG_FAULT_INCOMPATIBLE_VOLTAGE: 32768,
52
+ STATUS_FLAG_FAULT_INCOMPATIBLE_FIRMWARE: 65536,
53
+ STATUS_FLAG_FAULT_INCOMPATIBLE_CELLS_CONFIGURATION: 131072,
54
+ STATUS_FLAG_CAPACITY_RELATIVE_TO_FULL: 262144,
55
+ },
56
+ },
57
+ },
58
+ {
59
+ name: "uavcan.Timestamp",
60
+ id: null,
61
+ kind: "msg",
62
+ signature: 0x05bd0b5c81087e0dn,
63
+ msg: { fields: [{ name: "usec", type: { k: "p", kind: "u", bits: 56, trunc: true } }], min: 56, max: 56, constants: { UNKNOWN: 0 } },
64
+ },
65
+ {
66
+ name: "ardupilot.equipment.power.BatteryInfoAux",
67
+ id: 20004,
68
+ kind: "msg",
69
+ signature: 0x7d7f49fc75484882n,
70
+ msg: {
71
+ fields: [
72
+ { name: "timestamp", type: { k: "c", name: "uavcan.Timestamp" } },
73
+ { name: "voltage_cell", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 255, dyn: true } },
74
+ { name: "cycle_count", type: { k: "p", kind: "u", bits: 16 } },
75
+ { name: "over_discharge_count", type: { k: "p", kind: "u", bits: 16 } },
76
+ { name: "max_current", type: { k: "p", kind: "f", bits: 16 } },
77
+ { name: "nominal_voltage", type: { k: "p", kind: "f", bits: 16 } },
78
+ { name: "is_powering_off", type: { k: "p", kind: "b", bits: 1 } },
79
+ { name: "battery_id", type: { k: "p", kind: "u", bits: 8 } },
80
+ ],
81
+ min: 129,
82
+ max: 4217,
83
+ },
84
+ },
85
+ {
86
+ name: "ardupilot.equipment.power.BatteryPeriodic",
87
+ id: 20011,
88
+ kind: "msg",
89
+ signature: 0x0f012494e97358d2n,
90
+ msg: {
91
+ fields: [
92
+ { name: "name", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 50, dyn: true } },
93
+ { name: "serial_number", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 32, dyn: true } },
94
+ { name: "manufacture_date", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 9, dyn: true } },
95
+ { name: "design_capacity", type: { k: "p", kind: "f", bits: 32 } },
96
+ { name: "cells_in_series", type: { k: "p", kind: "u", bits: 8 } },
97
+ { name: "nominal_voltage", type: { k: "p", kind: "f", bits: 16 } },
98
+ { name: "discharge_minimum_voltage", type: { k: "p", kind: "f", bits: 16 } },
99
+ { name: "charging_minimum_voltage", type: { k: "p", kind: "f", bits: 16 } },
100
+ { name: "charging_maximum_voltage", type: { k: "p", kind: "f", bits: 16 } },
101
+ { name: "charging_maximum_current", type: { k: "p", kind: "f", bits: 32 } },
102
+ { name: "discharge_maximum_current", type: { k: "p", kind: "f", bits: 32 } },
103
+ { name: "discharge_maximum_burst_current", type: { k: "p", kind: "f", bits: 32 } },
104
+ { name: "full_charge_capacity", type: { k: "p", kind: "f", bits: 32 } },
105
+ { name: "cycle_count", type: { k: "p", kind: "u", bits: 16 } },
106
+ { name: "state_of_health", type: { k: "p", kind: "u", bits: 8 } },
107
+ ],
108
+ min: 256,
109
+ max: 1000,
110
+ },
111
+ },
112
+ {
113
+ name: "ardupilot.equipment.power.BatteryTag",
114
+ id: 20500,
115
+ kind: "msg",
116
+ signature: 0x4a5a9b42099f73e1n,
117
+ msg: {
118
+ fields: [
119
+ { name: "serial_number", type: { k: "p", kind: "u", bits: 32 } },
120
+ { name: "num_cycles", type: { k: "p", kind: "u", bits: 32 } },
121
+ { name: "armed_hours", type: { k: "p", kind: "f", bits: 32 } },
122
+ { name: "battery_capacity_mAh", type: { k: "p", kind: "u", bits: 32 } },
123
+ { name: "first_use_mins", type: { k: "p", kind: "u", bits: 32 } },
124
+ { name: "last_arm_time_mins", type: { k: "p", kind: "u", bits: 32 } },
125
+ ],
126
+ min: 192,
127
+ max: 192,
128
+ },
129
+ },
130
+ {
131
+ name: "ardupilot.equipment.proximity_sensor.Proximity",
132
+ id: 21910,
133
+ kind: "msg",
134
+ signature: 0x99dd3985fb3222cen,
135
+ msg: {
136
+ fields: [
137
+ { name: "sensor_id", type: { k: "p", kind: "u", bits: 8 } },
138
+ { name: "reading_type", type: { k: "p", kind: "u", bits: 3 } },
139
+ { name: "flags", type: { k: "p", kind: "u", bits: 5 } },
140
+ { name: "yaw", type: { k: "p", kind: "f", bits: 16 } },
141
+ { name: "pitch", type: { k: "p", kind: "f", bits: 16 } },
142
+ { name: "distance", type: { k: "p", kind: "f", bits: 16 } },
143
+ ],
144
+ min: 64,
145
+ max: 64,
146
+ constants: { READING_TYPE_NO_DATA: 0, READING_TYPE_NOT_CONNECTED: 1, READING_TYPE_GOOD: 2, FLAGS_NONE: 0 },
147
+ },
148
+ },
149
+ {
150
+ name: "ardupilot.equipment.trafficmonitor.TrafficReport",
151
+ id: 20790,
152
+ kind: "msg",
153
+ signature: 0x68e45db60b6981f8n,
154
+ msg: {
155
+ fields: [
156
+ { name: "timestamp", type: { k: "c", name: "uavcan.Timestamp" } },
157
+ { name: "icao_address", type: { k: "p", kind: "u", bits: 32 } },
158
+ { name: "tslc", type: { k: "p", kind: "u", bits: 16 } },
159
+ { name: "latitude_deg_1e7", type: { k: "p", kind: "i", bits: 32 } },
160
+ { name: "longitude_deg_1e7", type: { k: "p", kind: "i", bits: 32 } },
161
+ { name: "alt_m", type: { k: "p", kind: "f", bits: 32 } },
162
+ { name: "heading", type: { k: "p", kind: "f", bits: 16 } },
163
+ { name: "velocity", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 3 } },
164
+ { name: "squawk", type: { k: "p", kind: "u", bits: 16 } },
165
+ { name: "callsign", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 9 } },
166
+ { name: "source", type: { k: "p", kind: "u", bits: 3 } },
167
+ { name: "traffic_type", type: { k: "p", kind: "u", bits: 5 } },
168
+ { name: "alt_type", type: { k: "p", kind: "u", bits: 7 } },
169
+ { name: "lat_lon_valid", type: { k: "p", kind: "b", bits: 1 } },
170
+ { name: "heading_valid", type: { k: "p", kind: "b", bits: 1 } },
171
+ { name: "velocity_valid", type: { k: "p", kind: "b", bits: 1 } },
172
+ { name: "callsign_valid", type: { k: "p", kind: "b", bits: 1 } },
173
+ { name: "ident_valid", type: { k: "p", kind: "b", bits: 1 } },
174
+ { name: "simulated_report", type: { k: "p", kind: "b", bits: 1 } },
175
+ { name: "vertical_velocity_valid", type: { k: "p", kind: "b", bits: 1 } },
176
+ { name: "baro_valid", type: { k: "p", kind: "b", bits: 1 } },
177
+ ],
178
+ min: 375,
179
+ max: 375,
180
+ constants: {
181
+ SOURCE_ADSB: 0,
182
+ SOURCE_ADSB_UAT: 1,
183
+ SOURCE_FLARM: 2,
184
+ TRAFFIC_TYPE_UNKNOWN: 0,
185
+ TRAFFIC_TYPE_LIGHT: 1,
186
+ TRAFFIC_TYPE_SMALL: 2,
187
+ TRAFFIC_TYPE_LARGE: 3,
188
+ TRAFFIC_TYPE_HIGH_VORTEX_LARGE: 4,
189
+ TRAFFIC_TYPE_HEAVY: 5,
190
+ TRAFFIC_TYPE_HIGHLY_MANUV: 6,
191
+ TRAFFIC_TYPE_ROTOCRAFT: 7,
192
+ TRAFFIC_TYPE_GLIDER: 9,
193
+ TRAFFIC_TYPE_LIGHTER_THAN_AIR: 10,
194
+ TRAFFIC_TYPE_PARACHUTE: 11,
195
+ TRAFFIC_TYPE_ULTRA_LIGHT: 12,
196
+ TRAFFIC_TYPE_UAV: 14,
197
+ TRAFFIC_TYPE_SPACE: 15,
198
+ TRAFFIC_TYPE_EMERGENCY_SURFACE: 17,
199
+ TRAFFIC_TYPE_SERVICE_SURFACE: 18,
200
+ TRAFFIC_TYPE_POINT_OBSTACLE: 19,
201
+ ALT_TYPE_ALT_UNKNOWN: 0,
202
+ ALT_TYPE_PRESSURE_AMSL: 1,
203
+ ALT_TYPE_WGS84: 2,
204
+ },
205
+ },
206
+ },
207
+ {
208
+ name: "ardupilot.gnss.Heading",
209
+ id: 20002,
210
+ kind: "msg",
211
+ signature: 0x315cae39eced3412n,
212
+ msg: {
213
+ fields: [
214
+ { name: "heading_valid", type: { k: "p", kind: "b", bits: 1 } },
215
+ { name: "heading_accuracy_valid", type: { k: "p", kind: "b", bits: 1 } },
216
+ { name: "heading_rad", type: { k: "p", kind: "f", bits: 16 } },
217
+ { name: "heading_accuracy_rad", type: { k: "p", kind: "f", bits: 16 } },
218
+ ],
219
+ min: 34,
220
+ max: 34,
221
+ },
222
+ },
223
+ {
224
+ name: "ardupilot.gnss.MovingBaselineData",
225
+ id: 20005,
226
+ kind: "msg",
227
+ signature: 0x09f323748c32133an,
228
+ msg: { fields: [{ name: "data", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 300, dyn: true } }], min: 0, max: 2409 },
229
+ },
230
+ {
231
+ name: "ardupilot.gnss.RelPosHeading",
232
+ id: 20006,
233
+ kind: "msg",
234
+ signature: 0xa1727af295f94478n,
235
+ msg: {
236
+ fields: [
237
+ { name: "timestamp", type: { k: "c", name: "uavcan.Timestamp" } },
238
+ { name: "reported_heading_acc_available", type: { k: "p", kind: "b", bits: 1 } },
239
+ { name: "reported_heading_deg", type: { k: "p", kind: "f", bits: 32 } },
240
+ { name: "reported_heading_acc_deg", type: { k: "p", kind: "f", bits: 32 } },
241
+ { name: "relative_distance_m", type: { k: "p", kind: "f", bits: 16 } },
242
+ { name: "relative_down_pos_m", type: { k: "p", kind: "f", bits: 16 } },
243
+ ],
244
+ min: 153,
245
+ max: 153,
246
+ },
247
+ },
248
+ {
249
+ name: "ardupilot.gnss.Status",
250
+ id: 20003,
251
+ kind: "msg",
252
+ signature: 0xba3cb4abbb007f69n,
253
+ msg: {
254
+ fields: [
255
+ { name: "error_codes", type: { k: "p", kind: "u", bits: 32 } },
256
+ { name: "healthy", type: { k: "p", kind: "b", bits: 1 } },
257
+ { name: "status", type: { k: "p", kind: "u", bits: 23 } },
258
+ ],
259
+ min: 56,
260
+ max: 56,
261
+ constants: { STATUS_LOGGING: 1, STATUS_ARMABLE: 2 },
262
+ },
263
+ },
264
+ {
265
+ name: "ardupilot.indication.Button",
266
+ id: 20001,
267
+ kind: "msg",
268
+ signature: 0x0645a46efba7466en,
269
+ msg: {
270
+ fields: [
271
+ { name: "button", type: { k: "p", kind: "u", bits: 8 } },
272
+ { name: "press_time", type: { k: "p", kind: "u", bits: 8 } },
273
+ ],
274
+ min: 16,
275
+ max: 16,
276
+ constants: { BUTTON_SAFETY: 1 },
277
+ },
278
+ },
279
+ {
280
+ name: "ardupilot.indication.NotifyState",
281
+ id: 20007,
282
+ kind: "msg",
283
+ signature: 0x631f2a9c1651fdecn,
284
+ msg: {
285
+ fields: [
286
+ { name: "aux_data_type", type: { k: "p", kind: "u", bits: 8 } },
287
+ { name: "aux_data", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 255, dyn: true } },
288
+ { name: "vehicle_state", type: { k: "p", kind: "u", bits: 64 } },
289
+ ],
290
+ min: 72,
291
+ max: 2120,
292
+ constants: {
293
+ VEHICLE_STATE_INITIALISING: 0,
294
+ VEHICLE_STATE_ARMED: 1,
295
+ VEHICLE_STATE_FLYING: 2,
296
+ VEHICLE_STATE_PREARM: 3,
297
+ VEHICLE_STATE_PREARM_GPS: 4,
298
+ VEHICLE_STATE_SAVE_TRIM: 5,
299
+ VEHICLE_STATE_ESC_CALIBRATION: 6,
300
+ VEHICLE_STATE_FAILSAFE_RADIO: 7,
301
+ VEHICLE_STATE_FAILSAFE_BATT: 8,
302
+ VEHICLE_STATE_FAILSAFE_GCS: 9,
303
+ VEHICLE_STATE_CHUTE_RELEASED: 10,
304
+ VEHICLE_STATE_EKF_BAD: 11,
305
+ VEHICLE_STATE_FW_UPDATE: 12,
306
+ VEHICLE_STATE_MAGCAL_RUN: 13,
307
+ VEHICLE_STATE_LEAK_DET: 14,
308
+ VEHICLE_STATE_GPS_FUSION: 15,
309
+ VEHICLE_STATE_GPS_GLITCH: 16,
310
+ VEHICLE_STATE_POS_ABS_AVAIL: 17,
311
+ VEHICLE_STATE_LOST: 18,
312
+ VEHICLE_STATE_THROW_READY: 19,
313
+ VEHICLE_STATE_POWERING_OFF: 20,
314
+ VEHICLE_STATE_VIDEO_RECORDING: 21,
315
+ VEHICLE_STATE_IS_LANDING: 22,
316
+ VEHICLE_STATE_IS_TAKING_OFF: 23,
317
+ VEHICLE_YAW_EARTH_CENTIDEGREES: 0,
318
+ },
319
+ },
320
+ },
321
+ {
322
+ name: "ardupilot.indication.SafetyState",
323
+ id: 20000,
324
+ kind: "msg",
325
+ signature: 0xe965701a95a1a6a1n,
326
+ msg: { fields: [{ name: "status", type: { k: "p", kind: "u", bits: 8 } }], min: 8, max: 8, constants: { STATUS_SAFETY_ON: 0, STATUS_SAFETY_OFF: 255 } },
327
+ },
328
+ {
329
+ name: "com.hex.equipment.flow.Measurement",
330
+ id: 20200,
331
+ kind: "msg",
332
+ signature: 0x6a908866bcb49c18n,
333
+ msg: {
334
+ fields: [
335
+ { name: "integration_interval", type: { k: "p", kind: "f", bits: 32 } },
336
+ { name: "rate_gyro_integral", type: { k: "a", of: { k: "p", kind: "f", bits: 32 }, max: 2 } },
337
+ { name: "flow_integral", type: { k: "a", of: { k: "p", kind: "f", bits: 32 }, max: 2 } },
338
+ { name: "quality", type: { k: "p", kind: "u", bits: 8 } },
339
+ ],
340
+ min: 168,
341
+ max: 168,
342
+ },
343
+ },
344
+ {
345
+ name: "com.himark.servo.ServoCmd",
346
+ id: 2018,
347
+ kind: "msg",
348
+ signature: 0x5d09e48551ce9194n,
349
+ msg: { fields: [{ name: "cmd", type: { k: "a", of: { k: "p", kind: "u", bits: 10 }, max: 17, dyn: true } }], min: 0, max: 175 },
350
+ },
351
+ {
352
+ name: "com.himark.servo.ServoInfo",
353
+ id: 2019,
354
+ kind: "msg",
355
+ signature: 0xca8f4b8f97d23b57n,
356
+ msg: {
357
+ fields: [
358
+ { name: "servo_id", type: { k: "p", kind: "u", bits: 5 } },
359
+ { name: "pwm_input", type: { k: "p", kind: "u", bits: 12 } },
360
+ { name: "pos_cmd", type: { k: "p", kind: "i", bits: 16 } },
361
+ { name: "pos_sensor", type: { k: "p", kind: "i", bits: 16 } },
362
+ { name: "voltage", type: { k: "p", kind: "u", bits: 12 } },
363
+ { name: "current", type: { k: "p", kind: "u", bits: 10 } },
364
+ { name: "pcb_temp", type: { k: "p", kind: "u", bits: 10 } },
365
+ { name: "motor_temp", type: { k: "p", kind: "u", bits: 10 } },
366
+ { name: "error_status", type: { k: "p", kind: "u", bits: 5 } },
367
+ ],
368
+ min: 96,
369
+ max: 96,
370
+ constants: { ERROR_STATUS_NO_ERROR: 0, ERROR_STATUS_DATA_ERROR: 1 },
371
+ },
372
+ },
373
+ {
374
+ name: "com.hobbywing.esc.GetEscID",
375
+ id: 20013,
376
+ kind: "msg",
377
+ signature: 0x0000000000004e2dn,
378
+ msg: { fields: [{ name: "payload", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 3, dyn: true } }], min: 0, max: 26 },
379
+ },
380
+ {
381
+ name: "com.hobbywing.esc.GetMaintenanceInformation",
382
+ id: 241,
383
+ kind: "srv",
384
+ signature: 0xb81dbd4ec9a5977dn,
385
+ req: { fields: [{ name: "option", type: { k: "p", kind: "u", bits: 8 } }], min: 8, max: 8, constants: { OPTION_CLEAR: 1 } },
386
+ res: {
387
+ fields: [
388
+ { name: "total_rotation_time_min", type: { k: "p", kind: "u", bits: 32 } },
389
+ { name: "time_since_maintainence_min", type: { k: "p", kind: "u", bits: 24 } },
390
+ ],
391
+ min: 56,
392
+ max: 56,
393
+ },
394
+ },
395
+ {
396
+ name: "com.hobbywing.esc.GetMajorConfig",
397
+ id: 242,
398
+ kind: "srv",
399
+ signature: 0x1506774da3930bfdn,
400
+ req: { fields: [{ name: "option", type: { k: "p", kind: "u", bits: 8 } }], min: 8, max: 8 },
401
+ res: {
402
+ fields: [
403
+ { name: "direction", type: { k: "p", kind: "b", bits: 1 } },
404
+ { name: "throttle_source", type: { k: "p", kind: "b", bits: 1 } },
405
+ { name: "throttle_channel", type: { k: "p", kind: "u", bits: 6 } },
406
+ { name: "led_status", type: { k: "p", kind: "u", bits: 5 } },
407
+ { name: "led_color", type: { k: "p", kind: "u", bits: 3 } },
408
+ { name: "MSG2_rate", type: { k: "p", kind: "u", bits: 4 } },
409
+ { name: "MSG1_rate", type: { k: "p", kind: "u", bits: 4 } },
410
+ { name: "positioning_angle", type: { k: "p", kind: "u", bits: 16 } },
411
+ { name: "reserved", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 2 } },
412
+ ],
413
+ min: 56,
414
+ max: 56,
415
+ },
416
+ },
417
+ {
418
+ name: "com.hobbywing.esc.RawCommand",
419
+ id: 20100,
420
+ kind: "msg",
421
+ signature: 0xbdf086c79f6640adn,
422
+ msg: { fields: [{ name: "command", type: { k: "a", of: { k: "p", kind: "i", bits: 14 }, max: 8, dyn: true } }], min: 0, max: 116 },
423
+ },
424
+ {
425
+ name: "com.hobbywing.esc.SelfTest",
426
+ id: 216,
427
+ kind: "srv",
428
+ signature: 0xc48d4de61c5295dfn,
429
+ req: { fields: [], min: 0, max: 0 },
430
+ res: { fields: [{ name: "status", type: { k: "p", kind: "u", bits: 8 } }], min: 8, max: 8, constants: { STATUS_PASS: 0, STATUS_FAIL: 1 } },
431
+ },
432
+ {
433
+ name: "com.hobbywing.esc.SetAngle",
434
+ id: 217,
435
+ kind: "srv",
436
+ signature: 0x81d9b10761c28e0an,
437
+ req: {
438
+ fields: [
439
+ { name: "option", type: { k: "p", kind: "u", bits: 8 } },
440
+ { name: "angle", type: { k: "p", kind: "u", bits: 16 } },
441
+ ],
442
+ min: 24,
443
+ max: 24,
444
+ },
445
+ res: {
446
+ fields: [
447
+ { name: "option", type: { k: "p", kind: "u", bits: 8 } },
448
+ { name: "angle", type: { k: "a", of: { k: "p", kind: "u", bits: 16 }, max: 2, dyn: true } },
449
+ ],
450
+ min: 8,
451
+ max: 42,
452
+ },
453
+ },
454
+ {
455
+ name: "com.hobbywing.esc.SetBaud",
456
+ id: 211,
457
+ kind: "srv",
458
+ signature: 0xada98653b52de435n,
459
+ req: {
460
+ fields: [{ name: "baud", type: { k: "p", kind: "u", bits: 8 } }],
461
+ min: 8,
462
+ max: 8,
463
+ constants: { BAUD_1MBPS: 0, BAUD_500KBPS: 1, BAUD_250KBPS: 2, BAUD_200KBPS: 3, BAUD_100KBPS: 4, BAUD_50KBPS: 5 },
464
+ },
465
+ res: { fields: [], min: 0, max: 0 },
466
+ },
467
+ {
468
+ name: "com.hobbywing.esc.SetDirection",
469
+ id: 213,
470
+ kind: "srv",
471
+ signature: 0x9d793111d262ba68n,
472
+ req: {
473
+ fields: [{ name: "direction", type: { k: "p", kind: "u", bits: 8 } }],
474
+ min: 8,
475
+ max: 8,
476
+ constants: { DIRECTION_CLOCKWISE: 0, DIRECTION_COUNTER_CLOCKWISE: 1, DIRECTION_QUERY: 255 },
477
+ },
478
+ res: { fields: [{ name: "direction", type: { k: "p", kind: "u", bits: 8 } }], min: 8, max: 8 },
479
+ },
480
+ {
481
+ name: "com.hobbywing.esc.SetID",
482
+ id: 210,
483
+ kind: "srv",
484
+ signature: 0xc323cb5e9ec2b6f7n,
485
+ req: {
486
+ fields: [
487
+ { name: "node_id", type: { k: "p", kind: "u", bits: 8 } },
488
+ { name: "throttle_channel", type: { k: "p", kind: "u", bits: 8 } },
489
+ ],
490
+ min: 16,
491
+ max: 16,
492
+ },
493
+ res: {
494
+ fields: [
495
+ { name: "node_id", type: { k: "p", kind: "u", bits: 8 } },
496
+ { name: "throttle_channel", type: { k: "p", kind: "u", bits: 8 } },
497
+ ],
498
+ min: 16,
499
+ max: 16,
500
+ },
501
+ },
502
+ {
503
+ name: "com.hobbywing.esc.SetLED",
504
+ id: 212,
505
+ kind: "srv",
506
+ signature: 0xb493bd48c0853ee5n,
507
+ req: {
508
+ fields: [
509
+ { name: "option", type: { k: "p", kind: "u", bits: 8 } },
510
+ { name: "color", type: { k: "p", kind: "u", bits: 8 } },
511
+ { name: "blink", type: { k: "p", kind: "u", bits: 8 } },
512
+ ],
513
+ min: 24,
514
+ max: 24,
515
+ constants: { OPTION_SAVE: 1, COLOR_R: 4, COLOR_G: 2, COLOR_B: 1, BLINK_OFF: 0, BLINK_1HZ: 1, BLINK_2HZ: 2, BLINK_5HZ: 5 },
516
+ },
517
+ res: {
518
+ fields: [
519
+ { name: "option", type: { k: "p", kind: "u", bits: 8 } },
520
+ { name: "color", type: { k: "p", kind: "u", bits: 8 } },
521
+ { name: "blink", type: { k: "p", kind: "u", bits: 8 } },
522
+ ],
523
+ min: 24,
524
+ max: 24,
525
+ },
526
+ },
527
+ {
528
+ name: "com.hobbywing.esc.SetReportingFrequency",
529
+ id: 214,
530
+ kind: "srv",
531
+ signature: 0x1fd0404420983debn,
532
+ req: {
533
+ fields: [
534
+ { name: "option", type: { k: "p", kind: "u", bits: 8 } },
535
+ { name: "MSG_ID", type: { k: "p", kind: "u", bits: 16 } },
536
+ { name: "rate", type: { k: "p", kind: "u", bits: 8 } },
537
+ ],
538
+ min: 32,
539
+ max: 32,
540
+ constants: {
541
+ OPTION_READ: 0,
542
+ OPTION_WRITE: 1,
543
+ RATE_500HZ: 1,
544
+ RATE_250HZ: 2,
545
+ RATE_200HZ: 3,
546
+ RATE_100HZ: 4,
547
+ RATE_50HZ: 5,
548
+ RATE_20HZ: 6,
549
+ RATE_10HZ: 7,
550
+ RATE_1HZ: 8,
551
+ RATE_0HZ: 9,
552
+ },
553
+ },
554
+ res: {
555
+ fields: [
556
+ { name: "option", type: { k: "p", kind: "u", bits: 8 } },
557
+ { name: "MSG_ID", type: { k: "p", kind: "u", bits: 16 } },
558
+ { name: "rate", type: { k: "p", kind: "u", bits: 8 } },
559
+ ],
560
+ min: 32,
561
+ max: 32,
562
+ },
563
+ },
564
+ {
565
+ name: "com.hobbywing.esc.SetThrottleSource",
566
+ id: 215,
567
+ kind: "srv",
568
+ signature: 0x0c248faaefe5e29an,
569
+ req: { fields: [{ name: "source", type: { k: "p", kind: "u", bits: 8 } }], min: 8, max: 8, constants: { SOURCE_CAN_DIGITAL: 0, SOURCE_PWM: 1 } },
570
+ res: { fields: [{ name: "source", type: { k: "p", kind: "u", bits: 8 } }], min: 8, max: 8 },
571
+ },
572
+ {
573
+ name: "com.hobbywing.esc.StatusMsg1",
574
+ id: 20050,
575
+ kind: "msg",
576
+ signature: 0x0813b3e2c4ad670en,
577
+ msg: {
578
+ fields: [
579
+ { name: "rpm", type: { k: "p", kind: "u", bits: 16 } },
580
+ { name: "pwm", type: { k: "p", kind: "u", bits: 16 } },
581
+ { name: "status", type: { k: "p", kind: "u", bits: 16 } },
582
+ ],
583
+ min: 48,
584
+ max: 48,
585
+ },
586
+ },
587
+ {
588
+ name: "com.hobbywing.esc.StatusMsg2",
589
+ id: 20051,
590
+ kind: "msg",
591
+ signature: 0x1675da01c3b91297n,
592
+ msg: {
593
+ fields: [
594
+ { name: "input_voltage", type: { k: "p", kind: "i", bits: 16 } },
595
+ { name: "current", type: { k: "p", kind: "i", bits: 16 } },
596
+ { name: "temperature", type: { k: "p", kind: "u", bits: 8 } },
597
+ ],
598
+ min: 40,
599
+ max: 40,
600
+ },
601
+ },
602
+ {
603
+ name: "com.hobbywing.esc.StatusMsg3",
604
+ id: 20052,
605
+ kind: "msg",
606
+ signature: 0x24919cd1eb34ece9n,
607
+ msg: {
608
+ fields: [
609
+ { name: "MOS_T", type: { k: "p", kind: "u", bits: 8 } },
610
+ { name: "CAP_T", type: { k: "p", kind: "u", bits: 8 } },
611
+ { name: "Motor_T", type: { k: "p", kind: "u", bits: 8 } },
612
+ ],
613
+ min: 24,
614
+ max: 24,
615
+ },
616
+ },
617
+ {
618
+ name: "com.tmotor.esc.FocCtrl",
619
+ id: 1035,
620
+ kind: "msg",
621
+ signature: 0x598143612fbc000bn,
622
+ msg: {
623
+ fields: [
624
+ { name: "esc_index", type: { k: "p", kind: "u", bits: 8 } },
625
+ { name: "esc_mode", type: { k: "p", kind: "u", bits: 8 } },
626
+ { name: "esc_fdb_rate", type: { k: "p", kind: "u", bits: 8 } },
627
+ { name: "esc_cmd", type: { k: "p", kind: "u", bits: 8 } },
628
+ { name: "esc_cmd_val", type: { k: "p", kind: "i", bits: 32 } },
629
+ ],
630
+ min: 64,
631
+ max: 64,
632
+ },
633
+ },
634
+ {
635
+ name: "com.tmotor.esc.PUSHCAN",
636
+ id: 1039,
637
+ kind: "msg",
638
+ signature: 0xaacf9b4b2577bc6en,
639
+ msg: {
640
+ fields: [
641
+ { name: "data_sequence", type: { k: "p", kind: "u", bits: 32 } },
642
+ { name: "data", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 255, dyn: true } },
643
+ ],
644
+ min: 32,
645
+ max: 2080,
646
+ },
647
+ },
648
+ {
649
+ name: "com.tmotor.esc.PUSHSCI",
650
+ id: 1038,
651
+ kind: "msg",
652
+ signature: 0xce2b6d6b6bdc0ae8n,
653
+ msg: {
654
+ fields: [
655
+ { name: "data_sequence", type: { k: "p", kind: "u", bits: 32 } },
656
+ { name: "data", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 255, dyn: true } },
657
+ ],
658
+ min: 32,
659
+ max: 2080,
660
+ },
661
+ },
662
+ {
663
+ name: "com.tmotor.esc.ParamCfg",
664
+ id: 1033,
665
+ kind: "msg",
666
+ signature: 0x948f5e0b33e0edeen,
667
+ msg: {
668
+ fields: [
669
+ { name: "esc_index", type: { k: "p", kind: "u", bits: 8 } },
670
+ { name: "esc_uuid", type: { k: "p", kind: "u", bits: 32 } },
671
+ { name: "esc_id_set", type: { k: "p", kind: "u", bits: 16 } },
672
+ { name: "esc_ov_threshold", type: { k: "p", kind: "u", bits: 16 } },
673
+ { name: "esc_oc_threshold", type: { k: "p", kind: "u", bits: 16 } },
674
+ { name: "esc_ot_threshold", type: { k: "p", kind: "u", bits: 16 } },
675
+ { name: "esc_acc_threshold", type: { k: "p", kind: "u", bits: 16 } },
676
+ { name: "esc_dacc_threshold", type: { k: "p", kind: "u", bits: 16 } },
677
+ { name: "esc_rotate_dir", type: { k: "p", kind: "i", bits: 16 } },
678
+ { name: "esc_timing", type: { k: "p", kind: "u", bits: 8 } },
679
+ { name: "esc_signal_priority", type: { k: "p", kind: "u", bits: 8 } },
680
+ { name: "esc_led_mode", type: { k: "p", kind: "u", bits: 16 } },
681
+ { name: "esc_can_rate", type: { k: "p", kind: "u", bits: 8 } },
682
+ { name: "esc_fdb_rate", type: { k: "p", kind: "u", bits: 16 } },
683
+ { name: "esc_save_option", type: { k: "p", kind: "u", bits: 8 } },
684
+ ],
685
+ min: 216,
686
+ max: 216,
687
+ },
688
+ },
689
+ {
690
+ name: "com.tmotor.esc.ParamGet",
691
+ id: 1332,
692
+ kind: "msg",
693
+ signature: 0x462875a0ed874302n,
694
+ msg: {
695
+ fields: [
696
+ { name: "esc_index", type: { k: "p", kind: "u", bits: 8 } },
697
+ { name: "esc_uuid", type: { k: "p", kind: "u", bits: 32 } },
698
+ { name: "esc_id_req", type: { k: "p", kind: "u", bits: 16 } },
699
+ { name: "esc_ov_threshold", type: { k: "p", kind: "u", bits: 16 } },
700
+ { name: "esc_oc_threshold", type: { k: "p", kind: "u", bits: 16 } },
701
+ { name: "esc_ot_threshold", type: { k: "p", kind: "u", bits: 16 } },
702
+ { name: "esc_acc_threshold", type: { k: "p", kind: "u", bits: 16 } },
703
+ { name: "esc_dacc_threshold", type: { k: "p", kind: "u", bits: 16 } },
704
+ { name: "esc_rotate_dir", type: { k: "p", kind: "i", bits: 16 } },
705
+ { name: "esc_timing", type: { k: "p", kind: "u", bits: 8 } },
706
+ { name: "esc_startup_times", type: { k: "p", kind: "u", bits: 16 } },
707
+ { name: "esc_startup_duration", type: { k: "p", kind: "u", bits: 32 } },
708
+ { name: "esc_product_date", type: { k: "p", kind: "u", bits: 32 } },
709
+ { name: "esc_error_count", type: { k: "p", kind: "u", bits: 32 } },
710
+ { name: "esc_signal_priority", type: { k: "p", kind: "u", bits: 8 } },
711
+ { name: "esc_led_mode", type: { k: "p", kind: "u", bits: 16 } },
712
+ { name: "esc_can_rate", type: { k: "p", kind: "u", bits: 8 } },
713
+ { name: "esc_fdb_rate", type: { k: "p", kind: "u", bits: 16 } },
714
+ { name: "esc_save_option", type: { k: "p", kind: "u", bits: 8 } },
715
+ { name: "rsvd", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 32, dyn: true } },
716
+ ],
717
+ min: 328,
718
+ max: 590,
719
+ },
720
+ },
721
+ {
722
+ name: "com.volz.servo.ActuatorStatus",
723
+ id: 20020,
724
+ kind: "msg",
725
+ signature: 0x29bf0d53b4060263n,
726
+ msg: {
727
+ fields: [
728
+ { name: "actuator_id", type: { k: "p", kind: "u", bits: 8 } },
729
+ { name: "actual_position", type: { k: "p", kind: "f", bits: 16 } },
730
+ { name: "current", type: { k: "p", kind: "u", bits: 8 } },
731
+ { name: "voltage", type: { k: "p", kind: "u", bits: 8 } },
732
+ { name: "motor_pwm", type: { k: "p", kind: "u", bits: 8 } },
733
+ { name: "motor_temperature", type: { k: "p", kind: "u", bits: 8 } },
734
+ ],
735
+ min: 56,
736
+ max: 56,
737
+ },
738
+ },
739
+ {
740
+ name: "com.xacti.CopterAttStatus",
741
+ id: 20407,
742
+ kind: "msg",
743
+ signature: 0x6c1f30f1893763b1n,
744
+ msg: {
745
+ fields: [
746
+ { name: "quaternion_wxyz_e4", type: { k: "a", of: { k: "p", kind: "i", bits: 16 }, max: 4 } },
747
+ { name: "reserved", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 2, dyn: true } },
748
+ ],
749
+ min: 64,
750
+ max: 98,
751
+ },
752
+ },
753
+ {
754
+ name: "com.xacti.GimbalAttitudeStatus",
755
+ id: 20402,
756
+ kind: "msg",
757
+ signature: 0xeb428b6c25832692n,
758
+ msg: {
759
+ fields: [
760
+ { name: "gimbal_roll", type: { k: "p", kind: "i", bits: 16 } },
761
+ { name: "gimbal_pitch", type: { k: "p", kind: "i", bits: 16 } },
762
+ { name: "gimbal_yaw", type: { k: "p", kind: "i", bits: 16 } },
763
+ { name: "magneticencoder_roll", type: { k: "p", kind: "i", bits: 16 } },
764
+ { name: "magneticencoder_pitch", type: { k: "p", kind: "i", bits: 16 } },
765
+ { name: "magneticencoder_yaw", type: { k: "p", kind: "i", bits: 16 } },
766
+ ],
767
+ min: 96,
768
+ max: 96,
769
+ },
770
+ },
771
+ {
772
+ name: "com.xacti.GimbalControlData",
773
+ id: 20554,
774
+ kind: "msg",
775
+ signature: 0x3b058fa5b150c5ben,
776
+ msg: {
777
+ fields: [
778
+ { name: "pitch_cmd_type", type: { k: "p", kind: "u", bits: 8 } },
779
+ { name: "yaw_cmd_type", type: { k: "p", kind: "u", bits: 8 } },
780
+ { name: "pitch_cmd_value", type: { k: "p", kind: "u", bits: 16 } },
781
+ { name: "yaw_cmd_value", type: { k: "p", kind: "u", bits: 16 } },
782
+ ],
783
+ min: 48,
784
+ max: 48,
785
+ },
786
+ },
787
+ {
788
+ name: "com.xacti.GnssStatus",
789
+ id: 20305,
790
+ kind: "msg",
791
+ signature: 0x3413ac5d3e1dcbe3n,
792
+ msg: {
793
+ fields: [
794
+ { name: "gps_status", type: { k: "p", kind: "u", bits: 8 } },
795
+ { name: "order", type: { k: "p", kind: "u", bits: 8 } },
796
+ { name: "remain_buffer", type: { k: "p", kind: "u", bits: 8 } },
797
+ { name: "utc_year", type: { k: "p", kind: "u", bits: 16 } },
798
+ { name: "utc_month", type: { k: "p", kind: "u", bits: 8 } },
799
+ { name: "utc_day", type: { k: "p", kind: "u", bits: 8 } },
800
+ { name: "utc_hour", type: { k: "p", kind: "u", bits: 8 } },
801
+ { name: "utc_minute", type: { k: "p", kind: "u", bits: 8 } },
802
+ { name: "utc_seconds", type: { k: "p", kind: "f", bits: 32 } },
803
+ { name: "latitude", type: { k: "p", kind: "f", bits: 64 } },
804
+ { name: "longitude", type: { k: "p", kind: "f", bits: 64 } },
805
+ { name: "altitude", type: { k: "p", kind: "f", bits: 32 } },
806
+ ],
807
+ min: 264,
808
+ max: 264,
809
+ },
810
+ },
811
+ {
812
+ name: "com.xacti.GnssStatusReq",
813
+ id: 20306,
814
+ kind: "msg",
815
+ signature: 0x60f5464e1ca03449n,
816
+ msg: { fields: [{ name: "requirement", type: { k: "p", kind: "u", bits: 8 } }], min: 8, max: 8 },
817
+ },
818
+ {
819
+ name: "cuav.equipment.power.CBAT",
820
+ id: 20300,
821
+ kind: "msg",
822
+ signature: 0xb4dace3a38e09a74n,
823
+ msg: {
824
+ fields: [
825
+ { name: "temperature", type: { k: "p", kind: "f", bits: 32 } },
826
+ { name: "voltage", type: { k: "p", kind: "f", bits: 32 } },
827
+ { name: "voltage_cell", type: { k: "a", of: { k: "p", kind: "f", bits: 32 }, max: 15, dyn: true } },
828
+ { name: "cell_count", type: { k: "p", kind: "u", bits: 8 } },
829
+ { name: "current", type: { k: "p", kind: "f", bits: 32 } },
830
+ { name: "average_current", type: { k: "p", kind: "f", bits: 32 } },
831
+ { name: "average_power", type: { k: "p", kind: "f", bits: 32 } },
832
+ { name: "available_energy", type: { k: "p", kind: "f", bits: 32 } },
833
+ { name: "remaining_capacity", type: { k: "p", kind: "f", bits: 32 } },
834
+ { name: "full_charge_capacity", type: { k: "p", kind: "f", bits: 32 } },
835
+ { name: "design_capacity", type: { k: "p", kind: "f", bits: 32 } },
836
+ { name: "average_time_to_empty", type: { k: "p", kind: "u", bits: 16 } },
837
+ { name: "average_time_to_full", type: { k: "p", kind: "u", bits: 16 } },
838
+ { name: "state_of_health", type: { k: "p", kind: "u", bits: 7 } },
839
+ { name: "state_of_charge", type: { k: "p", kind: "u", bits: 7 } },
840
+ { name: "max_error", type: { k: "p", kind: "u", bits: 7 } },
841
+ { name: "serial_number", type: { k: "p", kind: "u", bits: 16 } },
842
+ { name: "manufacture_date", type: { k: "p", kind: "u", bits: 16 } },
843
+ { name: "cycle_count", type: { k: "p", kind: "u", bits: 16 } },
844
+ { name: "over_discharge_count", type: { k: "p", kind: "u", bits: 16 } },
845
+ { name: "passed_charge", type: { k: "p", kind: "f", bits: 32 } },
846
+ { name: "nominal_voltage", type: { k: "p", kind: "f", bits: 32 } },
847
+ { name: "is_powering_off", type: { k: "p", kind: "b", bits: 1 } },
848
+ { name: "interface_error", type: { k: "p", kind: "u", bits: 16 } },
849
+ { name: "status_flags", type: { k: "p", kind: "u", bits: 11 } },
850
+ ],
851
+ min: 505,
852
+ max: 989,
853
+ constants: {
854
+ STATUS_FLAG_IN_USE: 1,
855
+ STATUS_FLAG_CHARGING: 2,
856
+ STATUS_FLAG_CHARGED: 4,
857
+ STATUS_FLAG_TEMP_HOT: 8,
858
+ STATUS_FLAG_TEMP_COLD: 16,
859
+ STATUS_FLAG_OVERLOAD: 32,
860
+ STATUS_FLAG_BAD_BATTERY: 64,
861
+ STATUS_FLAG_NEED_SERVICE: 128,
862
+ STATUS_FLAG_BMS_ERROR: 256,
863
+ STATUS_FLAG_RESERVED_A: 512,
864
+ STATUS_FLAG_RESERVED_B: 1024,
865
+ },
866
+ },
867
+ },
868
+ {
869
+ name: "dronecan.protocol.CanStats",
870
+ id: 343,
871
+ kind: "msg",
872
+ signature: 0xce080cae3ca33c75n,
873
+ msg: {
874
+ fields: [
875
+ { name: "interface", type: { k: "p", kind: "u", bits: 8 } },
876
+ { name: "tx_requests", type: { k: "p", kind: "u", bits: 32 } },
877
+ { name: "tx_rejected", type: { k: "p", kind: "u", bits: 16 } },
878
+ { name: "tx_overflow", type: { k: "p", kind: "u", bits: 16 } },
879
+ { name: "tx_success", type: { k: "p", kind: "u", bits: 16 } },
880
+ { name: "tx_timedout", type: { k: "p", kind: "u", bits: 16 } },
881
+ { name: "tx_abort", type: { k: "p", kind: "u", bits: 16 } },
882
+ { name: "rx_received", type: { k: "p", kind: "u", bits: 32 } },
883
+ { name: "rx_overflow", type: { k: "p", kind: "u", bits: 16 } },
884
+ { name: "rx_errors", type: { k: "p", kind: "u", bits: 16 } },
885
+ { name: "busoff_errors", type: { k: "p", kind: "u", bits: 16 } },
886
+ ],
887
+ min: 200,
888
+ max: 200,
889
+ },
890
+ },
891
+ {
892
+ name: "dronecan.protocol.FlexDebug",
893
+ id: 16371,
894
+ kind: "msg",
895
+ signature: 0xeca60382ff038f39n,
896
+ msg: {
897
+ fields: [
898
+ { name: "id", type: { k: "p", kind: "u", bits: 16 } },
899
+ { name: "u8", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 255, dyn: true } },
900
+ ],
901
+ min: 16,
902
+ max: 2064,
903
+ constants: { RESERVATION_SIZE: 10, AM32_RESERVE_START: 100, MLRS_RESERVE_START: 110 },
904
+ },
905
+ },
906
+ {
907
+ name: "dronecan.protocol.GlobalTime",
908
+ id: 344,
909
+ kind: "msg",
910
+ signature: 0xa55177448a490f33n,
911
+ msg: { fields: [{ name: "timestamp", type: { k: "c", name: "uavcan.Timestamp" } }], min: 56, max: 56 },
912
+ },
913
+ {
914
+ name: "dronecan.protocol.Stats",
915
+ id: 342,
916
+ kind: "msg",
917
+ signature: 0x763ae3b8a986f8d1n,
918
+ msg: {
919
+ fields: [
920
+ { name: "tx_frames", type: { k: "p", kind: "u", bits: 32 } },
921
+ { name: "tx_errors", type: { k: "p", kind: "u", bits: 16 } },
922
+ { name: "rx_frames", type: { k: "p", kind: "u", bits: 32 } },
923
+ { name: "rx_error_oom", type: { k: "p", kind: "u", bits: 16 } },
924
+ { name: "rx_error_internal", type: { k: "p", kind: "u", bits: 16 } },
925
+ { name: "rx_error_missed_start", type: { k: "p", kind: "u", bits: 16 } },
926
+ { name: "rx_error_wrong_toggle", type: { k: "p", kind: "u", bits: 16 } },
927
+ { name: "rx_error_short_frame", type: { k: "p", kind: "u", bits: 16 } },
928
+ { name: "rx_error_bad_crc", type: { k: "p", kind: "u", bits: 16 } },
929
+ { name: "rx_ignored_wrong_address", type: { k: "p", kind: "u", bits: 16 } },
930
+ { name: "rx_ignored_not_wanted", type: { k: "p", kind: "u", bits: 16 } },
931
+ { name: "rx_ignored_unexpected_tid", type: { k: "p", kind: "u", bits: 16 } },
932
+ ],
933
+ min: 224,
934
+ max: 224,
935
+ },
936
+ },
937
+ {
938
+ name: "dronecan.remoteid.ArmStatus",
939
+ id: 20035,
940
+ kind: "msg",
941
+ signature: 0xfedf72ccf06f3bddn,
942
+ msg: {
943
+ fields: [
944
+ { name: "status", type: { k: "p", kind: "u", bits: 8 } },
945
+ { name: "error", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 50, dyn: true } },
946
+ ],
947
+ min: 8,
948
+ max: 414,
949
+ constants: { ODID_ARM_STATUS_GOOD_TO_ARM: 0, ODID_ARM_STATUS_FAIL_GENERIC: 1 },
950
+ },
951
+ },
952
+ {
953
+ name: "dronecan.remoteid.BasicID",
954
+ id: 20030,
955
+ kind: "msg",
956
+ signature: 0x5b1c624a8e4fc533n,
957
+ msg: {
958
+ fields: [
959
+ { name: "id_or_mac", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 20, dyn: true } },
960
+ { name: "id_type", type: { k: "p", kind: "u", bits: 8 } },
961
+ { name: "ua_type", type: { k: "p", kind: "u", bits: 8 } },
962
+ { name: "uas_id", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 20, dyn: true } },
963
+ ],
964
+ min: 16,
965
+ max: 346,
966
+ constants: {
967
+ ODID_ID_TYPE_NONE: 0,
968
+ ODID_ID_TYPE_SERIAL_NUMBER: 1,
969
+ ODID_ID_TYPE_CAA_REGISTRATION_ID: 2,
970
+ ODID_ID_TYPE_UTM_ASSIGNED_UUID: 3,
971
+ ODID_ID_TYPE_SPECIFIC_SESSION_ID: 4,
972
+ ODID_UA_TYPE_NONE: 0,
973
+ ODID_UA_TYPE_AEROPLANE: 1,
974
+ ODID_UA_TYPE_HELICOPTER_OR_MULTIROTOR: 2,
975
+ ODID_UA_TYPE_GYROPLANE: 3,
976
+ ODID_UA_TYPE_HYBRID_LIFT: 4,
977
+ ODID_UA_TYPE_ORNITHOPTER: 5,
978
+ ODID_UA_TYPE_GLIDER: 6,
979
+ ODID_UA_TYPE_KITE: 7,
980
+ ODID_UA_TYPE_FREE_BALLOON: 8,
981
+ ODID_UA_TYPE_CAPTIVE_BALLOON: 9,
982
+ ODID_UA_TYPE_AIRSHIP: 10,
983
+ ODID_UA_TYPE_FREE_FALL_PARACHUTE: 11,
984
+ ODID_UA_TYPE_ROCKET: 12,
985
+ ODID_UA_TYPE_TETHERED_POWERED_AIRCRAFT: 13,
986
+ ODID_UA_TYPE_GROUND_OBSTACLE: 14,
987
+ ODID_UA_TYPE_OTHER: 15,
988
+ },
989
+ },
990
+ },
991
+ {
992
+ name: "dronecan.remoteid.Location",
993
+ id: 20031,
994
+ kind: "msg",
995
+ signature: 0xeaa3a2c5bcb14caan,
996
+ msg: {
997
+ fields: [
998
+ { name: "id_or_mac", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 20, dyn: true } },
999
+ { name: "status", type: { k: "p", kind: "u", bits: 8 } },
1000
+ { name: "direction", type: { k: "p", kind: "u", bits: 16 } },
1001
+ { name: "speed_horizontal", type: { k: "p", kind: "u", bits: 16 } },
1002
+ { name: "speed_vertical", type: { k: "p", kind: "i", bits: 16 } },
1003
+ { name: "latitude", type: { k: "p", kind: "i", bits: 32 } },
1004
+ { name: "longitude", type: { k: "p", kind: "i", bits: 32 } },
1005
+ { name: "altitude_barometric", type: { k: "p", kind: "f", bits: 32 } },
1006
+ { name: "altitude_geodetic", type: { k: "p", kind: "f", bits: 32 } },
1007
+ { name: "height_reference", type: { k: "p", kind: "u", bits: 8 } },
1008
+ { name: "height", type: { k: "p", kind: "f", bits: 32 } },
1009
+ { name: "horizontal_accuracy", type: { k: "p", kind: "u", bits: 8 } },
1010
+ { name: "vertical_accuracy", type: { k: "p", kind: "u", bits: 8 } },
1011
+ { name: "barometer_accuracy", type: { k: "p", kind: "u", bits: 8 } },
1012
+ { name: "speed_accuracy", type: { k: "p", kind: "u", bits: 8 } },
1013
+ { name: "timestamp", type: { k: "p", kind: "f", bits: 32 } },
1014
+ { name: "timestamp_accuracy", type: { k: "p", kind: "u", bits: 8 } },
1015
+ ],
1016
+ min: 296,
1017
+ max: 461,
1018
+ constants: {
1019
+ ODID_STATUS_UNDECLARED: 0,
1020
+ ODID_STATUS_GROUND: 1,
1021
+ ODID_STATUS_AIRBORNE: 2,
1022
+ ODID_STATUS_EMERGENCY: 3,
1023
+ ODID_HEIGHT_REF_OVER_TAKEOFF: 0,
1024
+ ODID_HEIGHT_REF_OVER_GROUND: 1,
1025
+ ODID_HOR_ACC_UNKNOWN: 0,
1026
+ ODID_HOR_ACC_10NM: 1,
1027
+ ODID_HOR_ACC_4NM: 2,
1028
+ ODID_HOR_ACC_2NM: 3,
1029
+ ODID_HOR_ACC_1NM: 4,
1030
+ ODID_HOR_ACC_0_5NM: 5,
1031
+ ODID_HOR_ACC_0_3NM: 6,
1032
+ ODID_HOR_ACC_0_1NM: 7,
1033
+ ODID_HOR_ACC_0_05NM: 8,
1034
+ ODID_HOR_ACC_30_METER: 9,
1035
+ ODID_HOR_ACC_10_METER: 10,
1036
+ ODID_HOR_ACC_3_METER: 11,
1037
+ ODID_HOR_ACC_1_METER: 12,
1038
+ ODID_VER_ACC_UNKNOWN: 0,
1039
+ ODID_VER_ACC_150_METER: 1,
1040
+ ODID_VER_ACC_45_METER: 2,
1041
+ ODID_VER_ACC_25_METER: 3,
1042
+ ODID_VER_ACC_10_METER: 4,
1043
+ ODID_VER_ACC_3_METER: 5,
1044
+ ODID_VER_ACC_1_METER: 6,
1045
+ ODID_SPEED_ACC_UNKNOWN: 0,
1046
+ ODID_SPEED_ACC_10_METERS_PER_SECOND: 1,
1047
+ ODID_SPEED_ACC_3_METERS_PER_SECOND: 2,
1048
+ ODID_SPEED_ACC_1_METERS_PER_SECOND: 3,
1049
+ ODID_SPEED_ACC_0_3_METERS_PER_SECOND: 4,
1050
+ ODID_TIME_ACC_0_1_SECOND: 1,
1051
+ ODID_TIME_ACC_0_2_SECOND: 2,
1052
+ ODID_TIME_ACC_0_3_SECOND: 3,
1053
+ ODID_TIME_ACC_0_4_SECOND: 4,
1054
+ ODID_TIME_ACC_0_5_SECOND: 5,
1055
+ ODID_TIME_ACC_0_6_SECOND: 6,
1056
+ ODID_TIME_ACC_0_7_SECOND: 7,
1057
+ ODID_TIME_ACC_0_8_SECOND: 8,
1058
+ ODID_TIME_ACC_0_9_SECOND: 9,
1059
+ ODID_TIME_ACC_1_0_SECOND: 10,
1060
+ ODID_TIME_ACC_1_1_SECOND: 11,
1061
+ ODID_TIME_ACC_1_2_SECOND: 12,
1062
+ ODID_TIME_ACC_1_3_SECOND: 13,
1063
+ ODID_TIME_ACC_1_4_SECOND: 14,
1064
+ ODID_TIME_ACC_1_5_SECOND: 15,
1065
+ },
1066
+ },
1067
+ },
1068
+ {
1069
+ name: "dronecan.remoteid.OperatorID",
1070
+ id: 20034,
1071
+ kind: "msg",
1072
+ signature: 0x581e7fc7f03af935n,
1073
+ msg: {
1074
+ fields: [
1075
+ { name: "id_or_mac", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 20, dyn: true } },
1076
+ { name: "operator_id_type", type: { k: "p", kind: "u", bits: 8 } },
1077
+ { name: "operator_id", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 20, dyn: true } },
1078
+ ],
1079
+ min: 8,
1080
+ max: 338,
1081
+ constants: { ODID_OPERATOR_ID_TYPE_CAA: 0 },
1082
+ },
1083
+ },
1084
+ {
1085
+ name: "dronecan.remoteid.SecureCommand",
1086
+ id: 64,
1087
+ kind: "srv",
1088
+ signature: 0x126a47c9c17a8bd7n,
1089
+ req: {
1090
+ fields: [
1091
+ { name: "sequence", type: { k: "p", kind: "u", bits: 32 } },
1092
+ { name: "operation", type: { k: "p", kind: "u", bits: 32 } },
1093
+ { name: "sig_length", type: { k: "p", kind: "u", bits: 8 } },
1094
+ { name: "data", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 220, dyn: true } },
1095
+ ],
1096
+ min: 72,
1097
+ max: 1840,
1098
+ constants: {
1099
+ SECURE_COMMAND_GET_SESSION_KEY: 0,
1100
+ SECURE_COMMAND_GET_REMOTEID_SESSION_KEY: 1,
1101
+ SECURE_COMMAND_REMOVE_PUBLIC_KEYS: 2,
1102
+ SECURE_COMMAND_GET_PUBLIC_KEYS: 3,
1103
+ SECURE_COMMAND_SET_PUBLIC_KEYS: 4,
1104
+ SECURE_COMMAND_GET_REMOTEID_CONFIG: 5,
1105
+ SECURE_COMMAND_SET_REMOTEID_CONFIG: 6,
1106
+ },
1107
+ },
1108
+ res: {
1109
+ fields: [
1110
+ { name: "sequence", type: { k: "p", kind: "u", bits: 32 } },
1111
+ { name: "operation", type: { k: "p", kind: "u", bits: 32 } },
1112
+ { name: "result", type: { k: "p", kind: "u", bits: 8 } },
1113
+ { name: "data", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 220, dyn: true } },
1114
+ ],
1115
+ min: 72,
1116
+ max: 1840,
1117
+ constants: { RESULT_ACCEPTED: 0, RESULT_TEMPORARILY_REJECTED: 1, RESULT_DENIED: 2, RESULT_UNSUPPORTED: 3, RESULT_FAILED: 4 },
1118
+ },
1119
+ },
1120
+ {
1121
+ name: "dronecan.remoteid.SelfID",
1122
+ id: 20032,
1123
+ kind: "msg",
1124
+ signature: 0x59be81dc4c06a185n,
1125
+ msg: {
1126
+ fields: [
1127
+ { name: "id_or_mac", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 20, dyn: true } },
1128
+ { name: "description_type", type: { k: "p", kind: "u", bits: 8 } },
1129
+ { name: "description", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 23, dyn: true } },
1130
+ ],
1131
+ min: 8,
1132
+ max: 362,
1133
+ constants: { ODID_DESC_TYPE_TEXT: 0 },
1134
+ },
1135
+ },
1136
+ {
1137
+ name: "dronecan.remoteid.System",
1138
+ id: 20033,
1139
+ kind: "msg",
1140
+ signature: 0x9ac872f49bf32437n,
1141
+ msg: {
1142
+ fields: [
1143
+ { name: "id_or_mac", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 20, dyn: true } },
1144
+ { name: "operator_location_type", type: { k: "p", kind: "u", bits: 8 } },
1145
+ { name: "classification_type", type: { k: "p", kind: "u", bits: 8 } },
1146
+ { name: "operator_latitude", type: { k: "p", kind: "i", bits: 32 } },
1147
+ { name: "operator_longitude", type: { k: "p", kind: "i", bits: 32 } },
1148
+ { name: "area_count", type: { k: "p", kind: "u", bits: 16 } },
1149
+ { name: "area_radius", type: { k: "p", kind: "u", bits: 16 } },
1150
+ { name: "area_ceiling", type: { k: "p", kind: "f", bits: 32 } },
1151
+ { name: "area_floor", type: { k: "p", kind: "f", bits: 32 } },
1152
+ { name: "category_eu", type: { k: "p", kind: "u", bits: 8 } },
1153
+ { name: "class_eu", type: { k: "p", kind: "u", bits: 8 } },
1154
+ { name: "operator_altitude_geo", type: { k: "p", kind: "f", bits: 32 } },
1155
+ { name: "timestamp", type: { k: "p", kind: "u", bits: 32 } },
1156
+ ],
1157
+ min: 256,
1158
+ max: 421,
1159
+ constants: {
1160
+ ODID_OPERATOR_LOCATION_TYPE_TAKEOFF: 0,
1161
+ ODID_OPERATOR_LOCATION_TYPE_LIVE_GNSS: 1,
1162
+ ODID_OPERATOR_LOCATION_TYPE_FIXED: 2,
1163
+ ODID_CLASSIFICATION_TYPE_EU: 0,
1164
+ ODID_CATEGORY_EU_UNDECLARED: 0,
1165
+ ODID_CATEGORY_EU_OPEN: 1,
1166
+ ODID_CATEGORY_EU_SPECIFIC: 2,
1167
+ ODID_CATEGORY_EU_CERTIFIED: 3,
1168
+ ODID_CLASS_EU_UNDECLARED: 0,
1169
+ ODID_CLASS_EU_CLASS_0: 1,
1170
+ ODID_CLASS_EU_CLASS_1: 2,
1171
+ ODID_CLASS_EU_CLASS_2: 3,
1172
+ ODID_CLASS_EU_CLASS_3: 4,
1173
+ ODID_CLASS_EU_CLASS_4: 5,
1174
+ ODID_CLASS_EU_CLASS_5: 6,
1175
+ ODID_CLASS_EU_CLASS_6: 7,
1176
+ },
1177
+ },
1178
+ },
1179
+ {
1180
+ name: "dronecan.sensors.hygrometer.Hygrometer",
1181
+ id: 1032,
1182
+ kind: "msg",
1183
+ signature: 0xceb308892bf163e8n,
1184
+ msg: {
1185
+ fields: [
1186
+ { name: "temperature", type: { k: "p", kind: "f", bits: 16 } },
1187
+ { name: "humidity", type: { k: "p", kind: "f", bits: 16 } },
1188
+ { name: "id", type: { k: "p", kind: "u", bits: 8 } },
1189
+ ],
1190
+ min: 40,
1191
+ max: 40,
1192
+ },
1193
+ },
1194
+ {
1195
+ name: "dronecan.sensors.magnetometer.MagneticFieldStrengthHiRes",
1196
+ id: 1043,
1197
+ kind: "msg",
1198
+ signature: 0x3053ebe3d750286fn,
1199
+ msg: {
1200
+ fields: [
1201
+ { name: "sensor_id", type: { k: "p", kind: "u", bits: 8 } },
1202
+ { name: "magnetic_field_ga", type: { k: "a", of: { k: "p", kind: "f", bits: 32 }, max: 3 } },
1203
+ ],
1204
+ min: 104,
1205
+ max: 104,
1206
+ },
1207
+ },
1208
+ {
1209
+ name: "dronecan.sensors.rc.RCInput",
1210
+ id: 1140,
1211
+ kind: "msg",
1212
+ signature: 0x771555e596aab4cfn,
1213
+ msg: {
1214
+ fields: [
1215
+ { name: "status", type: { k: "p", kind: "u", bits: 16 } },
1216
+ { name: "quality", type: { k: "p", kind: "u", bits: 8 } },
1217
+ { name: "id", type: { k: "p", kind: "u", bits: 4 } },
1218
+ { name: "rcin", type: { k: "a", of: { k: "p", kind: "u", bits: 12 }, max: 32, dyn: true } },
1219
+ ],
1220
+ min: 28,
1221
+ max: 418,
1222
+ constants: {
1223
+ STATUS_QUALITY_VALID: 1,
1224
+ STATUS_FAILSAFE: 2,
1225
+ STATUS_QUALITY_TYPE: 28,
1226
+ QUALITY_TYPE_RSSI: 0,
1227
+ QUALITY_TYPE_LQ_ACTIVE_ANTENNA: 4,
1228
+ QUALITY_TYPE_RSSI_DBM: 8,
1229
+ QUALITY_TYPE_SNR: 12,
1230
+ QUALITY_TYPE_TX_POWER: 16,
1231
+ },
1232
+ },
1233
+ },
1234
+ {
1235
+ name: "dronecan.sensors.rpm.RPM",
1236
+ id: 1045,
1237
+ kind: "msg",
1238
+ signature: 0x140707c09274f6e7n,
1239
+ msg: {
1240
+ fields: [
1241
+ { name: "sensor_id", type: { k: "p", kind: "u", bits: 8 } },
1242
+ { name: "flags", type: { k: "p", kind: "u", bits: 16 } },
1243
+ { name: "rpm", type: { k: "p", kind: "f", bits: 32 } },
1244
+ ],
1245
+ min: 56,
1246
+ max: 56,
1247
+ constants: { FLAGS_UNHEALTHY: 1 },
1248
+ },
1249
+ },
1250
+ {
1251
+ name: "mppt.OutputEnable",
1252
+ id: 240,
1253
+ kind: "srv",
1254
+ signature: 0xea251f2a6dd1d8a5n,
1255
+ req: {
1256
+ fields: [
1257
+ { name: null, type: { k: "v", bits: 6 } },
1258
+ { name: "enable", type: { k: "p", kind: "b", bits: 1 } },
1259
+ { name: "disable", type: { k: "p", kind: "b", bits: 1 } },
1260
+ ],
1261
+ min: 8,
1262
+ max: 8,
1263
+ },
1264
+ res: {
1265
+ fields: [
1266
+ { name: null, type: { k: "v", bits: 7 } },
1267
+ { name: "enabled", type: { k: "p", kind: "b", bits: 1 } },
1268
+ ],
1269
+ min: 8,
1270
+ max: 8,
1271
+ },
1272
+ },
1273
+ {
1274
+ name: "mppt.Stream",
1275
+ id: 20009,
1276
+ kind: "msg",
1277
+ signature: 0xdd7096b255fb6358n,
1278
+ msg: {
1279
+ fields: [
1280
+ { name: "fault_flags", type: { k: "p", kind: "u", bits: 8 } },
1281
+ { name: "temperature", type: { k: "p", kind: "i", bits: 8 } },
1282
+ { name: "input_voltage", type: { k: "p", kind: "f", bits: 16 } },
1283
+ { name: "input_current", type: { k: "p", kind: "f", bits: 16 } },
1284
+ { name: "input_power", type: { k: "p", kind: "f", bits: 16 } },
1285
+ { name: "output_voltage", type: { k: "p", kind: "f", bits: 16 } },
1286
+ { name: "output_current", type: { k: "p", kind: "f", bits: 16 } },
1287
+ { name: "output_power", type: { k: "p", kind: "f", bits: 16 } },
1288
+ ],
1289
+ min: 112,
1290
+ max: 112,
1291
+ constants: { OV_FAULT: 1, UV_FAULT: 2, OC_FAULT: 4, OT_FAULT: 8 },
1292
+ },
1293
+ },
1294
+ {
1295
+ name: "uavcan.CoarseOrientation",
1296
+ id: null,
1297
+ kind: "msg",
1298
+ signature: 0x271ba10b0dac9e52n,
1299
+ msg: {
1300
+ fields: [
1301
+ { name: "fixed_axis_roll_pitch_yaw", type: { k: "a", of: { k: "p", kind: "i", bits: 5 }, max: 3 } },
1302
+ { name: "orientation_defined", type: { k: "p", kind: "b", bits: 1 } },
1303
+ ],
1304
+ min: 16,
1305
+ max: 16,
1306
+ constants: { ANGLE_MULTIPLIER: 4.7746482927568605 },
1307
+ },
1308
+ },
1309
+ {
1310
+ name: "uavcan.equipment.actuator.Command",
1311
+ id: null,
1312
+ kind: "msg",
1313
+ signature: 0x8d9a6a920c1d616cn,
1314
+ msg: {
1315
+ fields: [
1316
+ { name: "actuator_id", type: { k: "p", kind: "u", bits: 8 } },
1317
+ { name: "command_type", type: { k: "p", kind: "u", bits: 8 } },
1318
+ { name: "command_value", type: { k: "p", kind: "f", bits: 16 } },
1319
+ ],
1320
+ min: 32,
1321
+ max: 32,
1322
+ constants: { COMMAND_TYPE_UNITLESS: 0, COMMAND_TYPE_POSITION: 1, COMMAND_TYPE_FORCE: 2, COMMAND_TYPE_SPEED: 3, COMMAND_TYPE_PWM: 4 },
1323
+ },
1324
+ },
1325
+ {
1326
+ name: "uavcan.equipment.actuator.ArrayCommand",
1327
+ id: 1010,
1328
+ kind: "msg",
1329
+ signature: 0xd8a7486238ec3af3n,
1330
+ msg: { fields: [{ name: "commands", type: { k: "a", of: { k: "c", name: "uavcan.equipment.actuator.Command" }, max: 15, dyn: true } }], min: 0, max: 484 },
1331
+ },
1332
+ {
1333
+ name: "uavcan.equipment.actuator.Status",
1334
+ id: 1011,
1335
+ kind: "msg",
1336
+ signature: 0x5e9bba44faf1ea04n,
1337
+ msg: {
1338
+ fields: [
1339
+ { name: "actuator_id", type: { k: "p", kind: "u", bits: 8 } },
1340
+ { name: "position", type: { k: "p", kind: "f", bits: 16 } },
1341
+ { name: "force", type: { k: "p", kind: "f", bits: 16 } },
1342
+ { name: "speed", type: { k: "p", kind: "f", bits: 16 } },
1343
+ { name: null, type: { k: "v", bits: 1 } },
1344
+ { name: "power_rating_pct", type: { k: "p", kind: "u", bits: 7 } },
1345
+ ],
1346
+ min: 64,
1347
+ max: 64,
1348
+ constants: { POWER_RATING_PCT_UNKNOWN: 127 },
1349
+ },
1350
+ },
1351
+ {
1352
+ name: "uavcan.equipment.ahrs.MagneticFieldStrength",
1353
+ id: 1001,
1354
+ kind: "msg",
1355
+ signature: 0xe2a7d4a9460bc2f2n,
1356
+ msg: {
1357
+ fields: [
1358
+ { name: "magnetic_field_ga", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 3 } },
1359
+ { name: "magnetic_field_covariance", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 9, dyn: true } },
1360
+ ],
1361
+ min: 48,
1362
+ max: 196,
1363
+ },
1364
+ },
1365
+ {
1366
+ name: "uavcan.equipment.ahrs.MagneticFieldStrength2",
1367
+ id: 1002,
1368
+ kind: "msg",
1369
+ signature: 0xb6ac0c442430297en,
1370
+ msg: {
1371
+ fields: [
1372
+ { name: "sensor_id", type: { k: "p", kind: "u", bits: 8 } },
1373
+ { name: "magnetic_field_ga", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 3 } },
1374
+ { name: "magnetic_field_covariance", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 9, dyn: true } },
1375
+ ],
1376
+ min: 56,
1377
+ max: 204,
1378
+ },
1379
+ },
1380
+ {
1381
+ name: "uavcan.equipment.ahrs.RawIMU",
1382
+ id: 1003,
1383
+ kind: "msg",
1384
+ signature: 0x8280632c40e574b5n,
1385
+ msg: {
1386
+ fields: [
1387
+ { name: "timestamp", type: { k: "c", name: "uavcan.Timestamp" } },
1388
+ { name: "integration_interval", type: { k: "p", kind: "f", bits: 32 } },
1389
+ { name: "rate_gyro_latest", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 3 } },
1390
+ { name: "rate_gyro_integral", type: { k: "a", of: { k: "p", kind: "f", bits: 32 }, max: 3 } },
1391
+ { name: "accelerometer_latest", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 3 } },
1392
+ { name: "accelerometer_integral", type: { k: "a", of: { k: "p", kind: "f", bits: 32 }, max: 3 } },
1393
+ { name: "covariance", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 36, dyn: true } },
1394
+ ],
1395
+ min: 376,
1396
+ max: 958,
1397
+ },
1398
+ },
1399
+ {
1400
+ name: "uavcan.equipment.ahrs.Solution",
1401
+ id: 1000,
1402
+ kind: "msg",
1403
+ signature: 0x72a63a3c6f41fa9bn,
1404
+ msg: {
1405
+ fields: [
1406
+ { name: "timestamp", type: { k: "c", name: "uavcan.Timestamp" } },
1407
+ { name: "orientation_xyzw", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 4 } },
1408
+ { name: null, type: { k: "v", bits: 4 } },
1409
+ { name: "orientation_covariance", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 9, dyn: true } },
1410
+ { name: "angular_velocity", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 3 } },
1411
+ { name: null, type: { k: "v", bits: 4 } },
1412
+ { name: "angular_velocity_covariance", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 9, dyn: true } },
1413
+ { name: "linear_acceleration", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 3 } },
1414
+ { name: "linear_acceleration_covariance", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 9, dyn: true } },
1415
+ ],
1416
+ min: 224,
1417
+ max: 668,
1418
+ },
1419
+ },
1420
+ {
1421
+ name: "uavcan.equipment.air_data.AngleOfAttack",
1422
+ id: 1025,
1423
+ kind: "msg",
1424
+ signature: 0xd5513c3f7afac74en,
1425
+ msg: {
1426
+ fields: [
1427
+ { name: "sensor_id", type: { k: "p", kind: "u", bits: 8 } },
1428
+ { name: "aoa", type: { k: "p", kind: "f", bits: 16 } },
1429
+ { name: "aoa_variance", type: { k: "p", kind: "f", bits: 16 } },
1430
+ ],
1431
+ min: 40,
1432
+ max: 40,
1433
+ constants: { SENSOR_ID_LEFT: 254, SENSOR_ID_RIGHT: 255 },
1434
+ },
1435
+ },
1436
+ {
1437
+ name: "uavcan.equipment.air_data.IndicatedAirspeed",
1438
+ id: 1021,
1439
+ kind: "msg",
1440
+ signature: 0x0a1892d72ab8945fn,
1441
+ msg: {
1442
+ fields: [
1443
+ { name: "indicated_airspeed", type: { k: "p", kind: "f", bits: 16 } },
1444
+ { name: "indicated_airspeed_variance", type: { k: "p", kind: "f", bits: 16 } },
1445
+ ],
1446
+ min: 32,
1447
+ max: 32,
1448
+ },
1449
+ },
1450
+ {
1451
+ name: "uavcan.equipment.air_data.RawAirData",
1452
+ id: 1027,
1453
+ kind: "msg",
1454
+ signature: 0xc77df38ba122f5dan,
1455
+ msg: {
1456
+ fields: [
1457
+ { name: "flags", type: { k: "p", kind: "u", bits: 8 } },
1458
+ { name: "static_pressure", type: { k: "p", kind: "f", bits: 32 } },
1459
+ { name: "differential_pressure", type: { k: "p", kind: "f", bits: 32 } },
1460
+ { name: "static_pressure_sensor_temperature", type: { k: "p", kind: "f", bits: 16 } },
1461
+ { name: "differential_pressure_sensor_temperature", type: { k: "p", kind: "f", bits: 16 } },
1462
+ { name: "static_air_temperature", type: { k: "p", kind: "f", bits: 16 } },
1463
+ { name: "pitot_temperature", type: { k: "p", kind: "f", bits: 16 } },
1464
+ { name: "covariance", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 16, dyn: true } },
1465
+ ],
1466
+ min: 136,
1467
+ max: 397,
1468
+ constants: { FLAG_HEATER_AVAILABLE: 1, FLAG_HEATER_WORKING: 2, FLAG_HEATER_OVERCURRENT: 4, FLAG_HEATER_OPENCIRCUIT: 8 },
1469
+ },
1470
+ },
1471
+ {
1472
+ name: "uavcan.equipment.air_data.Sideslip",
1473
+ id: 1026,
1474
+ kind: "msg",
1475
+ signature: 0x7b48e55fcff42a57n,
1476
+ msg: {
1477
+ fields: [
1478
+ { name: "sideslip_angle", type: { k: "p", kind: "f", bits: 16 } },
1479
+ { name: "sideslip_angle_variance", type: { k: "p", kind: "f", bits: 16 } },
1480
+ ],
1481
+ min: 32,
1482
+ max: 32,
1483
+ },
1484
+ },
1485
+ {
1486
+ name: "uavcan.equipment.air_data.StaticPressure",
1487
+ id: 1028,
1488
+ kind: "msg",
1489
+ signature: 0xcdc7c43412bdc89an,
1490
+ msg: {
1491
+ fields: [
1492
+ { name: "static_pressure", type: { k: "p", kind: "f", bits: 32 } },
1493
+ { name: "static_pressure_variance", type: { k: "p", kind: "f", bits: 16 } },
1494
+ ],
1495
+ min: 48,
1496
+ max: 48,
1497
+ },
1498
+ },
1499
+ {
1500
+ name: "uavcan.equipment.air_data.StaticTemperature",
1501
+ id: 1029,
1502
+ kind: "msg",
1503
+ signature: 0x49272a6477d96271n,
1504
+ msg: {
1505
+ fields: [
1506
+ { name: "static_temperature", type: { k: "p", kind: "f", bits: 16 } },
1507
+ { name: "static_temperature_variance", type: { k: "p", kind: "f", bits: 16 } },
1508
+ ],
1509
+ min: 32,
1510
+ max: 32,
1511
+ },
1512
+ },
1513
+ {
1514
+ name: "uavcan.equipment.air_data.TrueAirspeed",
1515
+ id: 1020,
1516
+ kind: "msg",
1517
+ signature: 0x306f69e0a591afaan,
1518
+ msg: {
1519
+ fields: [
1520
+ { name: "true_airspeed", type: { k: "p", kind: "f", bits: 16 } },
1521
+ { name: "true_airspeed_variance", type: { k: "p", kind: "f", bits: 16 } },
1522
+ ],
1523
+ min: 32,
1524
+ max: 32,
1525
+ },
1526
+ },
1527
+ {
1528
+ name: "uavcan.equipment.camera_gimbal.Mode",
1529
+ id: null,
1530
+ kind: "msg",
1531
+ signature: 0x9108c7785aeb69c4n,
1532
+ msg: {
1533
+ fields: [{ name: "command_mode", type: { k: "p", kind: "u", bits: 8 } }],
1534
+ min: 8,
1535
+ max: 8,
1536
+ constants: { COMMAND_MODE_ANGULAR_VELOCITY: 0, COMMAND_MODE_ORIENTATION_FIXED_FRAME: 1, COMMAND_MODE_ORIENTATION_BODY_FRAME: 2, COMMAND_MODE_GEO_POI: 3 },
1537
+ },
1538
+ },
1539
+ {
1540
+ name: "uavcan.equipment.camera_gimbal.AngularCommand",
1541
+ id: 1040,
1542
+ kind: "msg",
1543
+ signature: 0x4af6e57b2b2be29cn,
1544
+ msg: {
1545
+ fields: [
1546
+ { name: "gimbal_id", type: { k: "p", kind: "u", bits: 8 } },
1547
+ { name: "mode", type: { k: "c", name: "uavcan.equipment.camera_gimbal.Mode" } },
1548
+ { name: "quaternion_xyzw", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 4 } },
1549
+ ],
1550
+ min: 80,
1551
+ max: 80,
1552
+ },
1553
+ },
1554
+ {
1555
+ name: "uavcan.equipment.camera_gimbal.GEOPOICommand",
1556
+ id: 1041,
1557
+ kind: "msg",
1558
+ signature: 0x9371428a92f01fd6n,
1559
+ msg: {
1560
+ fields: [
1561
+ { name: "gimbal_id", type: { k: "p", kind: "u", bits: 8 } },
1562
+ { name: "mode", type: { k: "c", name: "uavcan.equipment.camera_gimbal.Mode" } },
1563
+ { name: "longitude_deg_1e7", type: { k: "p", kind: "i", bits: 32 } },
1564
+ { name: "latitude_deg_1e7", type: { k: "p", kind: "i", bits: 32 } },
1565
+ { name: "height_cm", type: { k: "p", kind: "i", bits: 22 } },
1566
+ { name: "height_reference", type: { k: "p", kind: "u", bits: 2 } },
1567
+ ],
1568
+ min: 104,
1569
+ max: 104,
1570
+ constants: { HEIGHT_REFERENCE_ELLIPSOID: 0, HEIGHT_REFERENCE_MEAN_SEA_LEVEL: 1 },
1571
+ },
1572
+ },
1573
+ {
1574
+ name: "uavcan.equipment.camera_gimbal.Status",
1575
+ id: 1044,
1576
+ kind: "msg",
1577
+ signature: 0xb9f127865be0d61en,
1578
+ msg: {
1579
+ fields: [
1580
+ { name: "gimbal_id", type: { k: "p", kind: "u", bits: 8 } },
1581
+ { name: "mode", type: { k: "c", name: "uavcan.equipment.camera_gimbal.Mode" } },
1582
+ { name: "camera_orientation_in_body_frame_xyzw", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 4 } },
1583
+ { name: "camera_orientation_in_body_frame_covariance", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 9, dyn: true } },
1584
+ ],
1585
+ min: 80,
1586
+ max: 228,
1587
+ },
1588
+ },
1589
+ {
1590
+ name: "uavcan.equipment.device.Temperature",
1591
+ id: 1110,
1592
+ kind: "msg",
1593
+ signature: 0x70261c28a94144c6n,
1594
+ msg: {
1595
+ fields: [
1596
+ { name: "device_id", type: { k: "p", kind: "u", bits: 16 } },
1597
+ { name: "temperature", type: { k: "p", kind: "f", bits: 16 } },
1598
+ { name: "error_flags", type: { k: "p", kind: "u", bits: 8 } },
1599
+ ],
1600
+ min: 40,
1601
+ max: 40,
1602
+ constants: { ERROR_FLAG_OVERHEATING: 1, ERROR_FLAG_OVERCOOLING: 2 },
1603
+ },
1604
+ },
1605
+ {
1606
+ name: "uavcan.equipment.esc.RPMCommand",
1607
+ id: 1031,
1608
+ kind: "msg",
1609
+ signature: 0xce0f9f621cf7e70bn,
1610
+ msg: { fields: [{ name: "rpm", type: { k: "a", of: { k: "p", kind: "i", bits: 18 }, max: 20, dyn: true } }], min: 0, max: 365 },
1611
+ },
1612
+ {
1613
+ name: "uavcan.equipment.esc.RawCommand",
1614
+ id: 1030,
1615
+ kind: "msg",
1616
+ signature: 0x217f5c87d7ec951dn,
1617
+ msg: { fields: [{ name: "cmd", type: { k: "a", of: { k: "p", kind: "i", bits: 14 }, max: 20, dyn: true } }], min: 0, max: 285 },
1618
+ },
1619
+ {
1620
+ name: "uavcan.equipment.esc.Status",
1621
+ id: 1034,
1622
+ kind: "msg",
1623
+ signature: 0xa9af28aea2fbb254n,
1624
+ msg: {
1625
+ fields: [
1626
+ { name: "error_count", type: { k: "p", kind: "u", bits: 32 } },
1627
+ { name: "voltage", type: { k: "p", kind: "f", bits: 16 } },
1628
+ { name: "current", type: { k: "p", kind: "f", bits: 16 } },
1629
+ { name: "temperature", type: { k: "p", kind: "f", bits: 16 } },
1630
+ { name: "rpm", type: { k: "p", kind: "i", bits: 18 } },
1631
+ { name: "power_rating_pct", type: { k: "p", kind: "u", bits: 7 } },
1632
+ { name: "esc_index", type: { k: "p", kind: "u", bits: 5 } },
1633
+ ],
1634
+ min: 110,
1635
+ max: 110,
1636
+ },
1637
+ },
1638
+ {
1639
+ name: "uavcan.equipment.esc.StatusExtended",
1640
+ id: 1036,
1641
+ kind: "msg",
1642
+ signature: 0x02dc203c50960edcn,
1643
+ msg: {
1644
+ fields: [
1645
+ { name: "input_pct", type: { k: "p", kind: "u", bits: 7 } },
1646
+ { name: "output_pct", type: { k: "p", kind: "u", bits: 7 } },
1647
+ { name: "motor_temperature_degC", type: { k: "p", kind: "i", bits: 9 } },
1648
+ { name: "motor_angle", type: { k: "p", kind: "u", bits: 9 } },
1649
+ { name: "status_flags", type: { k: "p", kind: "u", bits: 19 } },
1650
+ { name: "esc_index", type: { k: "p", kind: "u", bits: 5 } },
1651
+ ],
1652
+ min: 56,
1653
+ max: 56,
1654
+ },
1655
+ },
1656
+ {
1657
+ name: "uavcan.equipment.gnss.Auxiliary",
1658
+ id: 1061,
1659
+ kind: "msg",
1660
+ signature: 0x9be8bdc4c3dbbfd2n,
1661
+ msg: {
1662
+ fields: [
1663
+ { name: "gdop", type: { k: "p", kind: "f", bits: 16 } },
1664
+ { name: "pdop", type: { k: "p", kind: "f", bits: 16 } },
1665
+ { name: "hdop", type: { k: "p", kind: "f", bits: 16 } },
1666
+ { name: "vdop", type: { k: "p", kind: "f", bits: 16 } },
1667
+ { name: "tdop", type: { k: "p", kind: "f", bits: 16 } },
1668
+ { name: "ndop", type: { k: "p", kind: "f", bits: 16 } },
1669
+ { name: "edop", type: { k: "p", kind: "f", bits: 16 } },
1670
+ { name: "sats_visible", type: { k: "p", kind: "u", bits: 7 } },
1671
+ { name: "sats_used", type: { k: "p", kind: "u", bits: 6 } },
1672
+ ],
1673
+ min: 125,
1674
+ max: 125,
1675
+ },
1676
+ },
1677
+ {
1678
+ name: "uavcan.equipment.gnss.ECEFPositionVelocity",
1679
+ id: null,
1680
+ kind: "msg",
1681
+ signature: 0x24a5da4abee3a248n,
1682
+ msg: {
1683
+ fields: [
1684
+ { name: "velocity_xyz", type: { k: "a", of: { k: "p", kind: "f", bits: 32 }, max: 3 } },
1685
+ { name: "position_xyz_mm", type: { k: "a", of: { k: "p", kind: "i", bits: 36 }, max: 3 } },
1686
+ { name: null, type: { k: "v", bits: 6 } },
1687
+ { name: "covariance", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 36, dyn: true } },
1688
+ ],
1689
+ min: 210,
1690
+ max: 792,
1691
+ },
1692
+ },
1693
+ {
1694
+ name: "uavcan.equipment.gnss.Fix",
1695
+ id: 1060,
1696
+ kind: "msg",
1697
+ signature: 0x54c1572b9e07f297n,
1698
+ msg: {
1699
+ fields: [
1700
+ { name: "timestamp", type: { k: "c", name: "uavcan.Timestamp" } },
1701
+ { name: "gnss_timestamp", type: { k: "c", name: "uavcan.Timestamp" } },
1702
+ { name: "gnss_time_standard", type: { k: "p", kind: "u", bits: 3 } },
1703
+ { name: null, type: { k: "v", bits: 5 } },
1704
+ { name: "num_leap_seconds", type: { k: "p", kind: "u", bits: 8 } },
1705
+ { name: "longitude_deg_1e8", type: { k: "p", kind: "i", bits: 37 } },
1706
+ { name: "latitude_deg_1e8", type: { k: "p", kind: "i", bits: 37 } },
1707
+ { name: "height_ellipsoid_mm", type: { k: "p", kind: "i", bits: 27 } },
1708
+ { name: "height_msl_mm", type: { k: "p", kind: "i", bits: 27 } },
1709
+ { name: "ned_velocity", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 3 } },
1710
+ { name: "sats_used", type: { k: "p", kind: "u", bits: 6 } },
1711
+ { name: "status", type: { k: "p", kind: "u", bits: 2 } },
1712
+ { name: "pdop", type: { k: "p", kind: "f", bits: 16 } },
1713
+ { name: null, type: { k: "v", bits: 4 } },
1714
+ { name: "position_covariance", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 9, dyn: true } },
1715
+ { name: "velocity_covariance", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 9, dyn: true } },
1716
+ ],
1717
+ min: 332,
1718
+ max: 628,
1719
+ constants: {
1720
+ GNSS_TIME_STANDARD_NONE: 0,
1721
+ GNSS_TIME_STANDARD_TAI: 1,
1722
+ GNSS_TIME_STANDARD_UTC: 2,
1723
+ GNSS_TIME_STANDARD_GPS: 3,
1724
+ NUM_LEAP_SECONDS_UNKNOWN: 0,
1725
+ STATUS_NO_FIX: 0,
1726
+ STATUS_TIME_ONLY: 1,
1727
+ STATUS_2D_FIX: 2,
1728
+ STATUS_3D_FIX: 3,
1729
+ },
1730
+ },
1731
+ },
1732
+ {
1733
+ name: "uavcan.equipment.gnss.Fix2",
1734
+ id: 1063,
1735
+ kind: "msg",
1736
+ signature: 0xca41e7000f37435fn,
1737
+ msg: {
1738
+ fields: [
1739
+ { name: "timestamp", type: { k: "c", name: "uavcan.Timestamp" } },
1740
+ { name: "gnss_timestamp", type: { k: "c", name: "uavcan.Timestamp" } },
1741
+ { name: "gnss_time_standard", type: { k: "p", kind: "u", bits: 3 } },
1742
+ { name: null, type: { k: "v", bits: 13 } },
1743
+ { name: "num_leap_seconds", type: { k: "p", kind: "u", bits: 8 } },
1744
+ { name: "longitude_deg_1e8", type: { k: "p", kind: "i", bits: 37 } },
1745
+ { name: "latitude_deg_1e8", type: { k: "p", kind: "i", bits: 37 } },
1746
+ { name: "height_ellipsoid_mm", type: { k: "p", kind: "i", bits: 27 } },
1747
+ { name: "height_msl_mm", type: { k: "p", kind: "i", bits: 27 } },
1748
+ { name: "ned_velocity", type: { k: "a", of: { k: "p", kind: "f", bits: 32 }, max: 3 } },
1749
+ { name: "sats_used", type: { k: "p", kind: "u", bits: 6 } },
1750
+ { name: "status", type: { k: "p", kind: "u", bits: 2 } },
1751
+ { name: "mode", type: { k: "p", kind: "u", bits: 4 } },
1752
+ { name: "sub_mode", type: { k: "p", kind: "u", bits: 6 } },
1753
+ { name: "covariance", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 36, dyn: true } },
1754
+ { name: "pdop", type: { k: "p", kind: "f", bits: 16 } },
1755
+ { name: "ecef_position_velocity", type: { k: "a", of: { k: "c", name: "uavcan.equipment.gnss.ECEFPositionVelocity" }, max: 1, dyn: true } },
1756
+ ],
1757
+ min: 394,
1758
+ max: 1769,
1759
+ constants: {
1760
+ GNSS_TIME_STANDARD_NONE: 0,
1761
+ GNSS_TIME_STANDARD_TAI: 1,
1762
+ GNSS_TIME_STANDARD_UTC: 2,
1763
+ GNSS_TIME_STANDARD_GPS: 3,
1764
+ NUM_LEAP_SECONDS_UNKNOWN: 0,
1765
+ STATUS_NO_FIX: 0,
1766
+ STATUS_TIME_ONLY: 1,
1767
+ STATUS_2D_FIX: 2,
1768
+ STATUS_3D_FIX: 3,
1769
+ MODE_SINGLE: 0,
1770
+ MODE_DGPS: 1,
1771
+ MODE_RTK: 2,
1772
+ MODE_PPP: 3,
1773
+ SUB_MODE_DGPS_OTHER: 0,
1774
+ SUB_MODE_DGPS_SBAS: 1,
1775
+ SUB_MODE_RTK_FLOAT: 0,
1776
+ SUB_MODE_RTK_FIXED: 1,
1777
+ },
1778
+ },
1779
+ },
1780
+ {
1781
+ name: "uavcan.equipment.gnss.RTCMStream",
1782
+ id: 1062,
1783
+ kind: "msg",
1784
+ signature: 0x1f56030ecb171501n,
1785
+ msg: {
1786
+ fields: [
1787
+ { name: "protocol_id", type: { k: "p", kind: "u", bits: 8 } },
1788
+ { name: "data", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 128, dyn: true } },
1789
+ ],
1790
+ min: 8,
1791
+ max: 1040,
1792
+ constants: { PROTOCOL_ID_UNKNOWN: 0, PROTOCOL_ID_RTCM2: 2, PROTOCOL_ID_RTCM3: 3 },
1793
+ },
1794
+ },
1795
+ {
1796
+ name: "uavcan.equipment.hardpoint.Command",
1797
+ id: 1070,
1798
+ kind: "msg",
1799
+ signature: 0xa1a036268b0c3455n,
1800
+ msg: {
1801
+ fields: [
1802
+ { name: "hardpoint_id", type: { k: "p", kind: "u", bits: 8 } },
1803
+ { name: "command", type: { k: "p", kind: "u", bits: 16 } },
1804
+ ],
1805
+ min: 24,
1806
+ max: 24,
1807
+ },
1808
+ },
1809
+ {
1810
+ name: "uavcan.equipment.hardpoint.Status",
1811
+ id: 1071,
1812
+ kind: "msg",
1813
+ signature: 0x624a519d42553d82n,
1814
+ msg: {
1815
+ fields: [
1816
+ { name: "hardpoint_id", type: { k: "p", kind: "u", bits: 8 } },
1817
+ { name: "payload_weight", type: { k: "p", kind: "f", bits: 16 } },
1818
+ { name: "payload_weight_variance", type: { k: "p", kind: "f", bits: 16 } },
1819
+ { name: "status", type: { k: "p", kind: "u", bits: 16 } },
1820
+ ],
1821
+ min: 56,
1822
+ max: 56,
1823
+ },
1824
+ },
1825
+ {
1826
+ name: "uavcan.equipment.ice.FuelTankStatus",
1827
+ id: 1129,
1828
+ kind: "msg",
1829
+ signature: 0x286b4a387ba84bc4n,
1830
+ msg: {
1831
+ fields: [
1832
+ { name: null, type: { k: "v", bits: 9 } },
1833
+ { name: "available_fuel_volume_percent", type: { k: "p", kind: "u", bits: 7 } },
1834
+ { name: "available_fuel_volume_cm3", type: { k: "p", kind: "f", bits: 32 } },
1835
+ { name: "fuel_consumption_rate_cm3pm", type: { k: "p", kind: "f", bits: 32 } },
1836
+ { name: "fuel_temperature", type: { k: "p", kind: "f", bits: 16 } },
1837
+ { name: "fuel_tank_id", type: { k: "p", kind: "u", bits: 8 } },
1838
+ ],
1839
+ min: 104,
1840
+ max: 104,
1841
+ },
1842
+ },
1843
+ {
1844
+ name: "uavcan.equipment.ice.reciprocating.CylinderStatus",
1845
+ id: null,
1846
+ kind: "msg",
1847
+ signature: 0xd68ac83a89d5b36bn,
1848
+ msg: {
1849
+ fields: [
1850
+ { name: "ignition_timing_deg", type: { k: "p", kind: "f", bits: 16 } },
1851
+ { name: "injection_time_ms", type: { k: "p", kind: "f", bits: 16 } },
1852
+ { name: "cylinder_head_temperature", type: { k: "p", kind: "f", bits: 16 } },
1853
+ { name: "exhaust_gas_temperature", type: { k: "p", kind: "f", bits: 16 } },
1854
+ { name: "lambda_coefficient", type: { k: "p", kind: "f", bits: 16 } },
1855
+ ],
1856
+ min: 80,
1857
+ max: 80,
1858
+ },
1859
+ },
1860
+ {
1861
+ name: "uavcan.equipment.ice.reciprocating.Status",
1862
+ id: 1120,
1863
+ kind: "msg",
1864
+ signature: 0xd38aa3ee75537ec6n,
1865
+ msg: {
1866
+ fields: [
1867
+ { name: "state", type: { k: "p", kind: "u", bits: 2 } },
1868
+ { name: "flags", type: { k: "p", kind: "u", bits: 30 } },
1869
+ { name: null, type: { k: "v", bits: 16 } },
1870
+ { name: "engine_load_percent", type: { k: "p", kind: "u", bits: 7 } },
1871
+ { name: "engine_speed_rpm", type: { k: "p", kind: "u", bits: 17 } },
1872
+ { name: "spark_dwell_time_ms", type: { k: "p", kind: "f", bits: 16 } },
1873
+ { name: "atmospheric_pressure_kpa", type: { k: "p", kind: "f", bits: 16 } },
1874
+ { name: "intake_manifold_pressure_kpa", type: { k: "p", kind: "f", bits: 16 } },
1875
+ { name: "intake_manifold_temperature", type: { k: "p", kind: "f", bits: 16 } },
1876
+ { name: "coolant_temperature", type: { k: "p", kind: "f", bits: 16 } },
1877
+ { name: "oil_pressure", type: { k: "p", kind: "f", bits: 16 } },
1878
+ { name: "oil_temperature", type: { k: "p", kind: "f", bits: 16 } },
1879
+ { name: "fuel_pressure", type: { k: "p", kind: "f", bits: 16 } },
1880
+ { name: "fuel_consumption_rate_cm3pm", type: { k: "p", kind: "f", bits: 32 } },
1881
+ { name: "estimated_consumed_fuel_volume_cm3", type: { k: "p", kind: "f", bits: 32 } },
1882
+ { name: "throttle_position_percent", type: { k: "p", kind: "u", bits: 7 } },
1883
+ { name: "ecu_index", type: { k: "p", kind: "u", bits: 6 } },
1884
+ { name: "spark_plug_usage", type: { k: "p", kind: "u", bits: 3 } },
1885
+ { name: "cylinder_status", type: { k: "a", of: { k: "c", name: "uavcan.equipment.ice.reciprocating.CylinderStatus" }, max: 16, dyn: true } },
1886
+ ],
1887
+ min: 280,
1888
+ max: 1565,
1889
+ constants: {
1890
+ STATE_STOPPED: 0,
1891
+ STATE_STARTING: 1,
1892
+ STATE_RUNNING: 2,
1893
+ STATE_FAULT: 3,
1894
+ FLAG_GENERAL_ERROR: 1,
1895
+ FLAG_CRANKSHAFT_SENSOR_ERROR_SUPPORTED: 2,
1896
+ FLAG_CRANKSHAFT_SENSOR_ERROR: 4,
1897
+ FLAG_TEMPERATURE_SUPPORTED: 8,
1898
+ FLAG_TEMPERATURE_BELOW_NOMINAL: 16,
1899
+ FLAG_TEMPERATURE_ABOVE_NOMINAL: 32,
1900
+ FLAG_TEMPERATURE_OVERHEATING: 64,
1901
+ FLAG_TEMPERATURE_EGT_ABOVE_NOMINAL: 128,
1902
+ FLAG_FUEL_PRESSURE_SUPPORTED: 256,
1903
+ FLAG_FUEL_PRESSURE_BELOW_NOMINAL: 512,
1904
+ FLAG_FUEL_PRESSURE_ABOVE_NOMINAL: 1024,
1905
+ FLAG_DETONATION_SUPPORTED: 2048,
1906
+ FLAG_DETONATION_OBSERVED: 4096,
1907
+ FLAG_MISFIRE_SUPPORTED: 8192,
1908
+ FLAG_MISFIRE_OBSERVED: 16384,
1909
+ FLAG_OIL_PRESSURE_SUPPORTED: 32768,
1910
+ FLAG_OIL_PRESSURE_BELOW_NOMINAL: 65536,
1911
+ FLAG_OIL_PRESSURE_ABOVE_NOMINAL: 131072,
1912
+ FLAG_DEBRIS_SUPPORTED: 262144,
1913
+ FLAG_DEBRIS_DETECTED: 524288,
1914
+ SPARK_PLUG_SINGLE: 0,
1915
+ SPARK_PLUG_FIRST_ACTIVE: 1,
1916
+ SPARK_PLUG_SECOND_ACTIVE: 2,
1917
+ SPARK_PLUG_BOTH_ACTIVE: 3,
1918
+ },
1919
+ },
1920
+ },
1921
+ {
1922
+ name: "uavcan.equipment.indication.BeepCommand",
1923
+ id: 1080,
1924
+ kind: "msg",
1925
+ signature: 0xbe9ea9fec2b15d52n,
1926
+ msg: {
1927
+ fields: [
1928
+ { name: "frequency", type: { k: "p", kind: "f", bits: 16 } },
1929
+ { name: "duration", type: { k: "p", kind: "f", bits: 16 } },
1930
+ ],
1931
+ min: 32,
1932
+ max: 32,
1933
+ },
1934
+ },
1935
+ {
1936
+ name: "uavcan.equipment.indication.RGB565",
1937
+ id: null,
1938
+ kind: "msg",
1939
+ signature: 0x58a7cef41951ec34n,
1940
+ msg: {
1941
+ fields: [
1942
+ { name: "red", type: { k: "p", kind: "u", bits: 5 } },
1943
+ { name: "green", type: { k: "p", kind: "u", bits: 6 } },
1944
+ { name: "blue", type: { k: "p", kind: "u", bits: 5 } },
1945
+ ],
1946
+ min: 16,
1947
+ max: 16,
1948
+ },
1949
+ },
1950
+ {
1951
+ name: "uavcan.equipment.indication.SingleLightCommand",
1952
+ id: null,
1953
+ kind: "msg",
1954
+ signature: 0xe894b8b589807007n,
1955
+ msg: {
1956
+ fields: [
1957
+ { name: "light_id", type: { k: "p", kind: "u", bits: 8 } },
1958
+ { name: "color", type: { k: "c", name: "uavcan.equipment.indication.RGB565" } },
1959
+ ],
1960
+ min: 24,
1961
+ max: 24,
1962
+ constants: {
1963
+ LIGHT_ID_ANTI_COLLISION: 246,
1964
+ LIGHT_ID_RIGHT_OF_WAY: 247,
1965
+ LIGHT_ID_STROBE: 248,
1966
+ LIGHT_ID_WING: 249,
1967
+ LIGHT_ID_LOGO: 250,
1968
+ LIGHT_ID_TAXI: 251,
1969
+ LIGHT_ID_TURN_OFF: 252,
1970
+ LIGHT_ID_TAKE_OFF: 253,
1971
+ LIGHT_ID_LANDING: 254,
1972
+ LIGHT_ID_FORMATION: 255,
1973
+ },
1974
+ },
1975
+ },
1976
+ {
1977
+ name: "uavcan.equipment.indication.LightsCommand",
1978
+ id: 1081,
1979
+ kind: "msg",
1980
+ signature: 0x2031d93c8bdd1ec4n,
1981
+ msg: {
1982
+ fields: [{ name: "commands", type: { k: "a", of: { k: "c", name: "uavcan.equipment.indication.SingleLightCommand" }, max: 20, dyn: true } }],
1983
+ min: 0,
1984
+ max: 485,
1985
+ },
1986
+ },
1987
+ {
1988
+ name: "uavcan.equipment.power.BatteryInfo",
1989
+ id: 1092,
1990
+ kind: "msg",
1991
+ signature: 0x249c26548a711966n,
1992
+ msg: {
1993
+ fields: [
1994
+ { name: "temperature", type: { k: "p", kind: "f", bits: 16 } },
1995
+ { name: "voltage", type: { k: "p", kind: "f", bits: 16 } },
1996
+ { name: "current", type: { k: "p", kind: "f", bits: 16 } },
1997
+ { name: "average_power_10sec", type: { k: "p", kind: "f", bits: 16 } },
1998
+ { name: "remaining_capacity_wh", type: { k: "p", kind: "f", bits: 16 } },
1999
+ { name: "full_charge_capacity_wh", type: { k: "p", kind: "f", bits: 16 } },
2000
+ { name: "hours_to_full_charge", type: { k: "p", kind: "f", bits: 16 } },
2001
+ { name: "status_flags", type: { k: "p", kind: "u", bits: 11 } },
2002
+ { name: "state_of_health_pct", type: { k: "p", kind: "u", bits: 7 } },
2003
+ { name: "state_of_charge_pct", type: { k: "p", kind: "u", bits: 7 } },
2004
+ { name: "state_of_charge_pct_stdev", type: { k: "p", kind: "u", bits: 7 } },
2005
+ { name: "battery_id", type: { k: "p", kind: "u", bits: 8 } },
2006
+ { name: "model_instance_id", type: { k: "p", kind: "u", bits: 32 } },
2007
+ { name: "model_name", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 31, dyn: true } },
2008
+ ],
2009
+ min: 184,
2010
+ max: 437,
2011
+ constants: {
2012
+ STATUS_FLAG_IN_USE: 1,
2013
+ STATUS_FLAG_CHARGING: 2,
2014
+ STATUS_FLAG_CHARGED: 4,
2015
+ STATUS_FLAG_TEMP_HOT: 8,
2016
+ STATUS_FLAG_TEMP_COLD: 16,
2017
+ STATUS_FLAG_OVERLOAD: 32,
2018
+ STATUS_FLAG_BAD_BATTERY: 64,
2019
+ STATUS_FLAG_NEED_SERVICE: 128,
2020
+ STATUS_FLAG_BMS_ERROR: 256,
2021
+ STATUS_FLAG_RESERVED_A: 512,
2022
+ STATUS_FLAG_RESERVED_B: 1024,
2023
+ STATE_OF_HEALTH_UNKNOWN: 127,
2024
+ STATE_OF_CHARGE_UNKNOWN: 127,
2025
+ },
2026
+ },
2027
+ },
2028
+ {
2029
+ name: "uavcan.equipment.power.CircuitStatus",
2030
+ id: 1091,
2031
+ kind: "msg",
2032
+ signature: 0x8313d33d0ddda115n,
2033
+ msg: {
2034
+ fields: [
2035
+ { name: "circuit_id", type: { k: "p", kind: "u", bits: 16 } },
2036
+ { name: "voltage", type: { k: "p", kind: "f", bits: 16 } },
2037
+ { name: "current", type: { k: "p", kind: "f", bits: 16 } },
2038
+ { name: "error_flags", type: { k: "p", kind: "u", bits: 8 } },
2039
+ ],
2040
+ min: 56,
2041
+ max: 56,
2042
+ constants: { ERROR_FLAG_OVERVOLTAGE: 1, ERROR_FLAG_UNDERVOLTAGE: 2, ERROR_FLAG_OVERCURRENT: 4, ERROR_FLAG_UNDERCURRENT: 8 },
2043
+ },
2044
+ },
2045
+ {
2046
+ name: "uavcan.equipment.power.PrimaryPowerSupplyStatus",
2047
+ id: 1090,
2048
+ kind: "msg",
2049
+ signature: 0xbba05074ad757480n,
2050
+ msg: {
2051
+ fields: [
2052
+ { name: "hours_to_empty_at_10sec_avg_power", type: { k: "p", kind: "f", bits: 16 } },
2053
+ { name: "hours_to_empty_at_10sec_avg_power_variance", type: { k: "p", kind: "f", bits: 16 } },
2054
+ { name: "external_power_available", type: { k: "p", kind: "b", bits: 1 } },
2055
+ { name: "remaining_energy_pct", type: { k: "p", kind: "u", bits: 7 } },
2056
+ { name: "remaining_energy_pct_stdev", type: { k: "p", kind: "u", bits: 7 } },
2057
+ ],
2058
+ min: 47,
2059
+ max: 47,
2060
+ },
2061
+ },
2062
+ {
2063
+ name: "uavcan.equipment.range_sensor.Measurement",
2064
+ id: 1050,
2065
+ kind: "msg",
2066
+ signature: 0x68fffe70fc771952n,
2067
+ msg: {
2068
+ fields: [
2069
+ { name: "timestamp", type: { k: "c", name: "uavcan.Timestamp" } },
2070
+ { name: "sensor_id", type: { k: "p", kind: "u", bits: 8 } },
2071
+ { name: "beam_orientation_in_body_frame", type: { k: "c", name: "uavcan.CoarseOrientation" } },
2072
+ { name: "field_of_view", type: { k: "p", kind: "f", bits: 16 } },
2073
+ { name: "sensor_type", type: { k: "p", kind: "u", bits: 5 } },
2074
+ { name: "reading_type", type: { k: "p", kind: "u", bits: 3 } },
2075
+ { name: "range", type: { k: "p", kind: "f", bits: 16 } },
2076
+ ],
2077
+ min: 120,
2078
+ max: 120,
2079
+ constants: {
2080
+ SENSOR_TYPE_UNDEFINED: 0,
2081
+ SENSOR_TYPE_SONAR: 1,
2082
+ SENSOR_TYPE_LIDAR: 2,
2083
+ SENSOR_TYPE_RADAR: 3,
2084
+ READING_TYPE_UNDEFINED: 0,
2085
+ READING_TYPE_VALID_RANGE: 1,
2086
+ READING_TYPE_TOO_CLOSE: 2,
2087
+ READING_TYPE_TOO_FAR: 3,
2088
+ },
2089
+ },
2090
+ },
2091
+ {
2092
+ name: "uavcan.equipment.safety.ArmingStatus",
2093
+ id: 1100,
2094
+ kind: "msg",
2095
+ signature: 0x8700f375556a8003n,
2096
+ msg: { fields: [{ name: "status", type: { k: "p", kind: "u", bits: 8 } }], min: 8, max: 8, constants: { STATUS_DISARMED: 0, STATUS_FULLY_ARMED: 255 } },
2097
+ },
2098
+ {
2099
+ name: "uavcan.navigation.GlobalNavigationSolution",
2100
+ id: 2000,
2101
+ kind: "msg",
2102
+ signature: 0x463b10cccbe51c3dn,
2103
+ msg: {
2104
+ fields: [
2105
+ { name: "timestamp", type: { k: "c", name: "uavcan.Timestamp" } },
2106
+ { name: "longitude", type: { k: "p", kind: "f", bits: 64 } },
2107
+ { name: "latitude", type: { k: "p", kind: "f", bits: 64 } },
2108
+ { name: "height_ellipsoid", type: { k: "p", kind: "f", bits: 32 } },
2109
+ { name: "height_msl", type: { k: "p", kind: "f", bits: 32 } },
2110
+ { name: "height_agl", type: { k: "p", kind: "f", bits: 32 } },
2111
+ { name: "height_baro", type: { k: "p", kind: "f", bits: 32 } },
2112
+ { name: "qnh_hpa", type: { k: "p", kind: "f", bits: 16 } },
2113
+ { name: "orientation_xyzw", type: { k: "a", of: { k: "p", kind: "f", bits: 32 }, max: 4 } },
2114
+ { name: "pose_covariance", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 36, dyn: true } },
2115
+ { name: "linear_velocity_body", type: { k: "a", of: { k: "p", kind: "f", bits: 32 }, max: 3 } },
2116
+ { name: "angular_velocity_body", type: { k: "a", of: { k: "p", kind: "f", bits: 32 }, max: 3 } },
2117
+ { name: "linear_acceleration_body", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 3 } },
2118
+ { name: "velocity_covariance", type: { k: "a", of: { k: "p", kind: "f", bits: 16 }, max: 36, dyn: true } },
2119
+ ],
2120
+ min: 696,
2121
+ max: 1860,
2122
+ },
2123
+ },
2124
+ {
2125
+ name: "uavcan.protocol.AccessCommandShell",
2126
+ id: 6,
2127
+ kind: "srv",
2128
+ signature: 0x59276b5921c9246en,
2129
+ req: {
2130
+ fields: [
2131
+ { name: "flags", type: { k: "p", kind: "u", bits: 8 } },
2132
+ { name: "input", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 128, dyn: true } },
2133
+ ],
2134
+ min: 8,
2135
+ max: 1040,
2136
+ constants: { NEWLINE: 10, MIN_OUTPUT_LIFETIME_SEC: 10, FLAG_RESET_SHELL: 1, FLAG_CLEAR_OUTPUT_BUFFERS: 2, FLAG_READ_STDOUT: 64, FLAG_READ_STDERR: 128 },
2137
+ },
2138
+ res: {
2139
+ fields: [
2140
+ { name: "last_exit_status", type: { k: "p", kind: "i", bits: 32 } },
2141
+ { name: "flags", type: { k: "p", kind: "u", bits: 8 } },
2142
+ { name: "output", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 256, dyn: true } },
2143
+ ],
2144
+ min: 40,
2145
+ max: 2097,
2146
+ constants: { FLAG_RUNNING: 1, FLAG_SHELL_ERROR: 2, FLAG_HAS_PENDING_STDOUT: 64, FLAG_HAS_PENDING_STDERR: 128 },
2147
+ },
2148
+ },
2149
+ {
2150
+ name: "uavcan.protocol.CANIfaceStats",
2151
+ id: null,
2152
+ kind: "msg",
2153
+ signature: 0x13b106f0c44ca350n,
2154
+ msg: {
2155
+ fields: [
2156
+ { name: "frames_tx", type: { k: "p", kind: "u", bits: 48 } },
2157
+ { name: "frames_rx", type: { k: "p", kind: "u", bits: 48 } },
2158
+ { name: "errors", type: { k: "p", kind: "u", bits: 48 } },
2159
+ ],
2160
+ min: 144,
2161
+ max: 144,
2162
+ },
2163
+ },
2164
+ {
2165
+ name: "uavcan.protocol.DataTypeKind",
2166
+ id: null,
2167
+ kind: "msg",
2168
+ signature: 0x9420a73e008e5930n,
2169
+ msg: { fields: [{ name: "value", type: { k: "p", kind: "u", bits: 8 } }], min: 8, max: 8, constants: { SERVICE: 0, MESSAGE: 1 } },
2170
+ },
2171
+ {
2172
+ name: "uavcan.protocol.GetDataTypeInfo",
2173
+ id: 2,
2174
+ kind: "srv",
2175
+ signature: 0x1b283338a7bed2d8n,
2176
+ req: {
2177
+ fields: [
2178
+ { name: "id", type: { k: "p", kind: "u", bits: 16 } },
2179
+ { name: "kind", type: { k: "c", name: "uavcan.protocol.DataTypeKind" } },
2180
+ { name: "name", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 80, dyn: true } },
2181
+ ],
2182
+ min: 24,
2183
+ max: 671,
2184
+ },
2185
+ res: {
2186
+ fields: [
2187
+ { name: "signature", type: { k: "p", kind: "u", bits: 64 } },
2188
+ { name: "id", type: { k: "p", kind: "u", bits: 16 } },
2189
+ { name: "kind", type: { k: "c", name: "uavcan.protocol.DataTypeKind" } },
2190
+ { name: "flags", type: { k: "p", kind: "u", bits: 8 } },
2191
+ { name: "name", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 80, dyn: true } },
2192
+ ],
2193
+ min: 96,
2194
+ max: 743,
2195
+ constants: { FLAG_KNOWN: 1, FLAG_SUBSCRIBED: 2, FLAG_PUBLISHING: 4, FLAG_SERVING: 8 },
2196
+ },
2197
+ },
2198
+ {
2199
+ name: "uavcan.protocol.NodeStatus",
2200
+ id: 341,
2201
+ kind: "msg",
2202
+ signature: 0x0f0868d0c1a7c6f1n,
2203
+ msg: {
2204
+ fields: [
2205
+ { name: "uptime_sec", type: { k: "p", kind: "u", bits: 32 } },
2206
+ { name: "health", type: { k: "p", kind: "u", bits: 2 } },
2207
+ { name: "mode", type: { k: "p", kind: "u", bits: 3 } },
2208
+ { name: "sub_mode", type: { k: "p", kind: "u", bits: 3 } },
2209
+ { name: "vendor_specific_status_code", type: { k: "p", kind: "u", bits: 16 } },
2210
+ ],
2211
+ min: 56,
2212
+ max: 56,
2213
+ constants: {
2214
+ MAX_BROADCASTING_PERIOD_MS: 1000,
2215
+ MIN_BROADCASTING_PERIOD_MS: 2,
2216
+ OFFLINE_TIMEOUT_MS: 3000,
2217
+ HEALTH_OK: 0,
2218
+ HEALTH_WARNING: 1,
2219
+ HEALTH_ERROR: 2,
2220
+ HEALTH_CRITICAL: 3,
2221
+ MODE_OPERATIONAL: 0,
2222
+ MODE_INITIALIZATION: 1,
2223
+ MODE_MAINTENANCE: 2,
2224
+ MODE_SOFTWARE_UPDATE: 3,
2225
+ MODE_OFFLINE: 7,
2226
+ },
2227
+ },
2228
+ },
2229
+ {
2230
+ name: "uavcan.protocol.SoftwareVersion",
2231
+ id: null,
2232
+ kind: "msg",
2233
+ signature: 0xdd46fd376527fea1n,
2234
+ msg: {
2235
+ fields: [
2236
+ { name: "major", type: { k: "p", kind: "u", bits: 8 } },
2237
+ { name: "minor", type: { k: "p", kind: "u", bits: 8 } },
2238
+ { name: "optional_field_flags", type: { k: "p", kind: "u", bits: 8 } },
2239
+ { name: "vcs_commit", type: { k: "p", kind: "u", bits: 32 } },
2240
+ { name: "image_crc", type: { k: "p", kind: "u", bits: 64 } },
2241
+ ],
2242
+ min: 120,
2243
+ max: 120,
2244
+ constants: { OPTIONAL_FIELD_FLAG_VCS_COMMIT: 1, OPTIONAL_FIELD_FLAG_IMAGE_CRC: 2 },
2245
+ },
2246
+ },
2247
+ {
2248
+ name: "uavcan.protocol.HardwareVersion",
2249
+ id: null,
2250
+ kind: "msg",
2251
+ signature: 0x0ad5c4c933f4a0c4n,
2252
+ msg: {
2253
+ fields: [
2254
+ { name: "major", type: { k: "p", kind: "u", bits: 8 } },
2255
+ { name: "minor", type: { k: "p", kind: "u", bits: 8 } },
2256
+ { name: "unique_id", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 16 } },
2257
+ { name: "certificate_of_authenticity", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 255, dyn: true } },
2258
+ ],
2259
+ min: 144,
2260
+ max: 2192,
2261
+ },
2262
+ },
2263
+ {
2264
+ name: "uavcan.protocol.GetNodeInfo",
2265
+ id: 1,
2266
+ kind: "srv",
2267
+ signature: 0xee468a8121c46a9en,
2268
+ req: { fields: [], min: 0, max: 0 },
2269
+ res: {
2270
+ fields: [
2271
+ { name: "status", type: { k: "c", name: "uavcan.protocol.NodeStatus" } },
2272
+ { name: "software_version", type: { k: "c", name: "uavcan.protocol.SoftwareVersion" } },
2273
+ { name: "hardware_version", type: { k: "c", name: "uavcan.protocol.HardwareVersion" } },
2274
+ { name: "name", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 80, dyn: true } },
2275
+ ],
2276
+ min: 320,
2277
+ max: 3015,
2278
+ },
2279
+ },
2280
+ {
2281
+ name: "uavcan.protocol.GetTransportStats",
2282
+ id: 4,
2283
+ kind: "srv",
2284
+ signature: 0xbe6f76a7ec312b04n,
2285
+ req: { fields: [], min: 0, max: 0 },
2286
+ res: {
2287
+ fields: [
2288
+ { name: "transfers_tx", type: { k: "p", kind: "u", bits: 48 } },
2289
+ { name: "transfers_rx", type: { k: "p", kind: "u", bits: 48 } },
2290
+ { name: "transfer_errors", type: { k: "p", kind: "u", bits: 48 } },
2291
+ { name: "can_iface_stats", type: { k: "a", of: { k: "c", name: "uavcan.protocol.CANIfaceStats" }, max: 3, dyn: true } },
2292
+ ],
2293
+ min: 144,
2294
+ max: 578,
2295
+ },
2296
+ },
2297
+ {
2298
+ name: "uavcan.protocol.GlobalTimeSync",
2299
+ id: 4,
2300
+ kind: "msg",
2301
+ signature: 0x20271116a793c2dbn,
2302
+ msg: {
2303
+ fields: [{ name: "previous_transmission_timestamp_usec", type: { k: "p", kind: "u", bits: 56, trunc: true } }],
2304
+ min: 56,
2305
+ max: 56,
2306
+ constants: { MAX_BROADCASTING_PERIOD_MS: 1100, MIN_BROADCASTING_PERIOD_MS: 40, RECOMMENDED_BROADCASTER_TIMEOUT_MS: 2200 },
2307
+ },
2308
+ },
2309
+ {
2310
+ name: "uavcan.protocol.Panic",
2311
+ id: 5,
2312
+ kind: "msg",
2313
+ signature: 0x8b79b4101811c1d7n,
2314
+ msg: {
2315
+ fields: [{ name: "reason_text", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 7, dyn: true } }],
2316
+ min: 0,
2317
+ max: 59,
2318
+ constants: { MIN_MESSAGES: 3, MAX_INTERVAL_MS: 500 },
2319
+ },
2320
+ },
2321
+ {
2322
+ name: "uavcan.protocol.RestartNode",
2323
+ id: 5,
2324
+ kind: "srv",
2325
+ signature: 0x569e05394a3017f0n,
2326
+ req: { fields: [{ name: "magic_number", type: { k: "p", kind: "u", bits: 40 } }], min: 40, max: 40, constants: { MAGIC_NUMBER: 742196058910 } },
2327
+ res: { fields: [{ name: "ok", type: { k: "p", kind: "b", bits: 1 } }], min: 1, max: 1 },
2328
+ },
2329
+ {
2330
+ name: "uavcan.protocol.debug.KeyValue",
2331
+ id: 16370,
2332
+ kind: "msg",
2333
+ signature: 0xe02f25d6e0c98ae0n,
2334
+ msg: {
2335
+ fields: [
2336
+ { name: "value", type: { k: "p", kind: "f", bits: 32 } },
2337
+ { name: "key", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 58, dyn: true } },
2338
+ ],
2339
+ min: 32,
2340
+ max: 502,
2341
+ },
2342
+ },
2343
+ {
2344
+ name: "uavcan.protocol.debug.LogLevel",
2345
+ id: null,
2346
+ kind: "msg",
2347
+ signature: 0x711bf141af572346n,
2348
+ msg: { fields: [{ name: "value", type: { k: "p", kind: "u", bits: 3 } }], min: 3, max: 3, constants: { DEBUG: 0, INFO: 1, WARNING: 2, ERROR: 3 } },
2349
+ },
2350
+ {
2351
+ name: "uavcan.protocol.debug.LogMessage",
2352
+ id: 16383,
2353
+ kind: "msg",
2354
+ signature: 0xd654a48e0c049d75n,
2355
+ msg: {
2356
+ fields: [
2357
+ { name: "level", type: { k: "c", name: "uavcan.protocol.debug.LogLevel" } },
2358
+ { name: "source", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 31, dyn: true } },
2359
+ { name: "text", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 90, dyn: true } },
2360
+ ],
2361
+ min: 3,
2362
+ max: 983,
2363
+ },
2364
+ },
2365
+ {
2366
+ name: "uavcan.protocol.dynamic_node_id.Allocation",
2367
+ id: 1,
2368
+ kind: "msg",
2369
+ signature: 0x0b2a812620a11d40n,
2370
+ msg: {
2371
+ fields: [
2372
+ { name: "node_id", type: { k: "p", kind: "u", bits: 7 } },
2373
+ { name: "first_part_of_unique_id", type: { k: "p", kind: "b", bits: 1 } },
2374
+ { name: "unique_id", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 16, dyn: true } },
2375
+ ],
2376
+ min: 8,
2377
+ max: 141,
2378
+ constants: {
2379
+ MAX_REQUEST_PERIOD_MS: 1000,
2380
+ MIN_REQUEST_PERIOD_MS: 600,
2381
+ MAX_FOLLOWUP_DELAY_MS: 400,
2382
+ MIN_FOLLOWUP_DELAY_MS: 0,
2383
+ FOLLOWUP_TIMEOUT_MS: 500,
2384
+ MAX_LENGTH_OF_UNIQUE_ID_IN_REQUEST: 6,
2385
+ ANY_NODE_ID: 0,
2386
+ },
2387
+ },
2388
+ },
2389
+ {
2390
+ name: "uavcan.protocol.dynamic_node_id.server.Entry",
2391
+ id: null,
2392
+ kind: "msg",
2393
+ signature: 0x7faa779d64fa75c2n,
2394
+ msg: {
2395
+ fields: [
2396
+ { name: "term", type: { k: "p", kind: "u", bits: 32 } },
2397
+ { name: "unique_id", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 16 } },
2398
+ { name: null, type: { k: "v", bits: 1 } },
2399
+ { name: "node_id", type: { k: "p", kind: "u", bits: 7 } },
2400
+ ],
2401
+ min: 168,
2402
+ max: 168,
2403
+ },
2404
+ },
2405
+ {
2406
+ name: "uavcan.protocol.dynamic_node_id.server.AppendEntries",
2407
+ id: 30,
2408
+ kind: "srv",
2409
+ signature: 0x8032c7097b48a3ccn,
2410
+ req: {
2411
+ fields: [
2412
+ { name: "term", type: { k: "p", kind: "u", bits: 32 } },
2413
+ { name: "prev_log_term", type: { k: "p", kind: "u", bits: 32 } },
2414
+ { name: "prev_log_index", type: { k: "p", kind: "u", bits: 8 } },
2415
+ { name: "leader_commit", type: { k: "p", kind: "u", bits: 8 } },
2416
+ { name: "entries", type: { k: "a", of: { k: "c", name: "uavcan.protocol.dynamic_node_id.server.Entry" }, max: 1, dyn: true } },
2417
+ ],
2418
+ min: 80,
2419
+ max: 249,
2420
+ constants: { DEFAULT_MIN_ELECTION_TIMEOUT_MS: 2000, DEFAULT_MAX_ELECTION_TIMEOUT_MS: 4000 },
2421
+ },
2422
+ res: {
2423
+ fields: [
2424
+ { name: "term", type: { k: "p", kind: "u", bits: 32 } },
2425
+ { name: "success", type: { k: "p", kind: "b", bits: 1 } },
2426
+ ],
2427
+ min: 33,
2428
+ max: 33,
2429
+ },
2430
+ },
2431
+ {
2432
+ name: "uavcan.protocol.dynamic_node_id.server.Discovery",
2433
+ id: 390,
2434
+ kind: "msg",
2435
+ signature: 0x821ae2f525f69f21n,
2436
+ msg: {
2437
+ fields: [
2438
+ { name: "configured_cluster_size", type: { k: "p", kind: "u", bits: 8 } },
2439
+ { name: "known_nodes", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 5, dyn: true } },
2440
+ ],
2441
+ min: 8,
2442
+ max: 51,
2443
+ constants: { BROADCASTING_PERIOD_MS: 1000 },
2444
+ },
2445
+ },
2446
+ {
2447
+ name: "uavcan.protocol.dynamic_node_id.server.RequestVote",
2448
+ id: 31,
2449
+ kind: "srv",
2450
+ signature: 0xcdde07bb89a56356n,
2451
+ req: {
2452
+ fields: [
2453
+ { name: "term", type: { k: "p", kind: "u", bits: 32 } },
2454
+ { name: "last_log_term", type: { k: "p", kind: "u", bits: 32 } },
2455
+ { name: "last_log_index", type: { k: "p", kind: "u", bits: 8 } },
2456
+ ],
2457
+ min: 72,
2458
+ max: 72,
2459
+ },
2460
+ res: {
2461
+ fields: [
2462
+ { name: "term", type: { k: "p", kind: "u", bits: 32 } },
2463
+ { name: "vote_granted", type: { k: "p", kind: "b", bits: 1 } },
2464
+ ],
2465
+ min: 33,
2466
+ max: 33,
2467
+ },
2468
+ },
2469
+ {
2470
+ name: "uavcan.protocol.enumeration.Begin",
2471
+ id: 15,
2472
+ kind: "srv",
2473
+ signature: 0x196ae06426a3b5d8n,
2474
+ req: {
2475
+ fields: [
2476
+ { name: "timeout_sec", type: { k: "p", kind: "u", bits: 16 } },
2477
+ { name: "parameter_name", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 92, dyn: true } },
2478
+ ],
2479
+ min: 16,
2480
+ max: 759,
2481
+ constants: { TIMEOUT_CANCEL: 0, TIMEOUT_INFINITE: 65535 },
2482
+ },
2483
+ res: {
2484
+ fields: [{ name: "error", type: { k: "p", kind: "u", bits: 8 } }],
2485
+ min: 8,
2486
+ max: 8,
2487
+ constants: { ERROR_OK: 0, ERROR_INVALID_MODE: 1, ERROR_INVALID_PARAMETER: 2, ERROR_UNSUPPORTED: 3, ERROR_UNKNOWN: 255 },
2488
+ },
2489
+ },
2490
+ { name: "uavcan.protocol.param.Empty", id: null, kind: "msg", signature: 0x6c4d0e8ef37361dfn, msg: { fields: [], min: 0, max: 0 } },
2491
+ {
2492
+ name: "uavcan.protocol.param.NumericValue",
2493
+ id: null,
2494
+ kind: "msg",
2495
+ signature: 0x0da6d6fea22e3587n,
2496
+ msg: {
2497
+ fields: [
2498
+ { name: "empty", type: { k: "c", name: "uavcan.protocol.param.Empty" } },
2499
+ { name: "integer_value", type: { k: "p", kind: "i", bits: 64 } },
2500
+ { name: "real_value", type: { k: "p", kind: "f", bits: 32 } },
2501
+ ],
2502
+ union: true,
2503
+ min: 2,
2504
+ max: 66,
2505
+ },
2506
+ },
2507
+ {
2508
+ name: "uavcan.protocol.enumeration.Indication",
2509
+ id: 380,
2510
+ kind: "msg",
2511
+ signature: 0x884cb63050a84f35n,
2512
+ msg: {
2513
+ fields: [
2514
+ { name: null, type: { k: "v", bits: 6 } },
2515
+ { name: "value", type: { k: "c", name: "uavcan.protocol.param.NumericValue" } },
2516
+ { name: "parameter_name", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 92, dyn: true } },
2517
+ ],
2518
+ min: 8,
2519
+ max: 815,
2520
+ },
2521
+ },
2522
+ {
2523
+ name: "uavcan.protocol.file.Path",
2524
+ id: null,
2525
+ kind: "msg",
2526
+ signature: 0x12aefc50878a43e2n,
2527
+ msg: {
2528
+ fields: [{ name: "path", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 200, dyn: true } }],
2529
+ min: 0,
2530
+ max: 1608,
2531
+ constants: { SEPARATOR: 47 },
2532
+ },
2533
+ },
2534
+ {
2535
+ name: "uavcan.protocol.file.BeginFirmwareUpdate",
2536
+ id: 40,
2537
+ kind: "srv",
2538
+ signature: 0xb7d725df72724126n,
2539
+ req: {
2540
+ fields: [
2541
+ { name: "source_node_id", type: { k: "p", kind: "u", bits: 8 } },
2542
+ { name: "image_file_remote_path", type: { k: "c", name: "uavcan.protocol.file.Path" } },
2543
+ ],
2544
+ min: 8,
2545
+ max: 1616,
2546
+ },
2547
+ res: {
2548
+ fields: [
2549
+ { name: "error", type: { k: "p", kind: "u", bits: 8 } },
2550
+ { name: "optional_error_message", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 127, dyn: true } },
2551
+ ],
2552
+ min: 8,
2553
+ max: 1031,
2554
+ constants: { ERROR_OK: 0, ERROR_INVALID_MODE: 1, ERROR_IN_PROGRESS: 2, ERROR_UNKNOWN: 255 },
2555
+ },
2556
+ },
2557
+ {
2558
+ name: "uavcan.protocol.file.Error",
2559
+ id: null,
2560
+ kind: "msg",
2561
+ signature: 0xa83071ffea4fae15n,
2562
+ msg: {
2563
+ fields: [{ name: "value", type: { k: "p", kind: "i", bits: 16 } }],
2564
+ min: 16,
2565
+ max: 16,
2566
+ constants: {
2567
+ OK: 0,
2568
+ UNKNOWN_ERROR: 32767,
2569
+ NOT_FOUND: 2,
2570
+ IO_ERROR: 5,
2571
+ ACCESS_DENIED: 13,
2572
+ IS_DIRECTORY: 21,
2573
+ INVALID_VALUE: 22,
2574
+ FILE_TOO_LARGE: 27,
2575
+ OUT_OF_SPACE: 28,
2576
+ NOT_IMPLEMENTED: 38,
2577
+ },
2578
+ },
2579
+ },
2580
+ {
2581
+ name: "uavcan.protocol.file.Delete",
2582
+ id: 47,
2583
+ kind: "srv",
2584
+ signature: 0x78648c99170b47aan,
2585
+ req: { fields: [{ name: "path", type: { k: "c", name: "uavcan.protocol.file.Path" } }], min: 0, max: 1608 },
2586
+ res: { fields: [{ name: "error", type: { k: "c", name: "uavcan.protocol.file.Error" } }], min: 16, max: 16 },
2587
+ },
2588
+ {
2589
+ name: "uavcan.protocol.file.EntryType",
2590
+ id: null,
2591
+ kind: "msg",
2592
+ signature: 0x6924572fbb2086e5n,
2593
+ msg: {
2594
+ fields: [{ name: "flags", type: { k: "p", kind: "u", bits: 8 } }],
2595
+ min: 8,
2596
+ max: 8,
2597
+ constants: { FLAG_FILE: 1, FLAG_DIRECTORY: 2, FLAG_SYMLINK: 4, FLAG_READABLE: 8, FLAG_WRITEABLE: 16 },
2598
+ },
2599
+ },
2600
+ {
2601
+ name: "uavcan.protocol.file.GetDirectoryEntryInfo",
2602
+ id: 46,
2603
+ kind: "srv",
2604
+ signature: 0x8c46e8ab568bda79n,
2605
+ req: {
2606
+ fields: [
2607
+ { name: "entry_index", type: { k: "p", kind: "u", bits: 32 } },
2608
+ { name: "directory_path", type: { k: "c", name: "uavcan.protocol.file.Path" } },
2609
+ ],
2610
+ min: 32,
2611
+ max: 1640,
2612
+ },
2613
+ res: {
2614
+ fields: [
2615
+ { name: "error", type: { k: "c", name: "uavcan.protocol.file.Error" } },
2616
+ { name: "entry_type", type: { k: "c", name: "uavcan.protocol.file.EntryType" } },
2617
+ { name: "entry_full_path", type: { k: "c", name: "uavcan.protocol.file.Path" } },
2618
+ ],
2619
+ min: 24,
2620
+ max: 1632,
2621
+ },
2622
+ },
2623
+ {
2624
+ name: "uavcan.protocol.file.GetInfo",
2625
+ id: 45,
2626
+ kind: "srv",
2627
+ signature: 0x5004891ee8a27531n,
2628
+ req: { fields: [{ name: "path", type: { k: "c", name: "uavcan.protocol.file.Path" } }], min: 0, max: 1608 },
2629
+ res: {
2630
+ fields: [
2631
+ { name: "size", type: { k: "p", kind: "u", bits: 40 } },
2632
+ { name: "error", type: { k: "c", name: "uavcan.protocol.file.Error" } },
2633
+ { name: "entry_type", type: { k: "c", name: "uavcan.protocol.file.EntryType" } },
2634
+ ],
2635
+ min: 64,
2636
+ max: 64,
2637
+ },
2638
+ },
2639
+ {
2640
+ name: "uavcan.protocol.file.Read",
2641
+ id: 48,
2642
+ kind: "srv",
2643
+ signature: 0x8dcdca939f33f678n,
2644
+ req: {
2645
+ fields: [
2646
+ { name: "offset", type: { k: "p", kind: "u", bits: 40 } },
2647
+ { name: "path", type: { k: "c", name: "uavcan.protocol.file.Path" } },
2648
+ ],
2649
+ min: 40,
2650
+ max: 1648,
2651
+ },
2652
+ res: {
2653
+ fields: [
2654
+ { name: "error", type: { k: "c", name: "uavcan.protocol.file.Error" } },
2655
+ { name: "data", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 256, dyn: true } },
2656
+ ],
2657
+ min: 16,
2658
+ max: 2073,
2659
+ },
2660
+ },
2661
+ {
2662
+ name: "uavcan.protocol.file.Write",
2663
+ id: 49,
2664
+ kind: "srv",
2665
+ signature: 0x515aa1dc77e58429n,
2666
+ req: {
2667
+ fields: [
2668
+ { name: "offset", type: { k: "p", kind: "u", bits: 40 } },
2669
+ { name: "path", type: { k: "c", name: "uavcan.protocol.file.Path" } },
2670
+ { name: "data", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 192, dyn: true } },
2671
+ ],
2672
+ min: 40,
2673
+ max: 3192,
2674
+ },
2675
+ res: { fields: [{ name: "error", type: { k: "c", name: "uavcan.protocol.file.Error" } }], min: 16, max: 16 },
2676
+ },
2677
+ {
2678
+ name: "uavcan.protocol.param.ExecuteOpcode",
2679
+ id: 10,
2680
+ kind: "srv",
2681
+ signature: 0x3b131ac5eb69d2cdn,
2682
+ req: {
2683
+ fields: [
2684
+ { name: "opcode", type: { k: "p", kind: "u", bits: 8 } },
2685
+ { name: "argument", type: { k: "p", kind: "i", bits: 48 } },
2686
+ ],
2687
+ min: 56,
2688
+ max: 56,
2689
+ constants: { OPCODE_SAVE: 0, OPCODE_ERASE: 1 },
2690
+ },
2691
+ res: {
2692
+ fields: [
2693
+ { name: "argument", type: { k: "p", kind: "i", bits: 48 } },
2694
+ { name: "ok", type: { k: "p", kind: "b", bits: 1 } },
2695
+ ],
2696
+ min: 49,
2697
+ max: 49,
2698
+ },
2699
+ },
2700
+ {
2701
+ name: "uavcan.protocol.param.Value",
2702
+ id: null,
2703
+ kind: "msg",
2704
+ signature: 0x29f14bf484727267n,
2705
+ msg: {
2706
+ fields: [
2707
+ { name: "empty", type: { k: "c", name: "uavcan.protocol.param.Empty" } },
2708
+ { name: "integer_value", type: { k: "p", kind: "i", bits: 64 } },
2709
+ { name: "real_value", type: { k: "p", kind: "f", bits: 32 } },
2710
+ { name: "boolean_value", type: { k: "p", kind: "u", bits: 8 } },
2711
+ { name: "string_value", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 128, dyn: true } },
2712
+ ],
2713
+ union: true,
2714
+ min: 3,
2715
+ max: 1035,
2716
+ },
2717
+ },
2718
+ {
2719
+ name: "uavcan.protocol.param.GetSet",
2720
+ id: 11,
2721
+ kind: "srv",
2722
+ signature: 0xa7b622f939d1a4d5n,
2723
+ req: {
2724
+ fields: [
2725
+ { name: "index", type: { k: "p", kind: "u", bits: 13 } },
2726
+ { name: "value", type: { k: "c", name: "uavcan.protocol.param.Value" } },
2727
+ { name: "name", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 92, dyn: true } },
2728
+ ],
2729
+ min: 16,
2730
+ max: 1791,
2731
+ },
2732
+ res: {
2733
+ fields: [
2734
+ { name: null, type: { k: "v", bits: 5 } },
2735
+ { name: "value", type: { k: "c", name: "uavcan.protocol.param.Value" } },
2736
+ { name: null, type: { k: "v", bits: 5 } },
2737
+ { name: "default_value", type: { k: "c", name: "uavcan.protocol.param.Value" } },
2738
+ { name: null, type: { k: "v", bits: 6 } },
2739
+ { name: "max_value", type: { k: "c", name: "uavcan.protocol.param.NumericValue" } },
2740
+ { name: null, type: { k: "v", bits: 6 } },
2741
+ { name: "min_value", type: { k: "c", name: "uavcan.protocol.param.NumericValue" } },
2742
+ { name: "name", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 92, dyn: true } },
2743
+ ],
2744
+ min: 32,
2745
+ max: 2967,
2746
+ },
2747
+ },
2748
+ {
2749
+ name: "uavcan.tunnel.Protocol",
2750
+ id: null,
2751
+ kind: "msg",
2752
+ signature: 0xa367483c9b920e49n,
2753
+ msg: {
2754
+ fields: [{ name: "protocol", type: { k: "p", kind: "u", bits: 8 } }],
2755
+ min: 8,
2756
+ max: 8,
2757
+ constants: { MAVLINK: 0, MAVLINK2: 1, GPS_GENERIC: 2, UNDEFINED: 255 },
2758
+ },
2759
+ },
2760
+ {
2761
+ name: "uavcan.tunnel.Broadcast",
2762
+ id: 2010,
2763
+ kind: "msg",
2764
+ signature: 0x5aa2d4d9cf4b1e85n,
2765
+ msg: {
2766
+ fields: [
2767
+ { name: "protocol", type: { k: "c", name: "uavcan.tunnel.Protocol" } },
2768
+ { name: "channel_id", type: { k: "p", kind: "u", bits: 8 } },
2769
+ { name: "buffer", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 60, dyn: true } },
2770
+ ],
2771
+ min: 16,
2772
+ max: 502,
2773
+ },
2774
+ },
2775
+ {
2776
+ name: "uavcan.tunnel.Call",
2777
+ id: 63,
2778
+ kind: "srv",
2779
+ signature: 0xdb11edc510502658n,
2780
+ req: {
2781
+ fields: [
2782
+ { name: "protocol", type: { k: "c", name: "uavcan.tunnel.Protocol" } },
2783
+ { name: "channel_id", type: { k: "p", kind: "u", bits: 8 } },
2784
+ { name: "buffer", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 60, dyn: true } },
2785
+ ],
2786
+ min: 16,
2787
+ max: 502,
2788
+ },
2789
+ res: { fields: [{ name: "buffer", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 60, dyn: true } }], min: 0, max: 486 },
2790
+ },
2791
+ {
2792
+ name: "uavcan.tunnel.SerialConfig",
2793
+ id: 2011,
2794
+ kind: "msg",
2795
+ signature: 0x4237aacee87e82adn,
2796
+ msg: {
2797
+ fields: [
2798
+ { name: "channel_id", type: { k: "p", kind: "u", bits: 8 } },
2799
+ { name: "baud", type: { k: "p", kind: "u", bits: 32 } },
2800
+ { name: "options", type: { k: "p", kind: "u", bits: 24 } },
2801
+ ],
2802
+ min: 64,
2803
+ max: 64,
2804
+ },
2805
+ },
2806
+ {
2807
+ name: "uavcan.tunnel.Targetted",
2808
+ id: 3001,
2809
+ kind: "msg",
2810
+ signature: 0xb138e7ea72a2a2e9n,
2811
+ msg: {
2812
+ fields: [
2813
+ { name: "protocol", type: { k: "c", name: "uavcan.tunnel.Protocol" } },
2814
+ { name: "target_node", type: { k: "p", kind: "u", bits: 7 } },
2815
+ { name: "serial_id", type: { k: "p", kind: "i", bits: 5 } },
2816
+ { name: "options", type: { k: "p", kind: "u", bits: 4 } },
2817
+ { name: "baudrate", type: { k: "p", kind: "u", bits: 24 } },
2818
+ { name: "buffer", type: { k: "a", of: { k: "p", kind: "u", bits: 8 }, max: 120, dyn: true } },
2819
+ ],
2820
+ min: 48,
2821
+ max: 1015,
2822
+ constants: { OPTION_LOCK_PORT: 1 },
2823
+ },
2824
+ },
2825
+ ];