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

Suggested fix for encoder motor speed #48

Open
WrickColl opened this issue Jan 8, 2019 · 1 comment
Open

Suggested fix for encoder motor speed #48

WrickColl opened this issue Jan 8, 2019 · 1 comment

Comments

@WrickColl
Copy link

In file examples/Firmware_for_MegaPi/Firmware_for_MegaPi.ino (0e.01.016 and earlier) line 1386
readShort(8) should be changed to readShort(9)
This is in the "runModule" function under the "ENCODERBOARD" case.
Buffer location 8 contains the "read_type", location 9 is where the "speed_value" starts.
The attached Node JS code runs two encoder motors at continuously varying speeds. Without the suggested modification, the motors only run at one forward or backward speed.

encoderMotorRunSpeed.zip

@MrHezhisheng
Copy link
Collaborator

Thanks , i will verify this problem.

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

2 participants