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. |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame^] | 8 | zeroed:bool (id: 0); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 9 | |
| 10 | // If true, we have aborted. This is the or of all subsystem estops. |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame^] | 11 | estopped:bool (id: 1); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 12 | |
| 13 | // Whether suction_pressure indicates cargo is held |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame^] | 14 | has_piece:bool (id: 2); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 15 | |
| 16 | // Status of each subsystem. |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame^] | 17 | 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 Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 21 | } |
| 22 | |
| 23 | root_type Status; |