blob: ee99f1c34f4756d865b72e78e2bd968201b9bff0 [file] [log] [blame]
Maxwell Hendersonad312342023-01-10 12:07:47 -08001include "frc971/control_loops/profiled_subsystem.fbs";
2
3namespace y2023.control_loops.superstructure;
4
Maxwell Henderson5938a832023-02-23 09:33:15 -08005enum RollerGoal: ubyte {
6 IDLE = 0,
milind-u71da5392023-02-26 12:45:00 -08007 INTAKE_CONE = 1,
8 INTAKE_CUBE = 2,
9 INTAKE_LAST = 3,
10 SPIT = 4,
Maxwell Henderson5938a832023-02-23 09:33:15 -080011}
Maxwell Hendersonad312342023-01-10 12:07:47 -080012
13table Goal {
Nikita Narang27610fc2023-02-08 19:40:31 -080014 // Used to identify a position in the planned set of positions on the arm.
15 // Controls distal, proximal, and roll joints
16 arm_goal_position:uint32 (id: 0);
17
milind-u01bbcf22023-02-20 18:00:28 -080018 // Overrides the current path to go to the next path
19 trajectory_override:bool (id: 1);
20
21 wrist:frc971.control_loops.StaticZeroingSingleDOFProfiledSubsystemGoal (id: 2);
Nikita Narang27610fc2023-02-08 19:40:31 -080022
Maxwell Henderson5938a832023-02-23 09:33:15 -080023 roller_goal:RollerGoal (id: 3);
Maxwell Hendersonad312342023-01-10 12:07:47 -080024}
25
26
27
28root_type Goal;