Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 1 | include "frc971/control_loops/control_loops.fbs"; |
| 2 | include "frc971/control_loops/profiled_subsystem.fbs"; |
| 3 | |
| 4 | namespace y2020.control_loops.superstructure; |
| 5 | |
Tyler Chatow | cf41366 | 2020-02-09 14:36:36 -0800 | [diff] [blame] | 6 | table ShooterSegmentStatus { |
| 7 | // The current average velocity in radians/second over the last kHistoryLength |
| 8 | // in shooter.h |
| 9 | avg_angular_velocity:double; |
| 10 | |
| 11 | // The current instantaneous filtered velocity in radians/second. |
| 12 | angular_velocity:double; |
| 13 | |
| 14 | // The target speed selected by the lookup table or from manual override |
| 15 | // Can be compared to velocity to determine if ready. |
| 16 | angular_velocity_goal:double; |
| 17 | } |
| 18 | |
| 19 | table ShooterStatus { |
| 20 | // The final wheel shooting the ball |
| 21 | flywheel:ShooterSegmentStatus; |
| 22 | |
| 23 | // The subsystem to accelerate the ball before the flywheel |
| 24 | // Velocity is the slowest (lowest) wheel |
| 25 | kicker_left:ShooterSegmentStatus; |
| 26 | kicker_right:ShooterSegmentStatus; |
| 27 | } |
| 28 | |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 29 | table Status { |
| 30 | // All subsystems know their location. |
| 31 | zeroed:bool; |
| 32 | |
| 33 | // If true, we have aborted. This is the or of all subsystem estops. |
| 34 | estopped:bool; |
| 35 | |
Sabina Davis | 70d5e91 | 2020-01-31 21:10:37 -0800 | [diff] [blame] | 36 | //Subsystem status. |
| 37 | hood:frc971.control_loops.AbsoluteEncoderProfiledJointStatus; |
Sabina Davis | 6b61de3 | 2020-02-02 12:42:51 -0800 | [diff] [blame] | 38 | intake:frc971.control_loops.AbsoluteEncoderProfiledJointStatus; |
Tyler Chatow | 1879acc | 2020-02-01 13:26:48 -0800 | [diff] [blame] | 39 | turret:frc971.control_loops.PotAndAbsoluteEncoderProfiledJointStatus; |
Tyler Chatow | cf41366 | 2020-02-09 14:36:36 -0800 | [diff] [blame] | 40 | |
| 41 | // Shooter subsystem status. |
| 42 | shooter:ShooterStatus; |
Stephan Massalt | d021f97 | 2020-01-05 20:41:23 -0800 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | root_type Status; |