Switches Java to use HAL Constants (#145)

This commit is contained in:
Thad House
2016-07-08 00:08:07 -07:00
committed by Peter Johnson
parent 4a3e3a6324
commit be2647d44e
22 changed files with 857 additions and 8 deletions

View File

@@ -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;