Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 1 | include "frc971/control_loops/profiled_subsystem.fbs"; |
| 2 | |
| 3 | namespace y2023.control_loops.superstructure; |
| 4 | |
Maxwell Henderson | 5938a83 | 2023-02-23 09:33:15 -0800 | [diff] [blame] | 5 | enum RollerGoal: ubyte { |
| 6 | IDLE = 0, |
milind-u | 71da539 | 2023-02-26 12:45:00 -0800 | [diff] [blame^] | 7 | INTAKE_CONE = 1, |
| 8 | INTAKE_CUBE = 2, |
| 9 | INTAKE_LAST = 3, |
| 10 | SPIT = 4, |
Maxwell Henderson | 5938a83 | 2023-02-23 09:33:15 -0800 | [diff] [blame] | 11 | } |
Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 12 | |
| 13 | table Goal { |
Nikita Narang | 27610fc | 2023-02-08 19:40:31 -0800 | [diff] [blame] | 14 | // 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-u | 01bbcf2 | 2023-02-20 18:00:28 -0800 | [diff] [blame] | 18 | // 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 Narang | 27610fc | 2023-02-08 19:40:31 -0800 | [diff] [blame] | 22 | |
Maxwell Henderson | 5938a83 | 2023-02-23 09:33:15 -0800 | [diff] [blame] | 23 | roller_goal:RollerGoal (id: 3); |
Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 24 | } |
| 25 | |
| 26 | |
| 27 | |
| 28 | root_type Goal; |