Skip to content

Commit

Permalink
PP rotation target degrees instead of radians.
Browse files Browse the repository at this point in the history
  • Loading branch information
j0n5m1th committed Mar 28, 2024
1 parent 994a469 commit 095f4ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public Optional<Rotation2d> getRotationTargetOverride() {
// drivetrain.setChassisSpeeds(HOLO_CONTROLLER.calculate(current, new
// Pose2d(current.getTranslation(), new Rotation2d(desiredRotation)), 0, new
// Rotation2d(desiredRotation)));
return Optional.of(new Rotation2d(desiredRotation + 90));
return Optional.of(Rotation2d.fromDegrees(desiredRotation + 90.0));
} else {
// return an empty optional when we don't want to override the path's rotation
return Optional.empty();
Expand Down

0 comments on commit 095f4ef

Please sign in to comment.