blob: 50a61295308f8ef6353c52b9e1f265e5ce4a715a [file] [log] [blame]
Alex Perrycb7da4b2019-08-28 19:35:56 -07001include "frc971/control_loops/control_loops.fbs";
2
3namespace y2014.control_loops.shooter;
4
5// Back is when the springs are all the way stretched.
6table Position {
7 // In meters, out is positive.
Austin Schuhb3375e02020-11-14 15:28:31 -08008 position:double (id: 0);
Alex Perrycb7da4b2019-08-28 19:35:56 -07009
10 // If the latch piston is fired and this hall effect has been triggered, the
11 // plunger is all the way back and latched.
Austin Schuhb3375e02020-11-14 15:28:31 -080012 plunger:bool (id: 1);
Alex Perrycb7da4b2019-08-28 19:35:56 -070013 // Gets triggered when the pusher is all the way back.
Austin Schuhb3375e02020-11-14 15:28:31 -080014 pusher_distal:frc971.PosedgeOnlyCountedHallEffectStruct (id: 2);
Alex Perrycb7da4b2019-08-28 19:35:56 -070015 // Triggers just before pusher_distal.
Austin Schuhb3375e02020-11-14 15:28:31 -080016 pusher_proximal:frc971.PosedgeOnlyCountedHallEffectStruct (id: 3);
Alex Perrycb7da4b2019-08-28 19:35:56 -070017 // Triggers when the latch engages.
Austin Schuhb3375e02020-11-14 15:28:31 -080018 latch:bool (id: 4);
Alex Perrycb7da4b2019-08-28 19:35:56 -070019}
20
21root_type Position;