blob: b1576ea46490cf6b9f9b3734521e921dd33a89d2 [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.
Austin Schuhd7851b02020-11-14 13:46:27 -08007 theta_finisher:double (id: 0);
Tyler Chatowcf413662020-02-09 14:36:36 -08008
9 // Kicker angle in radians of the slowest (lowest) wheel, positive is
10 // accelerating the ball toward the shooter.
Austin Schuhd7851b02020-11-14 13:46:27 -080011 theta_accelerator_left:double (id: 1);
12 theta_accelerator_right:double (id: 2);
Tyler Chatowcf413662020-02-09 14:36:36 -080013}
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).
Ravago Jones937587c2020-12-26 17:21:09 -080017 hood:frc971.AbsoluteAndAbsolutePosition (id: 0);
Sabina Davis6b61de32020-02-02 12:42:51 -080018
19 // Position of the intake. 0 when four-bar is vertical, positive extended.
Austin Schuhd7851b02020-11-14 13:46:27 -080020 intake_joint:frc971.AbsolutePosition (id: 1);
Tyler Chatow1879acc2020-02-01 13:26:48 -080021
22 // See goal for definition of 0
Austin Schuhd7851b02020-11-14 13:46:27 -080023 turret:frc971.PotAndAbsolutePosition (id: 2);
Tyler Chatowcf413662020-02-09 14:36:36 -080024
25 // Position of the kicker and flywheel
Austin Schuhd7851b02020-11-14 13:46:27 -080026 shooter:ShooterPosition (id: 3);
Sabina Davis5187f862020-02-09 13:16:51 -080027
28 // Position of the control panel, relative to start, positive counterclockwise from above.
Austin Schuhd7851b02020-11-14 13:46:27 -080029 control_panel:frc971.RelativePosition (id: 4);
Ravago Jonesf8b7bfe2021-10-09 16:25:29 -070030
31 // Value of the beambreak sensor detecting when
32 // a ball is just below the accelerator tower; true is a ball.
33 intake_beambreak_triggered:bool (id: 5);
Stephan Massaltd021f972020-01-05 20:41:23 -080034}
35
36root_type Position;