mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user