mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Make SwerveDriveKinematics.toChassisSpeeds() public (#1976)
This commit is contained in:
@@ -149,7 +149,7 @@ public class SwerveDriveKinematics {
|
||||
* module states should be same as passed into the constructor of this class.
|
||||
* @return The resulting chassis speed.
|
||||
*/
|
||||
ChassisSpeeds toChassisSpeeds(SwerveModuleState... wheelStates) {
|
||||
public ChassisSpeeds toChassisSpeeds(SwerveModuleState... wheelStates) {
|
||||
if (wheelStates.length != m_numModules) {
|
||||
throw new IllegalArgumentException(
|
||||
"Number of modules is not consistent with number of wheel locations provided in "
|
||||
|
||||
Reference in New Issue
Block a user