Add a button to spit on the extend
Signed-off-by: Maxwell Henderson <mxwhenderson@gmail.com>
Change-Id: I18059564d83970f9977bb52007f7b1eb20dd883d
diff --git a/y2024/joystick_reader.cc b/y2024/joystick_reader.cc
index f7578f9..4a8d414 100644
--- a/y2024/joystick_reader.cc
+++ b/y2024/joystick_reader.cc
@@ -45,6 +45,7 @@
const ButtonLocation kIntake(2, 2);
const ButtonLocation kSpitRollers(1, 13);
+const ButtonLocation kSpitExtend(1, 12);
const ButtonLocation kIntakeRollers(2, 5);
const ButtonLocation kCatapultLoad(2, 1);
@@ -114,6 +115,12 @@
superstructure::IntakeGoal::NONE);
}
+ if (data.IsPressed(kSpitExtend)) {
+ superstructure_goal_builder->set_spit_extend(true);
+ } else {
+ superstructure_goal_builder->set_spit_extend(false);
+ }
+
if (data.IsPressed(kAmp)) {
superstructure_goal_builder->set_note_goal(superstructure::NoteGoal::AMP);
} else if (data.IsPressed(kTrap)) {