Skip to content

Commit

Permalink
Correction
Browse files Browse the repository at this point in the history
Reset to previous version after unintentional commit to incorrect branch
  • Loading branch information
EuphoniumPlayer committed Feb 15, 2024
1 parent a399b12 commit 004f7ce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import edu.wpi.first.math.geometry.Rotation2d;
import edu.wpi.first.math.geometry.Translation2d;
import edu.wpi.first.wpilibj.Filesystem;
import edu.wpi.first.wpilibj.RobotBase;
import edu.wpi.first.wpilibj.XboxController;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.Commands;
Expand Down Expand Up @@ -102,7 +103,10 @@ public RobotContainer() {
() -> MathUtil.applyDeadband(driverXbox.getLeftX(), OperatorConstants.LEFT_X_DEADBAND),
() -> driverXbox.getRawAxis(2));

drivebase.setDefaultCommand(closedAbsoluteDriveAdv);
drivebase.setDefaultCommand(
!RobotBase.isSimulation()
? driveFieldOrientedDirectAngle
: driveFieldOrientedDirectAngleSim);
}

/**
Expand Down Expand Up @@ -147,3 +151,4 @@ public void setMotorBrake(boolean brake) {
drivebase.setMotorBrake(brake);
}
}

0 comments on commit 004f7ce

Please sign in to comment.