Add slow shot button for in pit testing back
This makes functional tests a lot easier.
Change-Id: I18e3e0eaa60b4d8b7b1c147e4968ec610245514e
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/y2020/joystick_reader.cc b/y2020/joystick_reader.cc
index b92126a..2f27796 100644
--- a/y2020/joystick_reader.cc
+++ b/y2020/joystick_reader.cc
@@ -42,6 +42,7 @@
const ButtonLocation kAutoTrack(3, 3);
const ButtonLocation kAutoNoHood(3, 5);
const ButtonLocation kHood(3, 2);
+const ButtonLocation kShootSlow(4, 2);
const ButtonLocation kFixedTurret(3, 1);
const ButtonLocation kFeed(4, 1);
const ButtonLocation kFeedDriver(1, 2);
@@ -187,6 +188,9 @@
accelerator_speed = setpoint_fetcher_->accelerator();
finisher_speed = setpoint_fetcher_->finisher();
}
+ } else if (data.IsPressed(kShootSlow)) {
+ accelerator_speed = 150.0;
+ finisher_speed = 200.0;
}
if (data.IsPressed(kIntakeExtend) || data.IsPressed(kIntakeExtendDriver)) {