Skip to content

Commit 7c2f05c

Browse files
committed
Fix controllers in getting started docs
Signed-off-by: Jade Turner <[email protected]>
1 parent a7ccbb9 commit 7c2f05c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/choreolib/getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ In general, trajectory followers accept trajectory "samples" that represent the
5959
// Generate the next speeds for the robot
6060
ChassisSpeeds speeds = new ChassisSpeeds(
6161
sample.vx + xController.calculate(pose.getX(), sample.x),
62-
sample.vy + xController.calculate(pose.getX(), sample.y),
63-
sample.omega + xController.calculate(pose.getRotation().getRadians(), sample.heading)
62+
sample.vy + yController.calculate(pose.getY(), sample.y),
63+
sample.omega + headingController.calculate(pose.getRotation().getRadians(), sample.heading)
6464
);
6565

6666
// Apply the generated speeds

0 commit comments

Comments
 (0)