Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 1 | include "frc971/control_loops/control_loops.fbs"; |
| 2 | |
| 3 | namespace y2023.control_loops.superstructure; |
| 4 | |
milind-u | 3738518 | 2023-02-20 15:07:28 -0800 | [diff] [blame^] | 5 | table ArmPosition { |
| 6 | // Values of the encoder and potentiometer at the base of the proximal |
| 7 | // (connected to drivebase) arm in radians. |
| 8 | proximal:frc971.PotAndAbsolutePosition (id: 0); |
Nikita Narang | 27610fc | 2023-02-08 19:40:31 -0800 | [diff] [blame] | 9 | |
milind-u | 3738518 | 2023-02-20 15:07:28 -0800 | [diff] [blame^] | 10 | // Values of the encoder and potentiometer at the base of the distal |
| 11 | // (connected to proximal) arm in radians. |
| 12 | distal:frc971.PotAndAbsolutePosition (id: 1); |
| 13 | } |
| 14 | |
| 15 | table Position { |
| 16 | arm:ArmPosition (id: 0); |
Nikita Narang | 27610fc | 2023-02-08 19:40:31 -0800 | [diff] [blame] | 17 | |
| 18 | // Zero for roll joint is up vertically |
| 19 | // Positive position would be rotated counterclockwise relative to the robot |
milind-u | 3738518 | 2023-02-20 15:07:28 -0800 | [diff] [blame^] | 20 | roll_joint:frc971.PotAndAbsolutePosition (id: 1); |
Nikita Narang | 27610fc | 2023-02-08 19:40:31 -0800 | [diff] [blame] | 21 | |
| 22 | // Zero for wrist is facing staright outward. |
| 23 | // Positive position would be upwards |
milind-u | 3738518 | 2023-02-20 15:07:28 -0800 | [diff] [blame^] | 24 | wrist:frc971.PotAndAbsolutePosition (id: 2); |
Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | root_type Position; |