blob: 2b505e166fcf1f69d7d5590efdcb341231755a10 [file] [log] [blame]
Brian Silvermand4417aa2014-01-18 12:45:12 -08001package frc971.control_loops;
2
3import "aos/common/control_loop/control_looops.q";
4
5queue_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
33queue_group ShooterLoop shooter;