Skip to content

Commit

Permalink
Initialize swerve module positions
Browse files Browse the repository at this point in the history
  • Loading branch information
viggy96 committed Sep 29, 2024
1 parent df7093e commit 7a3b1a1
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ private SwervePoseEstimatorService(Matrix<N3,N1> odometryStdDev,
rRearModule.get().getPosition(syncedTimestamp)
};

// Get initial swerve positions
this.m_previousModulePositions = m_swerveModulePositionSupplier.apply(m_syncedTimestamp);

// Initialise kinematics
this.m_kinematics = new SwerveDriveKinematics(
lFrontModule.get().getModuleCoordinate(),
Expand Down

0 comments on commit 7a3b1a1

Please sign in to comment.