Skip to content

Commit

Permalink
Merge pull request #18 from OakvilleDynamics/Attempted-fix-for-movement-
Browse files Browse the repository at this point in the history
Enable fix
  • Loading branch information
Kendialouge committed Feb 14, 2024
2 parents 5ff9ceb + a032b69 commit a399b12
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
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 @@ -103,10 +102,7 @@ public RobotContainer() {
() -> MathUtil.applyDeadband(driverXbox.getLeftX(), OperatorConstants.LEFT_X_DEADBAND),
() -> driverXbox.getRawAxis(2));

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

/**
Expand Down

0 comments on commit a399b12

Please sign in to comment.