Quote:
Originally Posted by StrMNX
so i've tried both sending the getSpeed() value to smartdashboard and having them printed out in the console, and either one report 0 while the roborio dashboard reports a RPM value. any way i can resolve this?
|
The RoboRIO dashboard? You mean in the self-test thing?
There's one more difference in their code and your code: You call reverseOutput, they call reverseSensor. Might make a difference?
Are you using the MagEncoder, or a different sensor?
Unfortunately, I don't own the hardware for this device, so I can't perform a test. I'm fairly certain getSpeed worked last year though. What does .get() return? Also, you might try seeing what getEncVelocity() returns.