blob: dbef25ac482641892714d47b071369cdc20fb8c3 [file] [log] [blame]
Alex Perrycb7da4b2019-08-28 19:35:56 -07001include "frc971/control_loops/control_loops.fbs";
2
3namespace y2018.control_loops.superstructure;
4
5table IntakeGoal {
Austin Schuhd7851b02020-11-14 13:46:27 -08006 roller_voltage:double (id: 0);
Alex Perrycb7da4b2019-08-28 19:35:56 -07007
8 // Goal angle in radians of the intake.
9 // Zero radians is where the intake is pointing straight out, with positive
10 // radians inward towards the cube.
Austin Schuhd7851b02020-11-14 13:46:27 -080011 left_intake_angle:double (id: 1);
12 right_intake_angle:double (id: 2);
Alex Perrycb7da4b2019-08-28 19:35:56 -070013}
14
15table Goal {
Austin Schuhd7851b02020-11-14 13:46:27 -080016 intake:IntakeGoal (id: 0);
Alex Perrycb7da4b2019-08-28 19:35:56 -070017
18 // Used to identiy a position in the planned set of positions on the arm.
Austin Schuhd7851b02020-11-14 13:46:27 -080019 arm_goal_position:uint32 (id: 1);
Alex Perrycb7da4b2019-08-28 19:35:56 -070020 // If true, start the grab box sequence.
Austin Schuhd7851b02020-11-14 13:46:27 -080021 grab_box:bool (id: 2);
Alex Perrycb7da4b2019-08-28 19:35:56 -070022
Austin Schuhd7851b02020-11-14 13:46:27 -080023 open_claw:bool (id: 3);
24 close_claw:bool (id: 4);
Alex Perrycb7da4b2019-08-28 19:35:56 -070025
Austin Schuhd7851b02020-11-14 13:46:27 -080026 deploy_fork:bool (id: 5);
Alex Perrycb7da4b2019-08-28 19:35:56 -070027
Austin Schuhd7851b02020-11-14 13:46:27 -080028 hook_release:bool (id: 6);
Alex Perrycb7da4b2019-08-28 19:35:56 -070029
Austin Schuhd7851b02020-11-14 13:46:27 -080030 voltage_winch:double (id: 7);
Alex Perrycb7da4b2019-08-28 19:35:56 -070031
Austin Schuhd7851b02020-11-14 13:46:27 -080032 open_threshold:double (id: 8);
Alex Perrycb7da4b2019-08-28 19:35:56 -070033
Austin Schuhd7851b02020-11-14 13:46:27 -080034 disable_box_correct:bool (id: 9);
Alex Perrycb7da4b2019-08-28 19:35:56 -070035
Austin Schuhd7851b02020-11-14 13:46:27 -080036 trajectory_override:bool (id: 10);
Alex Perrycb7da4b2019-08-28 19:35:56 -070037}
38
39root_type Goal;