[wpilib] ArcadeDrive: Fix max output handling (#6051)

This commit is contained in:
Tyler Veness
2023-12-15 09:18:45 -08:00
committed by GitHub
parent 9599c1f56f
commit ab15dae887

View File

@@ -40,8 +40,8 @@ void DifferentialDrive::ArcadeDrive(double xSpeed, double zRotation,
auto [left, right] = ArcadeDriveIK(xSpeed, zRotation, squareInputs);
m_leftMotor->Set(left);
m_rightMotor->Set(right);
m_leftMotor->Set(left * m_maxOutput);
m_rightMotor->Set(right * m_maxOutput);
Feed();
}