|
|
@ -127,8 +127,8 @@ ENCODER_DiffState Encoder_ReceiveAnalyze(void) { |
|
|
|
|
|
|
|
// if must encoder rati multiplier
|
|
|
|
if (EncoderRate.encoderRateEnabled) { |
|
|
|
const float abs_diff = ABS(temp_diff); |
|
|
|
const float encoderMovementSteps = abs_diff / (ENCODER_PULSES_PER_STEP); |
|
|
|
const float abs_diff = ABS(temp_diff), |
|
|
|
encoderMovementSteps = abs_diff / (ENCODER_PULSES_PER_STEP); |
|
|
|
if (EncoderRate.lastEncoderTime) { |
|
|
|
// Note that the rate is always calculated between two passes through the
|
|
|
|
// loop and that the abs of the temp_diff value is tracked.
|
|
|
|