blob: 5abb488dab9721aeaa35f9beda341ead135d2086 [file] [log] [blame]
Comran Morshede9b12922015-11-04 19:46:48 +00001package bot3.control_loops;
2
3import "aos/common/controls/control_loops.q";
4
5queue_group Rollers {
6 implements aos.control_loops.ControlLoop;
7
8 message Goal {
9 // -1 = back intake, 1 = front intake, all else = stationary.
10 int16_t intake;
11 // -1 = backwards, 1 = forwards, all else = stationary.
12 int16_t low_spit;
13 // Whether we want the human player load function.
14 bool human_player;
15 };
16
17 message Position {};
18
19 message Output {
20 // Positive voltage = intaking, Negative = spitting.
21 double front_intake_voltage;
22 double back_intake_voltage;
23 // Voltage for the low goal rollers.
24 // Positive voltage = ball towards back, Negative = ball towards front.
25 double low_goal_voltage;
26
27 // Whether the front and back intake pistons are extended.
28 bool front_extended;
29 bool back_extended;
30 };
31
32 message Status {};
33
34 queue Goal goal;
35 queue Position position;
36 queue Output output;
37 queue Status status;
38};
39
40queue_group Rollers rollers;