-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprometheus.ksy
81 lines (77 loc) · 1.4 KB
/
prometheus.ksy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
meta:
id: pocketqube
file-extension: pocketqube
endian: le
seq:
- id: header
type: header
- id: payload
type:
switch-on: header.msg_type
cases:
0x00: default
0x02: beacon
0xff: buffered
0xfe: buffered
0xfd: buffered
0xfc: buffered
0xfb: buffered
0xfa: buffered
0xf9: buffered
0xf8: buffered
0xf7: buffered
types:
header:
seq:
- id: msg_type
type: u1
default:
seq:
- id: message
type: str
encoding: ASCII
size-eos: true
beacon:
seq:
- id: state_index
type: u1
- id: flags
type: u1
- id: software_error_count
type: u2
- id: boot_count
type: u2
- id: pad_byte
type: u2
- id: battery_voltage
type: f4
- id: cpu_temperature_c
type: f4
- id: imu_temperature_c
type: f4
- id: gyro_0
type: f4
- id: gyro_1
type: f4
- id: gyro_2
type: f4
- id: mag_0
type: f4
- id: mag_1
type: f4
- id: mag_2
type: f4
- id: accel_0
type: f4
- id: accel_1
type: f4
- id: accel_2
type: f4
- id: rssi_db
type: f4
- id: fei_hz
type: f4
buffered:
seq:
- id: data
size-eos: true