blob: cf8a843830ab681e0f1887baea621fd737cab8b7 [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);
milind-u18a901d2023-02-17 21:51:55 -080015
16 // Zero for roll joint is up vertically
17 // Positive position would be rotated counterclockwise relative to the robot
18 roll_joint:frc971.PotAndAbsolutePosition (id: 2);
milind-u37385182023-02-20 15:07:28 -080019}
20
21table Position {
22 arm:ArmPosition (id: 0);
Nikita Narang27610fc2023-02-08 19:40:31 -080023
Nikita Narang27610fc2023-02-08 19:40:31 -080024 // Zero for wrist is facing staright outward.
25 // Positive position would be upwards
milind-u18a901d2023-02-17 21:51:55 -080026 wrist:frc971.AbsolutePosition (id: 1);
Maxwell Henderson589cf272023-02-22 15:56:40 -080027
28 // If this is true, the cone beam break is triggered.
milind-u3a7f9212023-02-24 20:46:59 -080029 cone_position:double (id: 2);
Maxwell Henderson589cf272023-02-22 15:56:40 -080030
31 // If this is true, the cube beam break is triggered.
32 end_effector_cube_beam_break:bool (id: 3);
Maxwell Hendersonad312342023-01-10 12:07:47 -080033}
34
35root_type Position;