[wpilib,cmd] Remove Axis from Gamepad Triggers (#8956)

It's a bit confusing, especially since some controllers will have this be
a 0:1 button rather than axis.
This commit is contained in:
Thad House
2026-06-12 06:42:06 -07:00
committed by GitHub
parent d6fb871a26
commit 5a7d7d50ee
11 changed files with 47 additions and 49 deletions

View File

@@ -25,7 +25,7 @@ public class DefaultTeleMode extends PeriodicOpMode {
robot.motor1.setThrottle(-gamepad.getRightY());
robot.motor2.setThrottle(-gamepad.getLeftX());
robot.motor3.setThrottle(-gamepad.getRightX());
robot.servo0.setPosition(gamepad.getLeftTriggerAxis());
robot.servo1.setPosition(gamepad.getRightTriggerAxis());
robot.servo0.setPosition(gamepad.getLeftTrigger());
robot.servo1.setPosition(gamepad.getRightTrigger());
}
}

View File

@@ -62,7 +62,7 @@ public class SysIdRoutineBot {
.whileTrue(drive.sysIdDynamic(SysIdRoutine.Direction.kReverse));
// Control the shooter wheel with the left trigger
shooter.setDefaultCommand(shooter.runShooter(driverController::getLeftTriggerAxis));
shooter.setDefaultCommand(shooter.runShooter(driverController::getLeftTrigger));
driverController
.faceDown()