Skip to content
This repository was archived by the owner on Aug 23, 2025. It is now read-only.

Commit c66cb30

Browse files
committed
Update RobotContainer.java
1 parent b3ad927 commit c66cb30

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

src/main/java/frc/robot/RobotContainer.java

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public class RobotContainer {
7676

7777
public CANdleSubSystem CANdle = new CANdleSubSystem();
7878
private SwerveJoystickCommand swerveJoystickCommand;
79+
public boolean turnToAngleMode = false;
7980

8081
/**
8182
* The container for the robot. Contain
@@ -170,19 +171,15 @@ public void initDefaultCommands_teleop() {
170171
// driverController::getR2Button, // Precision/"Sniper Button"
171172
() -> driverController.getR2Button(), // Precision mode (disabled)
172173
() -> {
173-
return (
174+
if (turnToAngleMode) {
175+
return (
174176
driverController.getRightX() > 0.0
175177
|| driverController.getRightY() > 0.0
176-
// driverController.getR1Button()
177-
// || driverController.getL1Button()
178-
// || driverController.getL2Button()
179-
// || driverController.getCircleButton()
180-
// || driverController.getTriangleButton()
181-
// || (
182-
// driverController.getTouchpad() && superSystem.getIsPassing()
183-
// )
184-
// || driverController.getPSButton()
185-
); // Turn to angle
178+
);
179+
}
180+
else {
181+
return(false);
182+
}
186183
},
187184
// () -> false, // Turn to angle (disabled)
188185
() -> { // Turn To angle Direction

0 commit comments

Comments
 (0)