blob: d6ca193b8abbb81051111bac5614b0b3c1d06dad [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
Filip Kujawaeab026a2024-02-14 20:07:39 -08008 // Zero is extended outwards and level, positive is retracted inward.
Niko Sohmers74b0ad52024-02-03 18:00:31 -08009 intake_pivot:frc971.AbsolutePosition (id: 0);
Maxwell Hendersonbf04fb62024-01-19 17:56:07 -080010
11 // Values of the encoder and potentiometer at the turret
Filip Kujawaeab026a2024-02-14 20:07:39 -080012 // Zero is facing forward, positive is rotated right.
Maxwell Hendersonbf04fb62024-01-19 17:56:07 -080013 turret:frc971.PotAndAbsolutePosition (id: 1);
14
15 // Values of the encoder and potentiometer at the altitude
Filip Kujawaeab026a2024-02-14 20:07:39 -080016 // Zero is level with the ground, positive is raised upward.
Maxwell Hendersonbf04fb62024-01-19 17:56:07 -080017 altitude:frc971.PotAndAbsolutePosition (id: 2);
18
19 // Values of the encoder and potentiometer at the catapult
Filip Kujawaeab026a2024-02-14 20:07:39 -080020 // Zero is edge of pivot plate parallel to edge of gusset.
21 // Positive is rotated counter-clockwise, to launch game piece.
Maxwell Hendersonbf04fb62024-01-19 17:56:07 -080022 catapult:frc971.PotAndAbsolutePosition (id: 3);
Niko Sohmers78f71352024-02-02 16:47:40 -080023
24 // True means there is a game piece in the transfer.
25 transfer_beambreak:bool (id: 4);
Filip Kujawa57507152024-01-31 20:09:25 -080026
27 // Values of the encoder and potentiometer at the climber.
28 // Zero is fully retracted, positive is extended upward.
29 climber:frc971.PotAndAbsolutePosition (id: 5);
Maxwell Hendersoned970292024-02-02 20:08:08 -080030
31 // True if there is a game piece in the catapult
32 catapult_beam_break:bool (id: 6);
Filip Kujawa102a9b22024-02-18 09:40:23 -080033
34 // Values of the encoder and potentiometer at the extend motor
35 // Zero is fully retracted, positive is extended outward.
36 extend:frc971.PotAndAbsolutePosition (id: 7);
37
38 // True means there is a game piece in the extend.
39 extend_beambreak:bool (id: 8);
Niko Sohmers3860f8a2024-01-12 21:05:19 -080040}
41
42root_type Position;