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

Record _prev #6

Merged
merged 1 commit into from
Oct 30, 2017
Merged

Conversation

lachlan2k
Copy link

In the recent update which added the saving of _prev, and using that value for slew calculations, a bug was introduced that broke blrsMotorSet when used with immediate == true.

With the bug, say you were to blrsMotorSet(1, 127, true); and _prev is 80, the motor will immediately be set to 127, and then the task would set it to 80 + slew.

This fixes it by recording _prev when an immediate set is made.

@baylessj baylessj merged commit 76c7115 into purduesigbots:master Oct 30, 2017
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

Successfully merging this pull request may close these issues.

2 participants