blob: 5c70ff4bb9af9d588b760d400a8381b35af8080e [file] [log] [blame]
Alex Perrycb7da4b2019-08-28 19:35:56 -07001include "frc971/control_loops/control_loops.fbs";
2
3namespace y2017.control_loops.superstructure;
4
5table ColumnPosition {
6 // Indexer angle in radians relative to the base. Positive is according to
7 // the right hand rule around +z.
Austin Schuhd7851b02020-11-14 13:46:27 -08008 indexer:frc971.HallEffectAndPosition (id: 0);
Alex Perrycb7da4b2019-08-28 19:35:56 -07009 // Turret angle in radians relative to the indexer. Positive is the same as
10 // the indexer.
Austin Schuhd7851b02020-11-14 13:46:27 -080011 turret:frc971.HallEffectAndPosition (id: 1);
Alex Perrycb7da4b2019-08-28 19:35:56 -070012}
13
14
15table Position {
16 // Position of the intake, zero when the intake is in, positive when it is
17 // out.
Austin Schuhd7851b02020-11-14 13:46:27 -080018 intake:frc971.PotAndAbsolutePosition (id: 0);
Alex Perrycb7da4b2019-08-28 19:35:56 -070019
20 // The position of the column.
Austin Schuhd7851b02020-11-14 13:46:27 -080021 column:ColumnPosition (id: 1);
Alex Perrycb7da4b2019-08-28 19:35:56 -070022
23 // The sensor readings for the hood. The units and sign are defined the
24 // same as what's in the Goal message.
Austin Schuhd7851b02020-11-14 13:46:27 -080025 hood:frc971.IndexPosition (id: 2);
Alex Perrycb7da4b2019-08-28 19:35:56 -070026
27 // Shooter wheel angle in radians.
Austin Schuhd7851b02020-11-14 13:46:27 -080028 theta_shooter:double (id: 3);
Alex Perrycb7da4b2019-08-28 19:35:56 -070029}
30
31root_type Position;