blob: 86a615d3632ab1b042f3d018c8ae1238a9ab079a [file] [log] [blame]
Alex Perrycb7da4b2019-08-28 19:35:56 -07001include "frc971/control_loops/control_loops.fbs";
2
3namespace y2019.control_loops.superstructure;
4
5table Position {
6 // Input from pressure sensor in bar
7 // 1 = 1 atm, 0 = full vacuum
Austin Schuhd7851b02020-11-14 13:46:27 -08008 suction_pressure:float (id: 0);
Alex Perrycb7da4b2019-08-28 19:35:56 -07009
10 // Position of the elevator, 0 at lowest position, positive when up.
Austin Schuhd7851b02020-11-14 13:46:27 -080011 elevator:frc971.PotAndAbsolutePosition (id: 1);
Alex Perrycb7da4b2019-08-28 19:35:56 -070012
13 // Position of wrist, 0 when up, positive is rotating toward the front,
14 // over the top.
Austin Schuhd7851b02020-11-14 13:46:27 -080015 wrist:frc971.PotAndAbsolutePosition (id: 2);
Alex Perrycb7da4b2019-08-28 19:35:56 -070016
17 // Position of the intake. 0 when rollers are retracted, positive extended.
Austin Schuhd7851b02020-11-14 13:46:27 -080018 intake_joint:frc971.AbsolutePosition (id: 3);
Alex Perrycb7da4b2019-08-28 19:35:56 -070019
20 // Position of the stilts, 0 when retracted (defualt), positive lifts robot.
Austin Schuhd7851b02020-11-14 13:46:27 -080021 stilts:frc971.PotAndAbsolutePosition (id: 4);
Alex Perrycb7da4b2019-08-28 19:35:56 -070022
23 // True if the platform detection sensors detect the platform directly
24 // below the robot right behind the left and right wheels. Useful for
25 // determining when the robot is all the way on the platform.
Austin Schuhd7851b02020-11-14 13:46:27 -080026 platform_left_detect:bool (id: 5);
27 platform_right_detect:bool (id: 6);
Alex Perrycb7da4b2019-08-28 19:35:56 -070028}
29
30root_type Position;