Skip to content

Commit

Permalink
Fix controllers in getting started docs
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Turner <[email protected]>
  • Loading branch information
spacey-sooty committed Dec 30, 2024
1 parent a7ccbb9 commit bd2efaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/choreolib/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ In general, trajectory followers accept trajectory "samples" that represent the
// Generate the next speeds for the robot
ChassisSpeeds speeds = new ChassisSpeeds(
sample.vx + xController.calculate(pose.getX(), sample.x),
sample.vy + xController.calculate(pose.getX(), sample.y),
sample.omega + xController.calculate(pose.getRotation().getRadians(), sample.heading)
sample.vy + yController.calculate(pose.getX(), sample.y),
sample.omega + headingController.calculate(pose.getRotation().getRadians(), sample.heading)
);

// Apply the generated speeds
Expand Down

0 comments on commit bd2efaa

Please sign in to comment.