Austin Schuh | 88af085 | 2016-12-04 20:31:32 -0800 | [diff] [blame] | 1 | package y2015.actors; |
Austin Schuh | 6ab08b8 | 2015-02-22 21:41:05 -0800 | [diff] [blame] | 2 | |
| 3 | import "aos/common/actions/actions.q"; |
| 4 | |
| 5 | // Parameters to send with start. |
| 6 | struct PickupParams { |
| 7 | // Angle to pull in at the top. |
| 8 | double pickup_angle; |
| 9 | // Angle to start sucking in above. |
| 10 | double suck_angle; |
| 11 | // Angle to finish sucking at. |
| 12 | double suck_angle_finish; |
| 13 | // Angle to go to once we get to the top to finish pulling in. |
| 14 | double pickup_finish_angle; |
| 15 | // Power to pull the bin in at the top. |
| 16 | double intake_voltage; |
| 17 | // Time to pull the bin in for. |
| 18 | double intake_time; |
| 19 | }; |
| 20 | |
| 21 | queue_group PickupActionQueueGroup { |
| 22 | implements aos.common.actions.ActionQueueGroup; |
| 23 | |
| 24 | message Goal { |
| 25 | uint32_t run; |
| 26 | PickupParams params; |
| 27 | }; |
| 28 | |
| 29 | queue Goal goal; |
| 30 | queue aos.common.actions.Status status; |
| 31 | }; |
| 32 | |
| 33 | queue_group PickupActionQueueGroup pickup_action; |