Skip to content

Commit

Permalink
actually scale angular velocity for drive commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Haefele committed Jan 30, 2024
1 parent 9c83b79 commit cafea22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void execute() {
double z = RobotContainer.getScaledControllerRightXAxis() * Constants.Drive.MAX_ANGULAR_SPEED;
Translation2d translation = new Translation2d(x, y);

drive.driveFieldOriented(translation, RobotContainer.getControllerRightXAxis());
drive.driveFieldOriented(translation, z);
}

// Called once the command ends or is interrupted.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void execute() {
double z = RobotContainer.getScaledControllerRightXAxis() * Constants.Drive.MAX_ANGULAR_SPEED;
Translation2d translation = new Translation2d(x, y);

drive.driveRobotOriented(translation, RobotContainer.getControllerRightXAxis());
drive.driveRobotOriented(translation, z);
}

// Called once the command ends or is interrupted.
Expand Down

0 comments on commit cafea22

Please sign in to comment.