mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
Switches Java to use HAL Constants (#145)
This commit is contained in:
committed by
Peter Johnson
parent
4a3e3a6324
commit
be2647d44e
@@ -126,7 +126,7 @@ void PWM::SetBounds(double max, double deadbandMax, double center,
|
||||
// calculate the loop time in milliseconds
|
||||
int32_t status = 0;
|
||||
double loopTime =
|
||||
getLoopTiming(&status) / (kSystemClockTicksPerMicrosecond * 1e3);
|
||||
getLoopTiming(&status) / (HAL_getSystemClockTicksPerMicrosecond() * 1e3);
|
||||
wpi_setErrorWithContext(status, getHALErrorMessage(status));
|
||||
|
||||
if (StatusIsFatal()) return;
|
||||
|
||||
Reference in New Issue
Block a user