Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 1 | include "frc971/control_loops/profiled_subsystem.fbs"; |
| 2 | |
| 3 | namespace y2019.control_loops.superstructure; |
| 4 | |
| 5 | table 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 | |
| 15 | table 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 | |
| 37 | root_type Goal; |