Skip to content

Commit

Permalink
removed pplib usage in lib
Browse files Browse the repository at this point in the history
  • Loading branch information
oh-yes-0-fps committed Oct 29, 2024
1 parent 25747e1 commit 7e5055b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 43 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.ironmaple.utils;

import com.pathplanner.lib.path.PathPlannerPath;
import edu.wpi.first.math.geometry.Pose2d;
import edu.wpi.first.math.geometry.Rotation2d;
import edu.wpi.first.math.geometry.Translation2d;
Expand Down Expand Up @@ -50,10 +49,6 @@ public static Pose2d toCurrentAlliancePose(Pose2d poseAtBlueSide) {
toCurrentAllianceRotation(poseAtBlueSide.getRotation()));
}

public static PathPlannerPath toCurrentAlliancePath(PathPlannerPath pathAtBlueAlliance) {
return isSidePresentedAsRed() ? pathAtBlueAlliance.flipPath() : pathAtBlueAlliance;
}

public static boolean isSidePresentedAsRed() {
final Optional<DriverStation.Alliance> alliance = DriverStation.getAlliance();
return alliance.isPresent() && alliance.get().equals(DriverStation.Alliance.Red);
Expand Down
38 changes: 0 additions & 38 deletions project/vendordeps/PathplannerLib2024.json

This file was deleted.

0 comments on commit 7e5055b

Please sign in to comment.