Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 1 | include "frc971/control_loops/control_loops.fbs"; |
| 2 | include "frc971/control_loops/profiled_subsystem.fbs"; |
| 3 | |
| 4 | namespace y2019.control_loops.superstructure; |
| 5 | |
| 6 | table Status { |
| 7 | // All subsystems know their location. |
| 8 | zeroed:bool; |
| 9 | |
| 10 | // If true, we have aborted. This is the or of all subsystem estops. |
| 11 | estopped:bool; |
| 12 | |
| 13 | // Whether suction_pressure indicates cargo is held |
| 14 | has_piece:bool; |
| 15 | |
| 16 | // Status of each subsystem. |
| 17 | elevator:frc971.control_loops.PotAndAbsoluteEncoderProfiledJointStatus; |
| 18 | wrist:frc971.control_loops.PotAndAbsoluteEncoderProfiledJointStatus; |
| 19 | intake:frc971.control_loops.AbsoluteEncoderProfiledJointStatus; |
| 20 | stilts:frc971.control_loops.PotAndAbsoluteEncoderProfiledJointStatus; |
| 21 | } |
| 22 | |
| 23 | root_type Status; |