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. |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame^] | 7 | theta_finisher:double (id: 0); |
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. |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame^] | 11 | theta_accelerator_left:double (id: 1); |
| 12 | theta_accelerator_right:double (id: 2); |
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). |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame^] | 17 | hood:frc971.AbsolutePosition (id: 0); |
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. |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame^] | 20 | intake_joint:frc971.AbsolutePosition (id: 1); |
Tyler Chatow | 1879acc | 2020-02-01 13:26:48 -0800 | [diff] [blame] | 21 | |
| 22 | // See goal for definition of 0 |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame^] | 23 | turret:frc971.PotAndAbsolutePosition (id: 2); |
Tyler Chatow | cf41366 | 2020-02-09 14:36:36 -0800 | [diff] [blame] | 24 | |
| 25 | // Position of the kicker and flywheel |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame^] | 26 | shooter:ShooterPosition (id: 3); |
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. |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame^] | 29 | control_panel:frc971.RelativePosition (id: 4); |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 30 | } |
| 31 | |
| 32 | root_type Position; |