Allow skipping to superstructure loaded state
In auto a ball will start preloaded, and we need to cheat the
statemachine.
Signed-off-by: Milind Upadhyay <milind.upadhyay@gmail.com>
Change-Id: I95567299ac6f7f76941446b7c57d880a73e6dd6d
diff --git a/y2022/control_loops/superstructure/superstructure_status.fbs b/y2022/control_loops/superstructure/superstructure_status.fbs
index 1005c46..4b215ac 100644
--- a/y2022/control_loops/superstructure/superstructure_status.fbs
+++ b/y2022/control_loops/superstructure/superstructure_status.fbs
@@ -13,16 +13,16 @@
// State of the superstructure state machine
enum SuperstructureState : ubyte {
// Before a ball is intaked, when neither intake beambreak is triggered
- IDLE,
+ IDLE = 0,
// Transferring ball with transfer rollers. Moves turret to loading position.
- TRANSFERRING,
+ TRANSFERRING = 1,
// Loading the ball into the catapult
- LOADING,
+ LOADING = 2,
// The ball is loaded into the catapult
- LOADED,
+ LOADED = 3,
// Waiting for the turret to be at shooting goal and then telling the
// catapult to fire.
- SHOOTING,
+ SHOOTING = 4,
}
table AimerStatus {