Skip to content

Commit

Permalink
back to single
Browse files Browse the repository at this point in the history
  • Loading branch information
Anhysteretic committed Nov 21, 2024
1 parent d39ae30 commit 153f215
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions src/main/java/com/team841/calliope/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ public RobotContainer() {

registerNamedCommands();

/*
this.sticksXbox = new CommandXboxController[1];
this.sticksPS5 = new CommandPS5Controller[1];
this.sticksXbox[0] = new CommandXboxController(RC.Controllers.soloStick);
Expand All @@ -124,24 +123,6 @@ public RobotContainer() {
() -> -sticksXbox[0].getRightX() * Swerve.MaxAngularRate,
() -> sticksXbox[0].a().getAsBoolean());

*/



this.sticksPS5 = new CommandPS5Controller[1];
this.sticksXbox = new CommandXboxController[1];
this.sticksPS5[0] = new CommandPS5Controller(RC.Controllers.duoStickDrive);
this.sticksXbox[0] = new CommandXboxController(RC.Controllers.duoStickCoDrive);

this.bioDrive = new BioDrive(
this.drivetrain,
() -> -sticksPS5[0].getLeftY() * Swerve.MaxSpeed,
() -> -sticksPS5[0].getLeftX() * Swerve.MaxSpeed,
() -> -sticksPS5[0].getRightX() * Swerve.MaxAngularRate,
() -> sticksPS5[0].L2().getAsBoolean(),
() -> -sticksXbox[0].getLeftX());



this.feedback = new Feedback(this.sticksXbox[0]);

Expand All @@ -159,8 +140,8 @@ public RobotContainer() {

this.drivetrain.setDefaultCommand(bioDrive);

configureDuoStick();
//configureSoloStick();
//configureDuoStick();
configureSoloStick();

}

Expand Down

0 comments on commit 153f215

Please sign in to comment.