Skip to content

Commit

Permalink
random stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
a1cd committed Jan 19, 2024
1 parent b1b8e8c commit 5157232
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/frc/robot/subsystems/drive/Drive.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ MAX_LINEAR_SPEED, DRIVE_BASE_RADIUS, new ReplanningConfig()),
Pathfinding.setDynamicObstacles(
List.of(new Pair(new Translation2d(1.5, 1.5), new Translation2d(2.0, 3.0))),
new Translation2d(1.0, 2.0));
PathPlannerLogging.logActivePath(
Pathfinding.getCurrentPath(
new PathConstraints(2.5, 2.5, 2.5, 2.5), new GoalEndState(0.0, new Rotation2d(0.0))));
//noinspection ToArrayCallWithZeroLengthArrayArgument
PathPlannerLogging.setLogActivePathCallback(
(activePath) ->
Expand Down Expand Up @@ -136,6 +133,9 @@ public void periodic() {
}
// Apply the twist (change since last loop cycle) to the current pose
pose = pose.exp(twist);
PathPlannerLogging.logActivePath(
Pathfinding.getCurrentPath(
new PathConstraints(2.5, 2.5, 2.5, 2.5), new GoalEndState(0.0, new Rotation2d(0.0))));
}

/**
Expand Down

0 comments on commit 5157232

Please sign in to comment.