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, |
| 7 | INTAKE = 1, |
| 8 | SPIT = 2, |
| 9 | } |
Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 10 | |
| 11 | table Goal { |
Nikita Narang | 27610fc | 2023-02-08 19:40:31 -0800 | [diff] [blame] | 12 | // Used to identify a position in the planned set of positions on the arm. |
| 13 | // Controls distal, proximal, and roll joints |
| 14 | arm_goal_position:uint32 (id: 0); |
| 15 | |
milind-u | 01bbcf2 | 2023-02-20 18:00:28 -0800 | [diff] [blame] | 16 | // Overrides the current path to go to the next path |
| 17 | trajectory_override:bool (id: 1); |
| 18 | |
| 19 | wrist:frc971.control_loops.StaticZeroingSingleDOFProfiledSubsystemGoal (id: 2); |
Nikita Narang | 27610fc | 2023-02-08 19:40:31 -0800 | [diff] [blame] | 20 | |
Maxwell Henderson | 5938a83 | 2023-02-23 09:33:15 -0800 | [diff] [blame^] | 21 | roller_goal:RollerGoal (id: 3); |
Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 22 | } |
| 23 | |
| 24 | |
| 25 | |
| 26 | root_type Goal; |