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

Commit f50459d

Browse files
silverx257ShasshU
andcommitted
fixed toggle for turn to angle
Co-Authored-By: ShasshU <[email protected]>
1 parent 625f07e commit f50459d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,16 @@ public void initDefaultCommands_teleop() {
160160
// }
161161
// SmartDashboard.putBoolean("Turn to angle 2", false);
162162
// return commandDriverController.getRightX(); // Rotation
163-
return 0.0;
163+
164+
if (swerveDrive.getTurnToAngleMode()) {
165+
return 0.0;
166+
}
167+
else {
168+
return commandDriverController.getRightX();
169+
}
164170
},
165171

172+
166173
// driverController::getSquareButton, // Field oriented
167174
() -> false, // should be robot oriented now on true
168175
() -> false,

0 commit comments

Comments
 (0)