blob: 3de8f6895ad93f34486b07cae3bf4b4308f03502 [file] [log] [blame]
Sabina Davisb6b987d2017-10-22 20:50:21 -07001package y2017_bot3.control_loops;
2
3import "aos/common/controls/control_loops.q";
4import "frc971/control_loops/control_loops.q";
5
6queue_group SuperstructureQueue {
7 implements aos.control_loops.ControlLoop;
8
9 message Goal {
Sabina Davis58004392017-10-22 23:45:46 -070010 // Voltage from -12 to 12 to send to the rollers. Positive is front surface
11 // of the roller is moving down when gear is moving inwards.
Sabina Davisb6b987d2017-10-22 20:50:21 -070012 float voltage_rollers;
Sabina Davis58004392017-10-22 23:45:46 -070013 // State of finger pistons. True is out, false is in.
Sabina Davisb6b987d2017-10-22 20:50:21 -070014 bool fingers_out;
Sabina Davis58004392017-10-22 23:45:46 -070015 // Voltage from -12 to 12 sent to the hanger roller. Positive is front
16 // surface of the hanger is moving down.
Sabina Davisb6b987d2017-10-22 20:50:21 -070017 float hanger_voltage;
Sabina Davis58004392017-10-22 23:45:46 -070018 };
Sabina Davisb6b987d2017-10-22 20:50:21 -070019
20 message Status {
21 };
22
23 message Position {
24 };
25
26 message Output {
Sabina Davis58004392017-10-22 23:45:46 -070027 // see above
Sabina Davisb6b987d2017-10-22 20:50:21 -070028 float voltage_rollers;
29 bool fingers_out;
30 float hanger_voltage;
31 };
32
33 queue Goal goal;
34 queue Output output;
35 queue Status status;
36 queue Position position;
37};
38
39queue_group SuperstructureQueue superstructure_queue;
40