Skip to content

Commit

Permalink
Change calculateOptimalRotation to static
Browse files Browse the repository at this point in the history
  • Loading branch information
rakrakon committed Feb 7, 2024
1 parent ca4e6a4 commit f4ce41a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/lib/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static Pose2d calcOptimalPose(List<Pose2d> points, Pose2d robotPose) {
.orElse(null);
}

public Rotation2d calculateOptimalRotation(
public static Rotation2d calculateOptimalRotation(
Translation2d currentTranslation, Translation2d destinationTranslation) {
return new Rotation2d(
destinationTranslation.getX() - currentTranslation.getX(),
Expand Down

0 comments on commit f4ce41a

Please sign in to comment.