Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 1 | include "frc971/control_loops/control_loops.fbs"; |
| 2 | |
| 3 | namespace y2020.control_loops.superstructure; |
| 4 | |
Tyler Chatow | cf41366 | 2020-02-09 14:36:36 -0800 | [diff] [blame] | 5 | table ShooterPosition { |
| 6 | // Flywheel angle in radians, positive is shooting. |
Sabina Davis | edf8947 | 2020-02-17 15:27:37 -0800 | [diff] [blame^] | 7 | theta_finisher:double; |
Tyler Chatow | cf41366 | 2020-02-09 14:36:36 -0800 | [diff] [blame] | 8 | |
| 9 | // Kicker angle in radians of the slowest (lowest) wheel, positive is |
| 10 | // accelerating the ball toward the shooter. |
Sabina Davis | edf8947 | 2020-02-17 15:27:37 -0800 | [diff] [blame^] | 11 | theta_accelerator_left:double; |
| 12 | theta_accelerator_right:double; |
Tyler Chatow | cf41366 | 2020-02-09 14:36:36 -0800 | [diff] [blame] | 13 | } |
| 14 | |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 15 | table Position { |
Sabina Davis | 50ab36d | 2020-02-02 14:38:43 -0800 | [diff] [blame] | 16 | // Zero is at the horizontal, positive towards the front (radians). |
Sabina Davis | 70d5e91 | 2020-01-31 21:10:37 -0800 | [diff] [blame] | 17 | hood:frc971.AbsolutePosition; |
Sabina Davis | 6b61de3 | 2020-02-02 12:42:51 -0800 | [diff] [blame] | 18 | |
| 19 | // Position of the intake. 0 when four-bar is vertical, positive extended. |
| 20 | intake_joint:frc971.AbsolutePosition; |
Tyler Chatow | 1879acc | 2020-02-01 13:26:48 -0800 | [diff] [blame] | 21 | |
| 22 | // See goal for definition of 0 |
| 23 | turret:frc971.PotAndAbsolutePosition; |
Tyler Chatow | cf41366 | 2020-02-09 14:36:36 -0800 | [diff] [blame] | 24 | |
| 25 | // Position of the kicker and flywheel |
| 26 | shooter:ShooterPosition; |
Sabina Davis | 5187f86 | 2020-02-09 13:16:51 -0800 | [diff] [blame] | 27 | |
| 28 | // Position of the control panel, relative to start, positive counterclockwise from above. |
| 29 | control_panel:frc971.RelativePosition; |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | root_type Position; |