Austin Schuh | 6d1ee0c | 2015-11-21 14:36:04 -0800 | [diff] [blame] | 1 | package y2015_bot3.control_loops; |
Comran Morshed | fab3200 | 2015-08-30 14:48:54 +0000 | [diff] [blame] | 2 | |
| 3 | import "aos/common/controls/control_loops.q"; |
| 4 | |
| 5 | queue_group IntakeQueue { |
| 6 | implements aos.control_loops.ControlLoop; |
| 7 | |
| 8 | message Goal { |
Jasmine Zhou | 7b18415 | 2015-09-12 16:21:39 -0700 | [diff] [blame] | 9 | // Units: volts |
Jasmine Zhou | da77c5f | 2015-09-12 15:16:10 -0700 | [diff] [blame] | 10 | double movement; |
| 11 | |
| 12 | bool claw_closed; |
Comran Morshed | fab3200 | 2015-08-30 14:48:54 +0000 | [diff] [blame] | 13 | }; |
| 14 | |
| 15 | message Position {}; |
| 16 | |
| 17 | message Output { |
Jasmine Zhou | da77c5f | 2015-09-12 15:16:10 -0700 | [diff] [blame] | 18 | // Positive or negative, depending on whether we're sucking or spitting. |
Comran Morshed | fab3200 | 2015-08-30 14:48:54 +0000 | [diff] [blame] | 19 | double intake; |
Jasmine Zhou | da77c5f | 2015-09-12 15:16:10 -0700 | [diff] [blame] | 20 | |
| 21 | bool claw_closed; |
Comran Morshed | fab3200 | 2015-08-30 14:48:54 +0000 | [diff] [blame] | 22 | }; |
| 23 | |
| 24 | message Status {}; |
| 25 | |
| 26 | queue Goal goal; |
| 27 | queue Position position; |
| 28 | queue Output output; |
| 29 | queue Status status; |
| 30 | }; |
| 31 | |
| 32 | queue_group IntakeQueue intake_queue; |