Niko Sohmers | 3860f8a | 2024-01-12 21:05:19 -0800 | [diff] [blame] | 1 | include "frc971/control_loops/control_loops.fbs"; |
Niko Sohmers | 58e64c8 | 2024-01-14 12:49:54 -0800 | [diff] [blame] | 2 | include "frc971/control_loops/profiled_subsystem.fbs"; |
Niko Sohmers | 3860f8a | 2024-01-12 21:05:19 -0800 | [diff] [blame] | 3 | |
| 4 | namespace y2024.control_loops.superstructure; |
| 5 | |
| 6 | table Position { |
Niko Sohmers | 58e64c8 | 2024-01-14 12:49:54 -0800 | [diff] [blame] | 7 | // Values of the encoder and potentiometer at the intake pivot |
| 8 | intake_pivot:frc971.PotAndAbsolutePosition (id: 0); |
Maxwell Henderson | bf04fb6 | 2024-01-19 17:56:07 -0800 | [diff] [blame] | 9 | |
| 10 | // Values of the encoder and potentiometer at the turret |
| 11 | turret:frc971.PotAndAbsolutePosition (id: 1); |
| 12 | |
| 13 | // Values of the encoder and potentiometer at the altitude |
| 14 | altitude:frc971.PotAndAbsolutePosition (id: 2); |
| 15 | |
| 16 | // Values of the encoder and potentiometer at the catapult |
| 17 | catapult:frc971.PotAndAbsolutePosition (id: 3); |
Niko Sohmers | 78f7135 | 2024-02-02 16:47:40 -0800 | [diff] [blame] | 18 | |
| 19 | // True means there is a game piece in the transfer. |
| 20 | transfer_beambreak:bool (id: 4); |
Filip Kujawa | 5750715 | 2024-01-31 20:09:25 -0800 | [diff] [blame] | 21 | |
| 22 | // Values of the encoder and potentiometer at the climber. |
| 23 | // Zero is fully retracted, positive is extended upward. |
| 24 | climber:frc971.PotAndAbsolutePosition (id: 5); |
Maxwell Henderson | ed97029 | 2024-02-02 20:08:08 -0800 | [diff] [blame^] | 25 | |
| 26 | // True if there is a game piece in the catapult |
| 27 | catapult_beam_break:bool (id: 6); |
Niko Sohmers | 3860f8a | 2024-01-12 21:05:19 -0800 | [diff] [blame] | 28 | } |
| 29 | |
| 30 | root_type Position; |