Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed pplib usage in lib #11

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.