Don't flash leds, they flash with the state machine
This makes it a lot easier to see if the bot has a cone or cube grabbed.
Change-Id: I4c36167c006f6fb0b1bf5280527d31f37c04dc20
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/y2023/control_loops/superstructure/led_indicator.cc b/y2023/control_loops/superstructure/led_indicator.cc
index d67bdc2..9db2bc4 100644
--- a/y2023/control_loops/superstructure/led_indicator.cc
+++ b/y2023/control_loops/superstructure/led_indicator.cc
@@ -164,14 +164,12 @@
if (superstructure_status_fetcher_->end_effector_state() ==
EndEffectorState::LOADED &&
intaking) {
- if (flash_counter_.Flash()) {
- if (cone) {
- DisplayLed(255, 165, 0);
- } else {
- DisplayLed(138, 43, 226);
- }
- return;
+ if (cone) {
+ DisplayLed(255, 165, 0);
+ } else {
+ DisplayLed(138, 43, 226);
}
+ return;
}
// Check if there is a target that is in sight