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

Addresses some rounding errors on current servo angle. #179

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

EAGrahamJr
Copy link
Contributor

@EAGrahamJr EAGrahamJr commented Aug 17, 2023

Addresses #178 and now getAngle matches what was set in more cases.

Fixes mattjlewis#178 and now `getAngle` matches what was set.
@EAGrahamJr EAGrahamJr changed the title Fixes rounding error on current servo angle. Addresses some rounding errors on current servo angle. Aug 17, 2023
@mattjlewis mattjlewis merged commit 3640b3f into mattjlewis:main Aug 17, 2023
1 check passed
@mattjlewis
Copy link
Owner

Awesome - thanks for spotting and fixing.

@EAGrahamJr EAGrahamJr deleted the pca-178 branch August 17, 2023 21:52
@EAGrahamJr
Copy link
Contributor Author

This wasn't a complete fix -- there's still some discrepancies. I'll re-open the bug.

@mattjlewis
Copy link
Owner

There are some other occurrences of Math.floor - need to double check implication of changing to Math.round - should be safe...

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