blob: 8549943897aea068c91289a26dcc52150904a95d [file] [log] [blame]
Maxwell Hendersonad312342023-01-10 12:07:47 -08001include "frc971/control_loops/control_loops.fbs";
2
3namespace y2023.control_loops.superstructure;
4
milind-u37385182023-02-20 15:07:28 -08005table ArmPosition {
6 // Values of the encoder and potentiometer at the base of the proximal
7 // (connected to drivebase) arm in radians.
milind-u18934eb2023-02-20 16:28:58 -08008 // Zero is upwards, positive is a forwards rotation
milind-u37385182023-02-20 15:07:28 -08009 proximal:frc971.PotAndAbsolutePosition (id: 0);
Nikita Narang27610fc2023-02-08 19:40:31 -080010
milind-u37385182023-02-20 15:07:28 -080011 // Values of the encoder and potentiometer at the base of the distal
12 // (connected to proximal) arm in radians.
milind-u18934eb2023-02-20 16:28:58 -080013 // Zero is straight up, positive is a forwards rotation
milind-u37385182023-02-20 15:07:28 -080014 distal:frc971.PotAndAbsolutePosition (id: 1);
15}
16
17table Position {
18 arm:ArmPosition (id: 0);
Nikita Narang27610fc2023-02-08 19:40:31 -080019
20 // Zero for roll joint is up vertically
21 // Positive position would be rotated counterclockwise relative to the robot
milind-u37385182023-02-20 15:07:28 -080022 roll_joint:frc971.PotAndAbsolutePosition (id: 1);
Nikita Narang27610fc2023-02-08 19:40:31 -080023
24 // Zero for wrist is facing staright outward.
25 // Positive position would be upwards
milind-u18934eb2023-02-20 16:28:58 -080026 wrist:frc971.AbsolutePosition (id: 2);
Maxwell Hendersonad312342023-01-10 12:07:47 -080027}
28
29root_type Position;