blob: 63f91c7983e47fe08b5dbcb34390fa58f29ec7e2 [file] [log] [blame]
Stephan Massaltd021f972020-01-05 20:41:23 -08001include "frc971/control_loops/control_loops.fbs";
2
3namespace y2020.control_loops.superstructure;
4
Tyler Chatowcf413662020-02-09 14:36:36 -08005table ShooterPosition {
6 // Flywheel angle in radians, positive is shooting.
7 theta_flywheel:double;
8
9 // Kicker angle in radians of the slowest (lowest) wheel, positive is
10 // accelerating the ball toward the shooter.
11 theta_kicker_left:double;
12 theta_kicker_right:double;
13}
14
Stephan Massaltd021f972020-01-05 20:41:23 -080015table Position {
Sabina Davis50ab36d2020-02-02 14:38:43 -080016 // Zero is at the horizontal, positive towards the front (radians).
Sabina Davis70d5e912020-01-31 21:10:37 -080017 hood:frc971.AbsolutePosition;
Sabina Davis6b61de32020-02-02 12:42:51 -080018
19 // Position of the intake. 0 when four-bar is vertical, positive extended.
20 intake_joint:frc971.AbsolutePosition;
Tyler Chatow1879acc2020-02-01 13:26:48 -080021
22 // See goal for definition of 0
23 turret:frc971.PotAndAbsolutePosition;
Tyler Chatowcf413662020-02-09 14:36:36 -080024
25 // Position of the kicker and flywheel
26 shooter:ShooterPosition;
Sabina Davis5187f862020-02-09 13:16:51 -080027
28 // Position of the control panel, relative to start, positive counterclockwise from above.
29 control_panel:frc971.RelativePosition;
Stephan Massaltd021f972020-01-05 20:41:23 -080030}
31
32root_type Position;