mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[wpimath] Fix hardcoded module count in SwerveDriveKinematics.resetHeading() (#5762)
Fixes #5761.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user