Make spit button smarter
Adds a third spit button that spits the side that has a ball.
Signed-off-by: Ravago Jones <ravagojones@gmail.com>
Change-Id: I6842750d157d1c131f59bdf1abcf906e34f568a8
diff --git a/y2022/control_loops/superstructure/superstructure.cc b/y2022/control_loops/superstructure/superstructure.cc
index 8ff1e1c..21a38d3 100644
--- a/y2022/control_loops/superstructure/superstructure.cc
+++ b/y2022/control_loops/superstructure/superstructure.cc
@@ -239,7 +239,7 @@
back_intake_beambreak_timer_ = timestamp;
}
- // Check if we're either spitting of have lost the ball.
+ // Check if we're either spitting or have lost the ball.
if ((transfer_roller_speed < 0.0 && front_intake_has_ball_) ||
timestamp >
front_intake_beambreak_timer_ + constants::Values::kBallLostTime()) {