Comran Morshed | fab3200 | 2015-08-30 14:48:54 +0000 | [diff] [blame] | 1 | package bot3.control_loops; |
| 2 | |
| 3 | import "aos/common/controls/control_loops.q"; |
| 4 | |
| 5 | queue_group IntakeQueue { |
| 6 | implements aos.control_loops.ControlLoop; |
| 7 | |
| 8 | message Goal { |
| 9 | // Positive = suck, negative = spit, zero = stationary. |
| 10 | int16_t movement; |
| 11 | }; |
| 12 | |
| 13 | message Position {}; |
| 14 | |
| 15 | message Output { |
| 16 | double intake; |
| 17 | }; |
| 18 | |
| 19 | message Status {}; |
| 20 | |
| 21 | queue Goal goal; |
| 22 | queue Position position; |
| 23 | queue Output output; |
| 24 | queue Status status; |
| 25 | }; |
| 26 | |
| 27 | queue_group IntakeQueue intake_queue; |