Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 1 | namespace frc971.control_loops.drivetrain; |
| 2 | |
| 3 | table 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 | |
| 25 | root_type Position; |