Skip to content

Commit

Permalink
fixed toggle for turn to angle
Browse files Browse the repository at this point in the history
Co-Authored-By: ShasshU <143851930+ShasshU@users.noreply.github.com>
  • Loading branch information
silverx257 and ShasshU committed Oct 29, 2024
1 parent 625f07e commit f50459d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,16 @@ public void initDefaultCommands_teleop() {
// }
// SmartDashboard.putBoolean("Turn to angle 2", false);
// return commandDriverController.getRightX(); // Rotation
return 0.0;

if (swerveDrive.getTurnToAngleMode()) {
return 0.0;
}
else {
return commandDriverController.getRightX();
}
},


// driverController::getSquareButton, // Field oriented
() -> false, // should be robot oriented now on true
() -> false,
Expand Down

0 comments on commit f50459d

Please sign in to comment.