blob: 1c8c0e91fd4b797829572d2a07382e1ff0ab5480 [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.
8 proximal:frc971.PotAndAbsolutePosition (id: 0);
Nikita Narang27610fc2023-02-08 19:40:31 -08009
milind-u37385182023-02-20 15:07:28 -080010 // 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
15table Position {
16 arm:ArmPosition (id: 0);
Nikita Narang27610fc2023-02-08 19:40:31 -080017
18 // Zero for roll joint is up vertically
19 // Positive position would be rotated counterclockwise relative to the robot
milind-u37385182023-02-20 15:07:28 -080020 roll_joint:frc971.PotAndAbsolutePosition (id: 1);
Nikita Narang27610fc2023-02-08 19:40:31 -080021
22 // Zero for wrist is facing staright outward.
23 // Positive position would be upwards
milind-u37385182023-02-20 15:07:28 -080024 wrist:frc971.PotAndAbsolutePosition (id: 2);
Maxwell Hendersonad312342023-01-10 12:07:47 -080025}
26
27root_type Position;