blob: b1facba1a365b7ae5a4c81d6bf1d0d7162910d88 [file] [log] [blame]
Niko Sohmers3860f8a2024-01-12 21:05:19 -08001include "frc971/control_loops/control_loops.fbs";
Niko Sohmers58e64c82024-01-14 12:49:54 -08002include "frc971/control_loops/profiled_subsystem.fbs";
Niko Sohmers3860f8a2024-01-12 21:05:19 -08003
4namespace y2024.control_loops.superstructure;
5
6table Position {
Niko Sohmers58e64c82024-01-14 12:49:54 -08007 // Values of the encoder and potentiometer at the intake pivot
Maxwell Henderson3d68e142024-02-25 09:58:11 -08008 // Zero is when the lowest extent of the lexan is level with the
9 // bellypan, positive is retracted inward.
Niko Sohmers74b0ad52024-02-03 18:00:31 -080010 intake_pivot:frc971.AbsolutePosition (id: 0);
Maxwell Hendersonbf04fb62024-01-19 17:56:07 -080011
12 // Values of the encoder and potentiometer at the turret
Maxwell Henderson3d68e142024-02-25 09:58:11 -080013 // Zero is facing backwards, positive is rotated counter-clockwise.
14 // I.e., zero is at approximately the loading position for getting
15 // the game piece from the extend into the catapult.
Maxwell Hendersonbf04fb62024-01-19 17:56:07 -080016 turret:frc971.PotAndAbsolutePosition (id: 1);
17
18 // Values of the encoder and potentiometer at the altitude
Filip Kujawaeab026a2024-02-14 20:07:39 -080019 // Zero is level with the ground, positive is raised upward.
Maxwell Hendersonbf04fb62024-01-19 17:56:07 -080020 altitude:frc971.PotAndAbsolutePosition (id: 2);
21
22 // Values of the encoder and potentiometer at the catapult
Maxwell Henderson3d68e142024-02-25 09:58:11 -080023 // Zero is when the note is fully seated in the catapult and the catapult
24 // arm is just touching the note. Positive is rotated counter-clockwise, to
25 // launch game piece.
Maxwell Hendersonbf04fb62024-01-19 17:56:07 -080026 catapult:frc971.PotAndAbsolutePosition (id: 3);
Niko Sohmers78f71352024-02-02 16:47:40 -080027
28 // True means there is a game piece in the transfer.
29 transfer_beambreak:bool (id: 4);
Filip Kujawa57507152024-01-31 20:09:25 -080030
31 // Values of the encoder and potentiometer at the climber.
Maxwell Henderson3d68e142024-02-25 09:58:11 -080032 // Zero is fully extended, with top of the highest slider aligned with the
33 // caps on the tubes for the climber.
34 // Positive is more extended.
Filip Kujawa57507152024-01-31 20:09:25 -080035 climber:frc971.PotAndAbsolutePosition (id: 5);
Maxwell Hendersoned970292024-02-02 20:08:08 -080036
37 // True if there is a game piece in the catapult
Maxwell Henderson461a8a42024-02-23 17:07:39 -080038 catapult_beambreak:bool (id: 6);
Filip Kujawa102a9b22024-02-18 09:40:23 -080039
40 // Values of the encoder and potentiometer at the extend motor
Maxwell Henderson3d68e142024-02-25 09:58:11 -080041 // Zero is fully retracted, positive is extended upward.
Filip Kujawa102a9b22024-02-18 09:40:23 -080042 extend:frc971.PotAndAbsolutePosition (id: 7);
43
44 // True means there is a game piece in the extend.
45 extend_beambreak:bool (id: 8);
Niko Sohmers3860f8a2024-01-12 21:05:19 -080046}
47
48root_type Position;