Austin Schuh | 994d42c | 2015-03-01 00:02:17 -0800 | [diff] [blame] | 1 | package frc971.actors; |
| 2 | |
| 3 | import "aos/common/actions/actions.q"; |
| 4 | |
| 5 | // Parameters to send with start. |
| 6 | // This action picks a right side up can from the claw. |
| 7 | // It starts by lifting up, then moving the arm out, then lifting the can out of |
| 8 | // the claw, and then ends with the can inside the bot. |
| 9 | struct CanPickupParams { |
| 10 | // Angle to move the claw to when picking up. |
| 11 | double pickup_angle; |
| 12 | // Height to move the elevator to when picking up. |
| 13 | double pickup_height; |
| 14 | // Height to move the elevator to to lift the can out of the claw. |
| 15 | double lift_height; |
| 16 | |
| 17 | // End position with the can. |
| 18 | double end_height; |
| 19 | double end_angle; |
| 20 | }; |
| 21 | |
| 22 | queue_group CanPickupActionQueueGroup { |
| 23 | implements aos.common.actions.ActionQueueGroup; |
| 24 | |
| 25 | message Goal { |
| 26 | uint32_t run; |
| 27 | CanPickupParams params; |
| 28 | }; |
| 29 | |
| 30 | queue Goal goal; |
| 31 | queue aos.common.actions.Status status; |
| 32 | }; |
| 33 | |
| 34 | queue_group CanPickupActionQueueGroup can_pickup_action; |