Skip to content

Commit

Permalink
Update pathplannerlib/src/main/java/com/pathplanner/lib/path/PathPlan…
Browse files Browse the repository at this point in the history
…nerPath.java

Co-authored-by: Michael Jansen <[email protected]>
  • Loading branch information
pjreiniger and mjansen4857 authored Nov 3, 2023
1 parent 6008cfd commit 3d16be0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ private static PathPlannerPath fromJson(JSONObject pathJson) {
JSONObject previewStartingStateJson = (JSONObject) pathJson.get("previewStartingState");
if (previewStartingStateJson != null) {
previewStartingRotation =
Rotation2d.fromDegrees((Double) previewStartingStateJson.get("rotation"));
Rotation2d.fromDegrees(((Number) previewStartingStateJson.get("rotation")).doubleValue());
}
}

Expand Down

0 comments on commit 3d16be0

Please sign in to comment.