blob: 2a8eb8aa1fcc53804d40136a5af2dc8010c966e5 [file] [log] [blame]
Alex Perrycb7da4b2019-08-28 19:35:56 -07001include "frc971/control_loops/control_loops.fbs";
2
3namespace y2014.control_loops.claw;
4
5// All angles here are 0 vertical, positive "up" (aka backwards).
6table HalfClawPosition {
7 // The current position of this half of the claw.
Austin Schuhb3375e02020-11-14 15:28:31 -08008 position:double (id: 0);
Alex Perrycb7da4b2019-08-28 19:35:56 -07009
10 // The hall effect sensor at the front limit.
Austin Schuhb3375e02020-11-14 15:28:31 -080011 front:frc971.HallEffectStruct (id: 1);
Alex Perrycb7da4b2019-08-28 19:35:56 -070012 // The hall effect sensor in the middle to use for real calibration.
Austin Schuhb3375e02020-11-14 15:28:31 -080013 calibration:frc971.HallEffectStruct (id: 2);
Alex Perrycb7da4b2019-08-28 19:35:56 -070014 // The hall effect at the back limit.
Austin Schuhb3375e02020-11-14 15:28:31 -080015 back:frc971.HallEffectStruct (id: 3);
Alex Perrycb7da4b2019-08-28 19:35:56 -070016}
17
18table Position {
19 // All the top claw information.
Austin Schuhb3375e02020-11-14 15:28:31 -080020 top:HalfClawPosition (id: 0);
Alex Perrycb7da4b2019-08-28 19:35:56 -070021 // All the bottom claw information.
Austin Schuhb3375e02020-11-14 15:28:31 -080022 bottom:HalfClawPosition (id: 1);
Alex Perrycb7da4b2019-08-28 19:35:56 -070023}
24
25root_type Position;