blob: ac6f09407047466cf889c693cc9c4b0fe98ccf9c [file] [log] [blame]
milind-u086d7262022-01-19 20:44:18 -08001include "frc971/control_loops/control_loops.fbs";
2
3namespace y2022.control_loops.superstructure;
4
5table Position {
Siddhant Kanwar0e37f592022-02-21 19:26:50 -08006 climber:frc971.RelativePosition (id: 0);
Henry Speiser55aa3ba2022-02-21 23:21:12 -08007 // Zero for the intake position value is up, and positive is
8 // down.
9 intake_front:frc971.PotAndAbsolutePosition (id: 1);
10 intake_back:frc971.PotAndAbsolutePosition (id: 2);
11 turret:frc971.PotAndAbsolutePosition (id: 3);
Griffin Buibcbef482022-02-23 15:32:10 -080012
13 // Zero is straight and positive is open
14 flipper_arm_left:frc971.RelativePosition (id: 4);
15 flipper_arm_right:frc971.RelativePosition (id: 5);
Milo Lin4950ac52022-02-25 19:56:11 -080016
Austin Schuh39f26f62022-02-24 21:34:46 -080017 // True means there is a ball in front of the sensor.
Milo Lin4950ac52022-02-25 19:56:11 -080018 intake_beambreak_front:bool (id:6);
19 intake_beambreak_back:bool (id:7);
20 turret_beambreak:bool (id:8);
Austin Schuh39f26f62022-02-24 21:34:46 -080021
22 // Position of the catapult. Positive is up to fire. Zero is horizontal
23 // with the drive base.
24 catapult:frc971.PotAndAbsolutePosition (id: 9);
milind-u086d7262022-01-19 20:44:18 -080025}
26
27root_type Position;