Skip to content

Commit

Permalink
Reverted changes.
Browse files Browse the repository at this point in the history
Signed-off-by: thenetworkgrinch <thenetworkgrinch@users.noreply.github.com>
  • Loading branch information
thenetworkgrinch committed Jun 14, 2024
1 parent 4271af0 commit ed02ee7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/swervelib/SwerveDrive.java
Original file line number Diff line number Diff line change
Expand Up @@ -666,8 +666,7 @@ public ChassisSpeeds getRobotVelocity()
public void resetOdometry(Pose2d pose)
{
odometryLock.lock();
SwerveModulePosition[] positions = getModulePositions();
swerveDrivePoseEstimator.resetPosition(getYaw(), positions, pose);
swerveDrivePoseEstimator.resetPosition(getYaw(), getModulePositions(), pose);
odometryLock.unlock();
kinematics.toSwerveModuleStates(ChassisSpeeds.fromFieldRelativeSpeeds(0, 0, 0, getYaw()));
}
Expand Down

0 comments on commit ed02ee7

Please sign in to comment.