This repository was archived by the owner on Aug 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed
Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments