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. |
| 8 | position:double; |
| 9 | |
| 10 | // The hall effect sensor at the front limit. |
| 11 | front:frc971.HallEffectStruct; |
| 12 | // The hall effect sensor in the middle to use for real calibration. |
| 13 | calibration:frc971.HallEffectStruct; |
| 14 | // The hall effect at the back limit. |
| 15 | back:frc971.HallEffectStruct; |
| 16 | } |
| 17 | |
| 18 | table Position { |
| 19 | // All the top claw information. |
| 20 | top:HalfClawPosition; |
| 21 | // All the bottom claw information. |
| 22 | bottom:HalfClawPosition; |
| 23 | } |
| 24 | |
| 25 | root_type Position; |