blob: 5931d57667a5126a4f78c1e08da7c52ad8c80e7a [file] [log] [blame]
Alex Perrycb7da4b2019-08-28 19:35:56 -07001namespace y2016.control_loops.shooter;
2
3// All angles are in radians, and angular velocities are in radians/second.
4// For all angular velocities, positive is shooting the ball out of the robot.
5table Goal {
6 // Angular velocity goals in radians/second.
Ravago Jonesfb6a7a52020-11-14 13:47:46 -08007 angular_velocity:double (id: 0);
Alex Perrycb7da4b2019-08-28 19:35:56 -07008
Ravago Jonesfb6a7a52020-11-14 13:47:46 -08009 clamp_open:bool (id: 1); // True to release our clamp on the ball.
Alex Perrycb7da4b2019-08-28 19:35:56 -070010 // True to push the ball into the shooter.
11 // If we are in the act of shooting with a goal velocity != 0, wait until it
12 // is up to speed, push the ball into the shooter, and then wait until it
13 // spins up and down before letting the piston be released.
Ravago Jonesfb6a7a52020-11-14 13:47:46 -080014 push_to_shooter:bool (id: 2);
Alex Perrycb7da4b2019-08-28 19:35:56 -070015
16 // Forces the lights on.
Ravago Jonesfb6a7a52020-11-14 13:47:46 -080017 force_lights_on:bool (id: 3);
Alex Perrycb7da4b2019-08-28 19:35:56 -070018
19 // If true, the robot is shooting forwards.
Ravago Jonesfb6a7a52020-11-14 13:47:46 -080020 shooting_forwards:bool (id: 4);
Alex Perrycb7da4b2019-08-28 19:35:56 -070021}
22
23root_type Goal;