I have been using the gyroscope to turn for a while now. In RobotC, I could get it working mostly consistently. The only issue would be some 1-2 degree error.
We updated to V5, and everything is almost working perfectly. The turning seems just as accurate as before. There’s only about a 1-2 degree error. However, at frequent random times, the robot will turn over 300 degrees too much before stopping. In addition, sometimes it won’t stop at all.
My first assumption was that it was a faulty gyroscope. I replaced it. The problem persists.
I then thought it was disconnecting sometimes, so I replaced the 3-wire cord. The problem persists.
I am completely out of ideas. My autonomous either works perfectly or decides to stop in the middle and do donuts. Any help would be appreciated.