blob: 8033d8a2a9d1b7b43fd6649d970cd5b0155e767f [file] [log] [blame]
milind-u086d7262022-01-19 20:44:18 -08001include "frc971/control_loops/control_loops.fbs";
2include "frc971/control_loops/profiled_subsystem.fbs";
3
4namespace y2022.control_loops.superstructure;
5
6table Status {
7 // All subsystems know their location.
8 zeroed:bool (id: 0);
9
10 // If true, we have aborted. This is the or of all subsystem estops.
11 estopped:bool (id: 1);
Griffin Bui67abb912022-01-22 16:16:21 -080012
Siddhant Kanwar0e37f592022-02-21 19:26:50 -080013 // Subsystem statuses
14 climber:frc971.control_loops.RelativeEncoderProfiledJointStatus (id: 2);
Henry Speiser55aa3ba2022-02-21 23:21:12 -080015
16 // Estimated angles and angular velocities of the intakes.
17 intake_front:frc971.control_loops.PotAndAbsoluteEncoderProfiledJointStatus (id: 3);
18 intake_back:frc971.control_loops.PotAndAbsoluteEncoderProfiledJointStatus (id: 4);
19
20 turret:frc971.control_loops.PotAndAbsoluteEncoderProfiledJointStatus (id: 5);
Austin Schuh39f26f62022-02-24 21:34:46 -080021
22 catapult:frc971.control_loops.PotAndAbsoluteEncoderProfiledJointStatus (id: 6);
23
24 solve_time:double (id: 7);
25 mpc_active:bool (id: 8);
milind-u086d7262022-01-19 20:44:18 -080026}
27
Austin Schuh39f26f62022-02-24 21:34:46 -080028root_type Status;