Comran Morshed | 2a97bc8 | 2016-01-16 17:27:01 +0000 | [diff] [blame^] | 1 | package y2016.control_loops; |
| 2 | |
| 3 | import "aos/common/controls/control_loops.q"; |
| 4 | import "frc971/control_loops/control_loops.q"; |
| 5 | |
| 6 | queue_group ShooterQueue { |
| 7 | implements aos.control_loops.ControlLoop; |
| 8 | |
| 9 | message Goal { |
| 10 | // Goal velocity in rad/sec |
| 11 | double velocity; |
| 12 | }; |
| 13 | |
| 14 | message Status { |
| 15 | // True if the shooter is up to speed. |
| 16 | bool ready; |
| 17 | // The average velocity over the last 0.1 seconds. |
| 18 | double average_velocity; |
| 19 | }; |
| 20 | |
| 21 | message Position { |
| 22 | // The angle of the shooter wheel measured in rad/sec. |
| 23 | double position; |
| 24 | }; |
| 25 | |
| 26 | queue Goal goal; |
| 27 | queue Position position; |
| 28 | queue aos.control_loops.Output output; |
| 29 | queue Status status; |
| 30 | }; |
| 31 | |
| 32 | queue_group ShooterQueue shooter_queue; |