mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[build] Fix Gradle compile_commands.json and clang-tidy warnings (#5977)
This commit is contained in:
@@ -47,7 +47,7 @@ class SlewRateLimiter {
|
||||
m_negativeRateLimit{negativeRateLimit},
|
||||
m_prevVal{initialValue},
|
||||
m_prevTime{
|
||||
units::microsecond_t(wpi::math::MathSharedStore::GetTimestamp())} {}
|
||||
units::microsecond_t{wpi::math::MathSharedStore::GetTimestamp()}} {}
|
||||
|
||||
/**
|
||||
* Creates a new SlewRateLimiter with the given positive rate limit and
|
||||
|
||||
@@ -166,7 +166,7 @@ void SwerveDriveKinematics<NumModules>::DesaturateWheelSpeeds(
|
||||
auto k = units::math::max(translationalK, rotationalK);
|
||||
|
||||
auto scale = units::math::min(k * attainableMaxModuleSpeed / realMaxSpeed,
|
||||
units::scalar_t(1));
|
||||
units::scalar_t{1});
|
||||
for (auto& module : states) {
|
||||
module.speed = module.speed * scale;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user