Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame^] | 1 | namespace y2016.control_loops.shooter; |
| 2 | |
| 3 | table ShooterSideStatus { |
| 4 | // True if the shooter side is up to speed and stable. |
| 5 | ready:bool; |
| 6 | // The current average velocity in radians/second. |
| 7 | avg_angular_velocity:double; |
| 8 | // The current instantaneous filtered velocity in radians/second. |
| 9 | angular_velocity:double; |
| 10 | } |
| 11 | |
| 12 | table Status { |
| 13 | // Left side status. |
| 14 | left:ShooterSideStatus; |
| 15 | // Right side status. |
| 16 | right:ShooterSideStatus; |
| 17 | |
| 18 | // True if the shooter is ready. It is better to compare the velocities |
| 19 | // directly so there isn't confusion on if the goal is up to date. |
| 20 | ready:bool; |
| 21 | |
| 22 | // The number of shots that have been fired since the start of the shooter |
| 23 | // control loop. |
| 24 | shots:uint; |
| 25 | } |
| 26 | |
| 27 | root_type Status; |