Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 1 | include "frc971/control_loops/control_loops.fbs"; |
| 2 | |
| 3 | namespace y2017.control_loops.superstructure; |
| 4 | |
| 5 | table ColumnPosition { |
| 6 | // Indexer angle in radians relative to the base. Positive is according to |
| 7 | // the right hand rule around +z. |
| 8 | indexer:frc971.HallEffectAndPosition; |
| 9 | // Turret angle in radians relative to the indexer. Positive is the same as |
| 10 | // the indexer. |
| 11 | turret:frc971.HallEffectAndPosition; |
| 12 | } |
| 13 | |
| 14 | |
| 15 | table Position { |
| 16 | // Position of the intake, zero when the intake is in, positive when it is |
| 17 | // out. |
| 18 | intake:frc971.PotAndAbsolutePosition; |
| 19 | |
| 20 | // The position of the column. |
| 21 | column:ColumnPosition; |
| 22 | |
| 23 | // The sensor readings for the hood. The units and sign are defined the |
| 24 | // same as what's in the Goal message. |
| 25 | hood:frc971.IndexPosition; |
| 26 | |
| 27 | // Shooter wheel angle in radians. |
| 28 | theta_shooter:double; |
| 29 | } |
| 30 | |
| 31 | root_type Position; |