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.claw; |
| 4 | |
| 5 | // All angles here are 0 vertical, positive "up" (aka backwards). |
| 6 | table HalfClawPosition { |
| 7 | // The current position of this half of the claw. |
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 | // The hall effect sensor at the front limit. |
Austin Schuh | b3375e0 | 2020-11-14 15:28:31 -0800 | [diff] [blame] | 11 | front:frc971.HallEffectStruct (id: 1); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 12 | // The hall effect sensor in the middle to use for real calibration. |
Austin Schuh | b3375e0 | 2020-11-14 15:28:31 -0800 | [diff] [blame] | 13 | calibration:frc971.HallEffectStruct (id: 2); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 14 | // The hall effect at the back limit. |
Austin Schuh | b3375e0 | 2020-11-14 15:28:31 -0800 | [diff] [blame] | 15 | back:frc971.HallEffectStruct (id: 3); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 16 | } |
| 17 | |
| 18 | table Position { |
| 19 | // All the top claw information. |
Austin Schuh | b3375e0 | 2020-11-14 15:28:31 -0800 | [diff] [blame] | 20 | top:HalfClawPosition (id: 0); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 21 | // All the bottom claw information. |
Austin Schuh | b3375e0 | 2020-11-14 15:28:31 -0800 | [diff] [blame] | 22 | bottom:HalfClawPosition (id: 1); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 23 | } |
| 24 | |
| 25 | root_type Position; |