blob: 93c31cdb38f7728a545aeb8ee059cd71b05845db [file] [log] [blame]
Alex Perrycb7da4b2019-08-28 19:35:56 -07001include "frc971/control_loops/profiled_subsystem.fbs";
2
3namespace y2019.control_loops.superstructure;
4
5table SuctionGoal {
6 // True = apply suction
Austin Schuhd7851b02020-11-14 13:46:27 -08007 grab_piece:bool (id: 0);
Alex Perrycb7da4b2019-08-28 19:35:56 -07008
9 // 0 = ball mode
10 // 1 = disk mode
11
Austin Schuhd7851b02020-11-14 13:46:27 -080012 gamepiece_mode:int (id: 1);
Alex Perrycb7da4b2019-08-28 19:35:56 -070013}
14
15table Goal {
16 // Meters, 0 = lowest position - mechanical hard stop,
17 // positive = upward
Austin Schuhd7851b02020-11-14 13:46:27 -080018 elevator:frc971.control_loops.StaticZeroingSingleDOFProfiledSubsystemGoal (id: 0);
Alex Perrycb7da4b2019-08-28 19:35:56 -070019 // 0 = linkage on the sprocket is pointing straight up,
20 // positive = forward
Austin Schuhd7851b02020-11-14 13:46:27 -080021 intake:frc971.control_loops.StaticZeroingSingleDOFProfiledSubsystemGoal (id: 1);
Alex Perrycb7da4b2019-08-28 19:35:56 -070022 // 0 = Straight up parallel to elevator
23 // Positive rotates toward intake from 0
Austin Schuhd7851b02020-11-14 13:46:27 -080024 wrist:frc971.control_loops.StaticZeroingSingleDOFProfiledSubsystemGoal (id: 2);
Alex Perrycb7da4b2019-08-28 19:35:56 -070025
26 // Distance stilts extended out of the bottom of the robot. Positive = down.
27 // 0 is the height such that the bottom of the stilts is tangent to the
28 // bottom of the middle wheels.
Austin Schuhd7851b02020-11-14 13:46:27 -080029 stilts:frc971.control_loops.StaticZeroingSingleDOFProfiledSubsystemGoal (id: 3);
Alex Perrycb7da4b2019-08-28 19:35:56 -070030
31 // Positive is rollers intaking inward.
Austin Schuhd7851b02020-11-14 13:46:27 -080032 roller_voltage:float (id: 4);
Alex Perrycb7da4b2019-08-28 19:35:56 -070033
Austin Schuhd7851b02020-11-14 13:46:27 -080034 suction:SuctionGoal (id: 5);
Alex Perrycb7da4b2019-08-28 19:35:56 -070035}
36
37root_type Goal;