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