blob: 95e0b3fb15c561f2f5192f822408d30a64284ecb [file] [log] [blame]
Austin Schuh994d42c2015-03-01 00:02:17 -08001package frc971.actors;
2
3import "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.
9struct 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
22queue_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
34queue_group CanPickupActionQueueGroup can_pickup_action;