Skip to content

Commit

Permalink
Fixed bug with Choreo path's not mirroring rotation's properly
Browse files Browse the repository at this point in the history
  • Loading branch information
vqxel committed Jan 20, 2024
1 parent 39dbd94 commit 03b8da5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ public PathPlannerPath flipPath() {
mirrored.heading = GeometryUtil.flipFieldRotation(state.heading);
mirrored.targetHolonomicRotation =
GeometryUtil.flipFieldRotation(state.targetHolonomicRotation);
mirrored.holonomicAngularVelocityRps.ifPresent(
state.holonomicAngularVelocityRps.ifPresent(
v -> mirrored.holonomicAngularVelocityRps = Optional.of(-v));
mirrored.curvatureRadPerMeter = -state.curvatureRadPerMeter;
mirrored.constraints = state.constraints;
Expand Down

0 comments on commit 03b8da5

Please sign in to comment.