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. |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame] | 8 | indexer:frc971.HallEffectAndPosition (id: 0); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 9 | // Turret angle in radians relative to the indexer. Positive is the same as |
| 10 | // the indexer. |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame] | 11 | turret:frc971.HallEffectAndPosition (id: 1); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 12 | } |
| 13 | |
| 14 | |
| 15 | table Position { |
| 16 | // Position of the intake, zero when the intake is in, positive when it is |
| 17 | // out. |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame] | 18 | intake:frc971.PotAndAbsolutePosition (id: 0); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 19 | |
| 20 | // The position of the column. |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame] | 21 | column:ColumnPosition (id: 1); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 22 | |
| 23 | // The sensor readings for the hood. The units and sign are defined the |
| 24 | // same as what's in the Goal message. |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame] | 25 | hood:frc971.IndexPosition (id: 2); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 26 | |
| 27 | // Shooter wheel angle in radians. |
Austin Schuh | d7851b0 | 2020-11-14 13:46:27 -0800 | [diff] [blame] | 28 | theta_shooter:double (id: 3); |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 29 | } |
| 30 | |
| 31 | root_type Position; |