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

DCMotorEx getVelocity overflow #965

Open
Ridleyyy opened this issue Apr 9, 2024 · 2 comments
Open

DCMotorEx getVelocity overflow #965

Ridleyyy opened this issue Apr 9, 2024 · 2 comments

Comments

@Ridleyyy
Copy link

Ridleyyy commented Apr 9, 2024

It appears that the maximum return value of getVelocity() is limited due to variable size and as a result, when using systems that result in encoder readings with very high ticks per second, the overflow results in an incorrect value for the velocity of the encoder.

@Windwoes
Copy link
Member

NB: this was previously reported at FIRST-Tech-Challenge/SkyStone#241

@Windwoes
Copy link
Member

NB2: The OctoQuad FTC Edition, which is now legal for this season, does not experience 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