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 |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame] | 7 | grab_piece:bool (id: 0); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 8 | |
| 9 | // 0 = ball mode |
| 10 | // 1 = disk mode |
| 11 | |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame] | 12 | gamepiece_mode:int (id: 1); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 13 | } |
| 14 | |
| 15 | table Goal { |
| 16 | // Meters, 0 = lowest position - mechanical hard stop, |
| 17 | // positive = upward |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame] | 18 | elevator:frc971.control_loops.StaticZeroingSingleDOFProfiledSubsystemGoal (id: 0); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 19 | // 0 = linkage on the sprocket is pointing straight up, |
| 20 | // positive = forward |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame] | 21 | intake:frc971.control_loops.StaticZeroingSingleDOFProfiledSubsystemGoal (id: 1); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 22 | // 0 = Straight up parallel to elevator |
| 23 | // Positive rotates toward intake from 0 |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame] | 24 | wrist:frc971.control_loops.StaticZeroingSingleDOFProfiledSubsystemGoal (id: 2); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 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. |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame] | 29 | stilts:frc971.control_loops.StaticZeroingSingleDOFProfiledSubsystemGoal (id: 3); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 30 | |
| 31 | // Positive is rollers intaking inward. |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame] | 32 | roller_voltage:float (id: 4); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 33 | |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame] | 34 | suction:SuctionGoal (id: 5); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | root_type Goal; |