[wpimath] Fix hardcoded module count in SwerveDriveKinematics.resetHeading() (#5762)

Fixes #5761.
This commit is contained in:
Tyler Veness
2023-10-14 21:51:15 -07:00
committed by GitHub
parent c0b4c6cce6
commit fd427f6c82

View File

@@ -99,7 +99,7 @@ public class SwerveDriveKinematics
"Number of headings is not consistent with number of module locations provided in "
+ "constructor");
}
m_moduleHeadings = Arrays.copyOf(moduleHeadings, 4);
m_moduleHeadings = Arrays.copyOf(moduleHeadings, m_numModules);
}
/**