Skip to content

Commit

Permalink
Fix Spline.getPoint() call (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul authored Jul 13, 2024
1 parent bd3f066 commit 5623a2a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void update() {
SplineSegment seg = new SplineSegment(waypoints.get(i-1), waypoints.get(i), path);

for (int sample = 0; sample <= 40; sample++) {
PoseWithCurvature pose = quintic.getPoint(sample / 40.0);
PoseWithCurvature pose = quintic.getPoint(sample / 40.0).get();
seg.getLine().getPoints().add(pose.poseMeters.getTranslation().getX());
//Convert from WPILib to JavaFX coords
seg.getLine().getPoints().add(-pose.poseMeters.getTranslation().getY());
Expand Down

0 comments on commit 5623a2a

Please sign in to comment.