[examples] Fix SwerveControllerCommand order of Module States (#3815)

DriveSubsystem::SetModulesStates applies module state to incorrect modules.

Fixes #3814.
This commit is contained in:
WarrenReynolds
2021-12-23 07:26:02 +11:00
committed by GitHub
parent 5158730b81
commit 6f91f37cd0

View File

@@ -69,8 +69,8 @@ void DriveSubsystem::SetModuleStates(
kDriveKinematics.NormalizeWheelSpeeds(&desiredStates,
AutoConstants::kMaxSpeed);
m_frontLeft.SetDesiredState(desiredStates[0]);
m_rearLeft.SetDesiredState(desiredStates[1]);
m_frontRight.SetDesiredState(desiredStates[2]);
m_frontRight.SetDesiredState(desiredStates[1]);
m_rearLeft.SetDesiredState(desiredStates[2]);
m_rearRight.SetDesiredState(desiredStates[3]);
}