blob: 900c0368fedee72441b5362ef58450c23b023d36 [file] [log] [blame]
Alex Perrycb7da4b2019-08-28 19:35:56 -07001namespace frc971.control_loops.drivetrain;
2
3table Position {
4 // Relative position of each drivetrain side (in meters).
5 left_encoder:double;
6 right_encoder:double;
7
8 // The speed in m/s of each drivetrain side from the most recent encoder
9 // pulse, or 0 if there was no edge within the last 5ms.
10 left_speed:double;
11 right_speed:double;
12
13 // Position of each drivetrain shifter, scaled from 0.0 to 1.0 where smaller
14 // is towards low gear.
15 left_shifter_position:double;
16 right_shifter_position:double;
17
18 // Raw analog voltages of each shifter hall effect for logging purposes.
19 low_left_hall:double;
20 high_left_hall:double;
21 low_right_hall:double;
22 high_right_hall:double;
23}
24
25root_type Position;