Skip to content

Commit

Permalink
retrieve swerve module position data for odometry
Browse files Browse the repository at this point in the history
  • Loading branch information
JayK445 committed Nov 27, 2024
1 parent 4bbdf87 commit 591d76b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/RobotState.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static RobotState getInstance() {

private RobotState() {}

/* update pose estimation based on odometry measurements */
/* update pose estimation based on odometry measurements, based on wpimath */
public void addOdometryMeasurement(OdometryMeasurement measurement) {
Twist2d twist =
DriveConstants.KINEMATICS.toTwist2d(lastWheelPositions, measurement.wheelPositions());
Expand Down

0 comments on commit 591d76b

Please sign in to comment.