Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
Fix robot horizontal and vertical movement during teleop
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahsnider committed Apr 6, 2022
1 parent 81d9958 commit e2dfb3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/drive/DriveSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ private void driveTeleop(
thetaController.calculate(imuSubsystem.getRotation().getRadians(), newGoalHeading);
final var chassisSpeeds =
ChassisSpeeds.fromFieldRelativeSpeeds(
xPercentage * MAX_VELOCITY,
yPercentage * MAX_VELOCITY,
-xPercentage * MAX_VELOCITY,
thetaControllerVelocity,
robotHeading);

Expand Down

0 comments on commit e2dfb3c

Please sign in to comment.