Adding callbacks for notifying when the distance per pulse changes (#861)

This commit is contained in:
PJ Reiniger
2018-01-02 17:53:39 -05:00
committed by Peter Johnson
parent ee33296e1f
commit ca36d1dce6
3 changed files with 50 additions and 0 deletions

View File

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