blob: 98fe483cb660c76c8aba13d72939f73be6d690b8 [file] [log] [blame]
Alex Perrycb7da4b2019-08-28 19:35:56 -07001include "frc971/control_loops/control_loops.fbs";
2include "frc971/control_loops/profiled_subsystem.fbs";
3
4namespace y2019.control_loops.superstructure;
5
6table Status {
7 // All subsystems know their location.
Austin Schuhd7851b02020-11-14 13:46:27 -08008 zeroed:bool (id: 0);
Alex Perrycb7da4b2019-08-28 19:35:56 -07009
10 // If true, we have aborted. This is the or of all subsystem estops.
Austin Schuhd7851b02020-11-14 13:46:27 -080011 estopped:bool (id: 1);
Alex Perrycb7da4b2019-08-28 19:35:56 -070012
13 // Whether suction_pressure indicates cargo is held
Austin Schuhd7851b02020-11-14 13:46:27 -080014 has_piece:bool (id: 2);
Alex Perrycb7da4b2019-08-28 19:35:56 -070015
16 // Status of each subsystem.
Austin Schuhd7851b02020-11-14 13:46:27 -080017 elevator:frc971.control_loops.PotAndAbsoluteEncoderProfiledJointStatus (id: 3);
18 wrist:frc971.control_loops.PotAndAbsoluteEncoderProfiledJointStatus (id: 4);
19 intake:frc971.control_loops.AbsoluteEncoderProfiledJointStatus (id: 5);
20 stilts:frc971.control_loops.PotAndAbsoluteEncoderProfiledJointStatus (id: 6);
Alex Perrycb7da4b2019-08-28 19:35:56 -070021}
22
23root_type Status;