blob: 77e7c8ddc2a6e17ff9e2913a273fbc6c31c94d9e [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
7 grab_piece:bool;
8
9 // 0 = ball mode
10 // 1 = disk mode
11
12 gamepiece_mode:int;
13}
14
15table Goal {
16 // Meters, 0 = lowest position - mechanical hard stop,
17 // positive = upward
18 elevator:frc971.control_loops.StaticZeroingSingleDOFProfiledSubsystemGoal;
19 // 0 = linkage on the sprocket is pointing straight up,
20 // positive = forward
21 intake:frc971.control_loops.StaticZeroingSingleDOFProfiledSubsystemGoal;
22 // 0 = Straight up parallel to elevator
23 // Positive rotates toward intake from 0
24 wrist:frc971.control_loops.StaticZeroingSingleDOFProfiledSubsystemGoal;
25
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.
29 stilts:frc971.control_loops.StaticZeroingSingleDOFProfiledSubsystemGoal;
30
31 // Positive is rollers intaking inward.
32 roller_voltage:float;
33
34 suction:SuctionGoal;
35}
36
37root_type Goal;