Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MeEncoderOnBoard Bug #59

Open
lemonfunk opened this issue Apr 24, 2019 · 0 comments
Open

MeEncoderOnBoard Bug #59

lemonfunk opened this issue Apr 24, 2019 · 0 comments

Comments

@lemonfunk
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant