Flywheel Motor encoder problem

When I spin the flywheel in devices, it says the speed of the flywheel is 0 but the flywheel is spinning at max speed. I think its a motor encoder problem but i have tried replacing the motor and it still does not work.

Post the code.

Most like your code is at issue.

1 Like

oops it was a bad direct connect, sorry