Skip to content

Commit

Permalink
ps4 controller for interest meeting
Browse files Browse the repository at this point in the history
  • Loading branch information
cherriae committed Sep 11, 2024
1 parent b2809ea commit 618ba75
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.Commands;
import edu.wpi.first.wpilibj2.command.button.CommandPS4Controller;
import edu.wpi.first.wpilibj2.command.button.CommandPS5Controller;
import frc.robot.Constants.LEDColors;
import frc.robot.Constants.Ports;
Expand Down Expand Up @@ -62,7 +63,7 @@ public class RobotContainer {

// controllers (for driver and operator)
private final CommandPS5Controller _driveController = new CommandPS5Controller(Constants.Ports.DRIVER_CONTROLLER);
private final CommandPS5Controller _operatorController = new CommandPS5Controller(Constants.Ports.OPERATOR_CONTROLLER);
private final CommandPS4Controller _operatorController = new CommandPS4Controller(Constants.Ports.OPERATOR_CONTROLLER);

// slew rate limiters applied to joysticks
private final SlewRateLimiter _driveFilterLeftX = new SlewRateLimiter(4);
Expand Down Expand Up @@ -153,7 +154,7 @@ private void configureBindings() {
// operator bindings
_operatorController.L1().whileTrue(new SpinShooter(_shooterSubsystem, ShooterState.AMP));
// _operatorController.L2().whileTrue(new SpinShooter(_shooterSubsystem, ShooterState.AMP));
_operatorController.create().whileTrue(new SpinShooter(_shooterSubsystem, ShooterState.SLOW));
_operatorController.share().whileTrue(new SpinShooter(_shooterSubsystem, ShooterState.SLOW));
_operatorController.R2().whileTrue(new AutoAmp(_shooterSubsystem, _intakeSubsystem));
_operatorController.R1().whileTrue(
Commands.parallel(
Expand Down

0 comments on commit 618ba75

Please sign in to comment.