Add ball sorting
Discard balls that are not our alliance color
Signed-off-by: Ravago Jones <ravagojones@gmail.com>
Change-Id: Ic9ff9bfc724c74d0c6de4364ddc3999945c062d2
diff --git a/y2022/control_loops/superstructure/superstructure_status.fbs b/y2022/control_loops/superstructure/superstructure_status.fbs
index 9cf9a5f..ac60ce3 100644
--- a/y2022/control_loops/superstructure/superstructure_status.fbs
+++ b/y2022/control_loops/superstructure/superstructure_status.fbs
@@ -59,6 +59,9 @@
ready_to_fire:bool (id: 20);
// Whether the robot is moving too fast to shoot
moving_too_fast:bool (id: 21);
+ // True if the robot has detected that it is holding
+ // the wrong color ball and is now discarding it.
+ discarding_ball:bool (id: 22);
// Whether the catapult was told to fire,
// meaning that the turret and flippers are ready for firing
// and we were asked to fire. Different from fire flag in goal.