Add a driver pistol grip fire button
This lets him synchronize things better with his driving.
Change-Id: If70577c60172afae105bb807dcef17f3fe1c0062
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/y2024/joystick_reader.cc b/y2024/joystick_reader.cc
index 4a8d414..293e57e 100644
--- a/y2024/joystick_reader.cc
+++ b/y2024/joystick_reader.cc
@@ -51,6 +51,7 @@
const ButtonLocation kCatapultLoad(2, 1);
const ButtonLocation kAmp(2, 4);
const ButtonLocation kFire(2, 8);
+const ButtonLocation kDriverFire(1, 1);
const ButtonLocation kTrap(2, 6);
const ButtonLocation kAutoAim(1, 8);
const ButtonLocation kAimSpeaker(2, 11);
@@ -159,7 +160,8 @@
->shooter_speaker_set_point()
->turret_position());
}
- superstructure_goal_builder->set_fire(data.IsPressed(kFire));
+ superstructure_goal_builder->set_fire(data.IsPressed(kFire) ||
+ data.IsPressed(kDriverFire));
if (data.IsPressed(kRetractClimber)) {
superstructure_goal_builder->set_climber_goal(