Niko Sohmers | 3860f8a | 2024-01-12 21:05:19 -0800 | [diff] [blame] | 1 | namespace y2024.control_loops.superstructure; |
| 2 | |
| 3 | table Output { |
Niko Sohmers | 58e64c8 | 2024-01-14 12:49:54 -0800 | [diff] [blame] | 4 | // Voltage of rollers on intake |
Maxwell Henderson | 3d68e14 | 2024-02-25 09:58:11 -0800 | [diff] [blame] | 5 | // Positive means intaking a game piece. |
Niko Sohmers | 58e64c8 | 2024-01-14 12:49:54 -0800 | [diff] [blame] | 6 | intake_roller_voltage:double (id: 0); |
| 7 | |
| 8 | // Voltage of intake pivot |
Filip Kujawa | eab026a | 2024-02-14 20:07:39 -0800 | [diff] [blame] | 9 | // Positive voltage causes pivot to retract. |
Niko Sohmers | 58e64c8 | 2024-01-14 12:49:54 -0800 | [diff] [blame] | 10 | intake_pivot_voltage:double (id: 1); |
Maxwell Henderson | bf04fb6 | 2024-01-19 17:56:07 -0800 | [diff] [blame] | 11 | |
| 12 | // Voltage of the turret |
Filip Kujawa | eab026a | 2024-02-14 20:07:39 -0800 | [diff] [blame] | 13 | // Positive voltage is for rotating the turret clockwise. |
Maxwell Henderson | bf04fb6 | 2024-01-19 17:56:07 -0800 | [diff] [blame] | 14 | turret_voltage: double (id: 2); |
| 15 | |
| 16 | // Voltage of the altitude |
Filip Kujawa | eab026a | 2024-02-14 20:07:39 -0800 | [diff] [blame] | 17 | // Positive voltage is for raising it upward. |
Maxwell Henderson | bf04fb6 | 2024-01-19 17:56:07 -0800 | [diff] [blame] | 18 | altitude_voltage: double (id: 3); |
| 19 | |
| 20 | // Voltage of the catapult |
Filip Kujawa | eab026a | 2024-02-14 20:07:39 -0800 | [diff] [blame] | 21 | // Positive voltage is for shooting the game piece, |
| 22 | // rotating the catapult counter-clockwise. |
Maxwell Henderson | bf04fb6 | 2024-01-19 17:56:07 -0800 | [diff] [blame] | 23 | catapult_voltage: double (id: 4); |
Niko Sohmers | 78f7135 | 2024-02-02 16:47:40 -0800 | [diff] [blame] | 24 | |
| 25 | // Voltage of transfer rollers |
| 26 | // Positive voltage is for transfering in |
| 27 | // Negative voltage is for transfering out |
| 28 | transfer_roller_voltage:double (id: 5); |
Filip Kujawa | 5750715 | 2024-01-31 20:09:25 -0800 | [diff] [blame] | 29 | |
| 30 | // Voltage of climber |
| 31 | // Positive voltage is for climber up |
| 32 | // Negative voltage is for climber down |
| 33 | climber_voltage:double (id: 6); |
Maxwell Henderson | 41a7ab0 | 2024-02-08 09:41:42 -0800 | [diff] [blame] | 34 | |
| 35 | // Voltage of the retention rollers |
| 36 | // Positive voltage will hold the game piece in the catapult. |
| 37 | retention_roller_voltage: double (id: 7); |
Filip Kujawa | 102a9b2 | 2024-02-18 09:40:23 -0800 | [diff] [blame] | 38 | |
| 39 | // Voltage of extend |
| 40 | // Positive voltage extends the extend |
| 41 | // Negative voltage retracts the extend |
| 42 | extend_voltage:double (id: 8); |
| 43 | |
| 44 | // Voltage of the extend rollers |
| 45 | // Positive voltage rolls the game piece up towards the scoring mechanisms, |
| 46 | // either the catapult or amp/trap mechanism |
| 47 | extend_roller_voltage:double (id: 9); |
Maxwell Henderson | 862fc2c | 2024-02-23 16:04:37 -0800 | [diff] [blame] | 48 | |
| 49 | // Dynamically sets the stator current limit for the retention_rollers |
| 50 | retention_roller_stator_current_limit: double (id: 10); |
Niko Sohmers | 3860f8a | 2024-01-12 21:05:19 -0800 | [diff] [blame] | 51 | } |
| 52 | |
| 53 | root_type Output; |