cm_telemetry/f1/
util.rs

1use binread::BinRead;
2
3use num::Num;
4
5#[derive(Debug, Default, BinRead)]
6pub struct Coordinates<T: Num + binread::BinRead<Args = ()>> {
7    pub x: T,
8    pub y: T,
9    pub z: T,
10}
11
12#[derive(Debug, Default, BinRead)]
13pub struct WheelValue<T: binread::BinRead<Args = ()>> {
14    pub rear_left: T,
15    pub rear_right: T,
16    pub front_left: T,
17    pub front_right: T,
18}
19
20#[derive(Debug, Default, BinRead)]
21pub struct FrontRearValue<T: Num + binread::BinRead<Args = ()>> {
22    pub front: T,
23    pub rear: T,
24}
25
26#[derive(Debug, Default, BinRead)]
27pub struct WingValue<T: binread::BinRead<Args = ()>> {
28    pub front_left: T,
29    pub front_right: T,
30    pub rear: T,
31}