-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtelemetry.fbs
More file actions
74 lines (59 loc) · 991 Bytes
/
telemetry.fbs
File metadata and controls
74 lines (59 loc) · 991 Bytes
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
namespace Telemetry;
struct Vec3 {
x:float;
y:float;
z:float;
}
struct GPSFrame {
lat:float;
lng:float;
speed:float;
altitude:float;
heading:float;
}
struct IMUFrame {
acceleration:Vec3;
angular_velocity:Vec3;
magnemometer:Vec3;
}
struct Timestamp {
seconds:uint64;
nanoseconds:uint64;
}
struct Nanos {
time:uint64;
}
struct WheelSpeedFrame {
front_left:float;
front_right:float;
back_left:float;
back_right:float;
}
struct DamperPositionFrame {
front_left:float;
front_right:float;
back_left:float;
back_right:float;
}
struct CANBusMessage {
id:uint32;
rtr:bool;
data_len:uint32;
data:[uint8:8];
}
table Frame {
// System information
time:Timestamp;
clocks:Nanos (required);
// GPS Data
gps_frame:GPSFrame;
// IMU Data
imu_frame:IMUFrame;
// Wheel Speed Data
wheel_frame:WheelSpeedFrame;
// DamperFrame
damper_frame:DamperPositionFrame;
// CAN Bus msgs
can_bus:[CANBusMessage];
}
root_type Frame;