mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpilib] ArcadeDrive: Fix max output handling (#6051)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user