Brian Silverman | d4417aa | 2014-01-18 12:45:12 -0800 | [diff] [blame^] | 1 | package frc971.control_loops; |
| 2 | |
| 3 | import "aos/common/control_loop/control_looops.q"; |
| 4 | |
| 5 | queue_group ShooterLoop { |
| 6 | implements aos.control_loops.ControlLoop; |
| 7 | |
| 8 | message Goal { |
| 9 | // The energy to load to in joules. |
| 10 | double energy; |
| 11 | // Shoots as soon as this is true. |
| 12 | bool shoot; |
| 13 | }; |
| 14 | message Position { |
| 15 | bool back_hall_effect; |
| 16 | // In meters, out is positive. |
| 17 | double position; |
| 18 | double back_calibration; |
| 19 | }; |
| 20 | message Status { |
| 21 | // Whether it's ready to shoot immediately or not. |
| 22 | bool ready; |
| 23 | // How many times we've shot. |
| 24 | int shots; |
| 25 | }; |
| 26 | |
| 27 | queue Goal goal; |
| 28 | queue Position position; |
| 29 | queue aos.control_loops.Output output; |
| 30 | queue Status status; |
| 31 | }; |
| 32 | |
| 33 | queue_group ShooterLoop shooter; |