blob: 98134bdbf929aecf81fa8a97092d11e6457fc1c0 [file] [log] [blame]
Niko Sohmers3860f8a2024-01-12 21:05:19 -08001include "frc971/control_loops/control_loops.fbs";
2include "frc971/control_loops/profiled_subsystem.fbs";
3
4namespace y2024.control_loops.superstructure;
5
Niko Sohmers58e64c82024-01-14 12:49:54 -08006// Contains if intake is intaking
7enum IntakeRollerState : ubyte {
8 NONE = 0,
9 SPITTING = 1,
10 INTAKING = 2,
11}
12
Niko Sohmers3860f8a2024-01-12 21:05:19 -080013table Status {
14 // All subsystems know their location.
15 zeroed:bool (id: 0);
16
17 // If true, we have aborted. This is the or of all subsystem estops.
18 estopped:bool (id: 1);
Niko Sohmers58e64c82024-01-14 12:49:54 -080019
20 // State of the rollers
21 intake_roller_state:IntakeRollerState (id: 2);
22
23 // Estimated angle and angular velocitiy of the intake.
24 intake_pivot_state:frc971.control_loops.PotAndAbsoluteEncoderProfiledJointStatus (id: 3);
Niko Sohmers3860f8a2024-01-12 21:05:19 -080025}
26
27root_type Status;