Skip to content

Commit

Permalink
Enable fix
Browse files Browse the repository at this point in the history
Attempted fix to the problem of robot movement after re enabling it during operation.
  • Loading branch information
EuphoniumPlayer committed Feb 13, 2024
1 parent 4ae53a2 commit a032b69
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 a032b69

Please sign in to comment.