Daniel Petti | dfc90ba | 2015-02-17 21:42:15 -0800 | [diff] [blame] | 1 | package frc971.actors; |
| 2 | |
| 3 | import "aos/common/actions/actions.q"; |
| 4 | |
Austin Schuh | dc17101 | 2015-02-22 21:36:55 -0800 | [diff] [blame^] | 5 | // Parameters to send with start. |
| 6 | struct StackParams { |
| 7 | // Angle to move the claw to when picking up. |
| 8 | double claw_out_angle; |
| 9 | }; |
| 10 | |
Daniel Petti | dfc90ba | 2015-02-17 21:42:15 -0800 | [diff] [blame] | 11 | queue_group StackActionQueueGroup { |
| 12 | implements aos.common.actions.ActionQueueGroup; |
| 13 | |
| 14 | message Goal { |
| 15 | uint32_t run; |
Austin Schuh | dc17101 | 2015-02-22 21:36:55 -0800 | [diff] [blame^] | 16 | StackParams params; |
Daniel Petti | dfc90ba | 2015-02-17 21:42:15 -0800 | [diff] [blame] | 17 | }; |
| 18 | |
| 19 | queue Goal goal; |
| 20 | queue aos.common.actions.Status status; |
| 21 | }; |
| 22 | |
| 23 | queue_group StackActionQueueGroup stack_action; |