blob: 3ada998c633e38e8a063ad28a99de4889ba7c100 [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).
Ravago Jonesfb6a7a52020-11-14 13:47:46 -08005 left_encoder:double (id: 0);
6 right_encoder:double (id: 1);
Alex Perrycb7da4b2019-08-28 19:35:56 -07007
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.
Ravago Jonesfb6a7a52020-11-14 13:47:46 -080010 left_speed:double (id: 2);
11 right_speed:double (id: 3);
Alex Perrycb7da4b2019-08-28 19:35:56 -070012
13 // Position of each drivetrain shifter, scaled from 0.0 to 1.0 where smaller
14 // is towards low gear.
Ravago Jonesfb6a7a52020-11-14 13:47:46 -080015 left_shifter_position:double (id: 4);
16 right_shifter_position:double (id: 5);
Alex Perrycb7da4b2019-08-28 19:35:56 -070017
18 // Raw analog voltages of each shifter hall effect for logging purposes.
Ravago Jonesfb6a7a52020-11-14 13:47:46 -080019 low_left_hall:double (id: 6);
20 high_left_hall:double (id: 7);
21 low_right_hall:double (id: 8);
22 high_right_hall:double (id: 9);
Alex Perrycb7da4b2019-08-28 19:35:56 -070023}
24
25root_type Position;