blob: 24970d053293934cc0499d28ef1927a9ed547624 [file] [log] [blame]
Niko Sohmers3860f8a2024-01-12 21:05:19 -08001namespace y2024.control_loops.superstructure;
2
3table Output {
Niko Sohmers58e64c82024-01-14 12:49:54 -08004 // Voltage of rollers on intake
Maxwell Henderson3d68e142024-02-25 09:58:11 -08005 // Positive means intaking a game piece.
Niko Sohmers58e64c82024-01-14 12:49:54 -08006 intake_roller_voltage:double (id: 0);
7
8 // Voltage of intake pivot
Filip Kujawaeab026a2024-02-14 20:07:39 -08009 // Positive voltage causes pivot to retract.
Niko Sohmers58e64c82024-01-14 12:49:54 -080010 intake_pivot_voltage:double (id: 1);
Maxwell Hendersonbf04fb62024-01-19 17:56:07 -080011
12 // Voltage of the turret
Filip Kujawaeab026a2024-02-14 20:07:39 -080013 // Positive voltage is for rotating the turret clockwise.
Maxwell Hendersonbf04fb62024-01-19 17:56:07 -080014 turret_voltage: double (id: 2);
15
16 // Voltage of the altitude
Filip Kujawaeab026a2024-02-14 20:07:39 -080017 // Positive voltage is for raising it upward.
Maxwell Hendersonbf04fb62024-01-19 17:56:07 -080018 altitude_voltage: double (id: 3);
19
20 // Voltage of the catapult
Filip Kujawaeab026a2024-02-14 20:07:39 -080021 // Positive voltage is for shooting the game piece,
22 // rotating the catapult counter-clockwise.
Maxwell Hendersonbf04fb62024-01-19 17:56:07 -080023 catapult_voltage: double (id: 4);
Niko Sohmers78f71352024-02-02 16:47:40 -080024
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 Kujawa57507152024-01-31 20:09:25 -080029
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 Henderson41a7ab02024-02-08 09:41:42 -080034
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 Kujawa102a9b22024-02-18 09:40:23 -080038
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 Henderson862fc2c2024-02-23 16:04:37 -080048
49 // Dynamically sets the stator current limit for the retention_rollers
50 retention_roller_stator_current_limit: double (id: 10);
Niko Sohmers3860f8a2024-01-12 21:05:19 -080051}
52
53root_type Output;