You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i found a bug in the Arduino Encoder library:
The setRatio method is defined with an int parameter:
void MeEncoderOnBoard::setRatio(int16_t RatioValue);
Of course this has to be a float. otherwise you cannot set the right gearbox ratio value:
void MeEncoderOnBoard::setRatio(float RatioValue);
Files: MeEncoderOnBoard.cpp + .h
Just changing the definition to float did it for me.
The text was updated successfully, but these errors were encountered:
i found a bug in the Arduino Encoder library:
The setRatio method is defined with an int parameter:
void MeEncoderOnBoard::setRatio(int16_t RatioValue);
Of course this has to be a float. otherwise you cannot set the right gearbox ratio value:
void MeEncoderOnBoard::setRatio(float RatioValue);
Files: MeEncoderOnBoard.cpp + .h
Just changing the definition to float did it for me.
The text was updated successfully, but these errors were encountered: