Hey everyone, our team just added 2 integrated motor encoders to our flywheels (which we are using for full court shots) in order to compensate for loss in speed everytime a ball travels through. However i am unable to get accurate readings from the ime’s. They are wired in a daisy chain and blinck green as well as turn solid green when a full power. However, the encoders are not returning values in the debug screen. They appear to work for a slit second when the motors turn on but then go to zero. Any ideas as to the problem?
Did you screw down the encoder to tight? Screwing it too tight can cause problems
Ok i will losen them, will update if that solves the problem. Thanks a lot!
I think you are probably setting the encoder value to 0 in your code. Take a screen shot of your motors and sensor setup and the motors tab in the debugger.
the encoder values are going from 0 to 2 or negative 2 and back again.
UPDATE: Loosening the encoder did not help.
When I increased the power to the motor from 61 to 80, i began to get values. However this doesnt help me as I must run the flywheels at 61, why would it work at higher speeds and not lower?