Skip to content

Commit

Permalink
whileTrue()
Browse files Browse the repository at this point in the history
  • Loading branch information
AraReighard committed Mar 20, 2024
1 parent 49ab2ba commit d52894a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public SetDrivePerspectiveFieldOriented() {
@Override
public void initialize() {
drive.setDefaultCommand(RobotContainer.driveFieldOriented);
Controllers.pilotController.leftBumper().toggleOnTrue(RobotContainer.driveFieldOrientedSprint);
Controllers.pilotController.leftBumper().whileTrue(RobotContainer.driveFieldOrientedSprint);
}

// Called every time the scheduler runs while the command is scheduled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public SetDrivePerspectiveFieldOrientedHeadingSnapping() {
@Override
public void initialize() {
drive.setDefaultCommand(RobotContainer.driveFieldOrientedHeadingSnapping);
Controllers.pilotController.leftBumper().toggleOnTrue(RobotContainer.driveFieldOrientedSprint);
Controllers.pilotController.leftBumper().whileTrue(RobotContainer.driveFieldOrientedSprint);
}

// Called every time the scheduler runs while the command is scheduled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public SetDrivePerspectiveRobotOriented() {
@Override
public void initialize() {
drive.setDefaultCommand(RobotContainer.driveRobotOriented);
Controllers.pilotController.leftBumper().toggleOnTrue(RobotContainer.driveRobotOrientedSprint);
Controllers.pilotController.leftBumper().whileTrue(RobotContainer.driveRobotOrientedSprint);
}

// Called every time the scheduler runs while the command is scheduled.
Expand Down

0 comments on commit d52894a

Please sign in to comment.