blob: 105522283df63abecc9f9e227e895bf486023378 [file] [log] [blame]
Alex Perrycb7da4b2019-08-28 19:35:56 -07001namespace y2018.control_loops.superstructure;
2
3table IntakeVoltage {
4 // Voltage of the motors on the series elastic on one side (left or right) of
5 // the intake.
Austin Schuhd7851b02020-11-14 13:46:27 -08006 voltage_elastic:double (id: 0);
Alex Perrycb7da4b2019-08-28 19:35:56 -07007
8 // Voltage of the rollers on one side (left or right) of the intake.
Austin Schuhd7851b02020-11-14 13:46:27 -08009 voltage_rollers:double (id: 1);
Alex Perrycb7da4b2019-08-28 19:35:56 -070010}
11
12table Output {
13 // Voltage sent to the parts on the left side of the intake.
Austin Schuhd7851b02020-11-14 13:46:27 -080014 left_intake:IntakeVoltage (id: 0);
Alex Perrycb7da4b2019-08-28 19:35:56 -070015
16 // Voltage sent to the parts on the right side of the intake.
Austin Schuhd7851b02020-11-14 13:46:27 -080017 right_intake:IntakeVoltage (id: 1);
Alex Perrycb7da4b2019-08-28 19:35:56 -070018
19 // Voltage sent to the motors on the proximal joint of the arm.
Austin Schuhd7851b02020-11-14 13:46:27 -080020 voltage_proximal:double (id: 2);
Alex Perrycb7da4b2019-08-28 19:35:56 -070021
22 // Voltage sent to the motors on the distal joint of the arm.
Austin Schuhd7851b02020-11-14 13:46:27 -080023 voltage_distal:double (id: 3);
Alex Perrycb7da4b2019-08-28 19:35:56 -070024
25 // Voltage sent to the hanger. Positive pulls the robot up.
Austin Schuhd7851b02020-11-14 13:46:27 -080026 voltage_winch:double (id: 4);
Alex Perrycb7da4b2019-08-28 19:35:56 -070027
28 // Clamped (when true) or unclamped (when false) status sent to the
29 // pneumatic claw on the arm.
Austin Schuhd7851b02020-11-14 13:46:27 -080030 claw_grabbed:bool (id: 5);
Alex Perrycb7da4b2019-08-28 19:35:56 -070031
32 // If true, release the arm brakes.
Austin Schuhd7851b02020-11-14 13:46:27 -080033 release_arm_brake:bool (id: 6);
Alex Perrycb7da4b2019-08-28 19:35:56 -070034 // If true, release the hook
Austin Schuhd7851b02020-11-14 13:46:27 -080035 hook_release:bool (id: 7);
Alex Perrycb7da4b2019-08-28 19:35:56 -070036 // If true, release the forks
Austin Schuhd7851b02020-11-14 13:46:27 -080037 forks_release:bool (id: 8);
Alex Perrycb7da4b2019-08-28 19:35:56 -070038}
39
40root_type Output;