Encoders returning inconsistent values

I am experiencing some issues with the encoders on the gopigo, often negative values are being returned or even 0’s. No physical damage has been caused to the GoPiGo so I am unsure why this is the case. Is there any way to determine what has gone wrong or is there a fix for this?

Thank you

The encodersare no longer returning negative values, however I am now getting what seems like two versions of the encoder values. I have a function that reads and saves the encoder values when my script is started up and one that reads the values when the GoPiGo turns. I find that the initalising value is recorded as 180 but then the following readings are then below this number. Is this due to my functions or the encoders themselves.

Code can be found here: http://pastebin.com/wFVqsud0

Hey diggerdedoo,
Can you attach a picture of your GoPiGo and run the troubleshooting script from here https://www.youtube.com/watch?v=ZMadpIEYq5o and upload the log.

-Karan

Here is what you have requested karan.

The encoder test didn’t run so I ran that separately, it returned fails for the enc_tgt tests, attached it the results for encoder readings

Hey diggerdedoo,
I am wondering why the test did not run properly on your image. A good test output looks like this: http://www.dexterindustries.com/wp-content/uploads/2016/03/log-3.txt. What image are you using. Is it a Dexter Industries image and if so what is the date on it.

-karan