mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Replace .to<double>() and .template to<double>() with .value() (#3667)
It's a less verbose way to do the same thing.
This commit is contained in:
@@ -41,11 +41,11 @@ bool IsTimingPaused() {
|
||||
}
|
||||
|
||||
void StepTiming(units::second_t delta) {
|
||||
HALSIM_StepTiming(static_cast<uint64_t>(delta.to<double>() * 1e6));
|
||||
HALSIM_StepTiming(static_cast<uint64_t>(delta.value() * 1e6));
|
||||
}
|
||||
|
||||
void StepTimingAsync(units::second_t delta) {
|
||||
HALSIM_StepTimingAsync(static_cast<uint64_t>(delta.to<double>() * 1e6));
|
||||
HALSIM_StepTimingAsync(static_cast<uint64_t>(delta.value() * 1e6));
|
||||
}
|
||||
|
||||
} // namespace frc::sim
|
||||
|
||||
Reference in New Issue
Block a user