Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 1 | include "frc971/control_loops/control_loops.fbs"; |
| 2 | |
| 3 | namespace y2014.control_loops.shooter; |
| 4 | |
| 5 | // Back is when the springs are all the way stretched. |
| 6 | table Position { |
| 7 | // In meters, out is positive. |
Austin Schuh | b3375e0 | 2020-11-14 15:28:31 -0800 | [diff] [blame] | 8 | position:double (id: 0); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 9 | |
| 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 Schuh | b3375e0 | 2020-11-14 15:28:31 -0800 | [diff] [blame] | 12 | plunger:bool (id: 1); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 13 | // Gets triggered when the pusher is all the way back. |
Austin Schuh | b3375e0 | 2020-11-14 15:28:31 -0800 | [diff] [blame] | 14 | pusher_distal:frc971.PosedgeOnlyCountedHallEffectStruct (id: 2); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 15 | // Triggers just before pusher_distal. |
Austin Schuh | b3375e0 | 2020-11-14 15:28:31 -0800 | [diff] [blame] | 16 | pusher_proximal:frc971.PosedgeOnlyCountedHallEffectStruct (id: 3); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 17 | // Triggers when the latch engages. |
Austin Schuh | b3375e0 | 2020-11-14 15:28:31 -0800 | [diff] [blame] | 18 | latch:bool (id: 4); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | root_type Position; |