blob: 670351abde0ec68c44dc94de09910e4943633455 [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,
Maxwell Hendersonbf1bcec2023-03-05 18:00:20 -08007 INTAKE_CONE_UP = 1,
milind-u71da5392023-02-26 12:45:00 -08008 INTAKE_CUBE = 2,
9 INTAKE_LAST = 3,
10 SPIT = 4,
Maxwell Hendersonbf1bcec2023-03-05 18:00:20 -080011 INTAKE_CONE_DOWN = 5,
Maxwell Henderson5938a832023-02-23 09:33:15 -080012}
Maxwell Hendersonad312342023-01-10 12:07:47 -080013
14table Goal {
Nikita Narang27610fc2023-02-08 19:40:31 -080015 // Used to identify a position in the planned set of positions on the arm.
16 // Controls distal, proximal, and roll joints
17 arm_goal_position:uint32 (id: 0);
18
milind-u01bbcf22023-02-20 18:00:28 -080019 // Overrides the current path to go to the next path
20 trajectory_override:bool (id: 1);
21
22 wrist:frc971.control_loops.StaticZeroingSingleDOFProfiledSubsystemGoal (id: 2);
Nikita Narang27610fc2023-02-08 19:40:31 -080023
Maxwell Henderson5938a832023-02-23 09:33:15 -080024 roller_goal:RollerGoal (id: 3);
Maxwell Hendersonad312342023-01-10 12:07:47 -080025}
26
27
28
29root_type Goal;