Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 1 | namespace y2018.control_loops.superstructure; |
| 2 | |
| 3 | table IntakeVoltage { |
| 4 | // Voltage of the motors on the series elastic on one side (left or right) of |
| 5 | // the intake. |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame^] | 6 | voltage_elastic:double (id: 0); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 7 | |
| 8 | // Voltage of the rollers on one side (left or right) of the intake. |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame^] | 9 | voltage_rollers:double (id: 1); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 10 | } |
| 11 | |
| 12 | table Output { |
| 13 | // Voltage sent to the parts on the left side of the intake. |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame^] | 14 | left_intake:IntakeVoltage (id: 0); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 15 | |
| 16 | // Voltage sent to the parts on the right side of the intake. |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame^] | 17 | right_intake:IntakeVoltage (id: 1); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 18 | |
| 19 | // Voltage sent to the motors on the proximal joint of the arm. |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame^] | 20 | voltage_proximal:double (id: 2); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 21 | |
| 22 | // Voltage sent to the motors on the distal joint of the arm. |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame^] | 23 | voltage_distal:double (id: 3); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 24 | |
| 25 | // Voltage sent to the hanger. Positive pulls the robot up. |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame^] | 26 | voltage_winch:double (id: 4); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 27 | |
| 28 | // Clamped (when true) or unclamped (when false) status sent to the |
| 29 | // pneumatic claw on the arm. |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame^] | 30 | claw_grabbed:bool (id: 5); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 31 | |
| 32 | // If true, release the arm brakes. |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame^] | 33 | release_arm_brake:bool (id: 6); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 34 | // If true, release the hook |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame^] | 35 | hook_release:bool (id: 7); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 36 | // If true, release the forks |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame^] | 37 | forks_release:bool (id: 8); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | root_type Output; |