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. |
milind-u | 18934eb | 2023-02-20 16:28:58 -0800 | [diff] [blame^] | 8 | // Zero is upwards, positive is a forwards rotation |
milind-u | 3738518 | 2023-02-20 15:07:28 -0800 | [diff] [blame] | 9 | proximal:frc971.PotAndAbsolutePosition (id: 0); |
Nikita Narang | 27610fc | 2023-02-08 19:40:31 -0800 | [diff] [blame] | 10 | |
milind-u | 3738518 | 2023-02-20 15:07:28 -0800 | [diff] [blame] | 11 | // Values of the encoder and potentiometer at the base of the distal |
| 12 | // (connected to proximal) arm in radians. |
milind-u | 18934eb | 2023-02-20 16:28:58 -0800 | [diff] [blame^] | 13 | // Zero is straight up, positive is a forwards rotation |
milind-u | 3738518 | 2023-02-20 15:07:28 -0800 | [diff] [blame] | 14 | distal:frc971.PotAndAbsolutePosition (id: 1); |
| 15 | } |
| 16 | |
| 17 | table Position { |
| 18 | arm:ArmPosition (id: 0); |
Nikita Narang | 27610fc | 2023-02-08 19:40:31 -0800 | [diff] [blame] | 19 | |
| 20 | // Zero for roll joint is up vertically |
| 21 | // Positive position would be rotated counterclockwise relative to the robot |
milind-u | 3738518 | 2023-02-20 15:07:28 -0800 | [diff] [blame] | 22 | roll_joint:frc971.PotAndAbsolutePosition (id: 1); |
Nikita Narang | 27610fc | 2023-02-08 19:40:31 -0800 | [diff] [blame] | 23 | |
| 24 | // Zero for wrist is facing staright outward. |
| 25 | // Positive position would be upwards |
milind-u | 18934eb | 2023-02-20 16:28:58 -0800 | [diff] [blame^] | 26 | wrist:frc971.AbsolutePosition (id: 2); |
Maxwell Henderson | ad31234 | 2023-01-10 12:07:47 -0800 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | root_type Position; |