FIRST-Tech-Challenge / FtcRobotController

BSD 3-Clause Clear License
685 stars 3.96k forks source link

DCMotorEx getVelocity overflow #965

Open Ridleyyy opened 2 months ago

Ridleyyy commented 2 months ago

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 commented 2 months ago

NB: this was previously reported at https://github.com/FIRST-Tech-Challenge/SkyStone/issues/241