mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Adding callbacks for notifying when the distance per pulse changes (#861)
This commit is contained in:
committed by
Peter Johnson
parent
ee33296e1f
commit
ca36d1dce6
@@ -254,6 +254,7 @@ void HAL_SetEncoderDistancePerPulse(HAL_EncoderHandle encoderHandle,
|
||||
return;
|
||||
}
|
||||
encoder->distancePerPulse = distancePerPulse;
|
||||
SimEncoderData[encoder->index].SetDistancePerPulse(distancePerPulse);
|
||||
}
|
||||
void HAL_SetEncoderReverseDirection(HAL_EncoderHandle encoderHandle,
|
||||
HAL_Bool reverseDirection,
|
||||
|
||||
Reference in New Issue
Block a user