mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Fix usages of std::min and std::max to be windows safe (#4887)
This commit is contained in:
@@ -33,8 +33,8 @@ DifferentialDriveVoltageConstraint::MinMaxAcceleration(
|
||||
auto wheelSpeeds =
|
||||
m_kinematics.ToWheelSpeeds({speed, 0_mps, speed * curvature});
|
||||
|
||||
auto maxWheelSpeed = std::max(wheelSpeeds.left, wheelSpeeds.right);
|
||||
auto minWheelSpeed = std::min(wheelSpeeds.left, wheelSpeeds.right);
|
||||
auto maxWheelSpeed = (std::max)(wheelSpeeds.left, wheelSpeeds.right);
|
||||
auto minWheelSpeed = (std::min)(wheelSpeeds.left, wheelSpeeds.right);
|
||||
|
||||
// Calculate maximum/minimum possible accelerations from motor dynamics
|
||||
// and max/min wheel speeds
|
||||
|
||||
Reference in New Issue
Block a user