This season our team is working on a new swerve drive. We want to drive field-oriented so we implemented a NavX yaw reading into our code. We got it to work for a while but now whenever we do several spins and return to our initial orientation, the NavX reads 30 degrees in Yaw instead of the expected 0. We swapped the navX that was mounted on the rio and this kept happening.
Has anyone has had a similar problem in the past or know of a possible fix to try? Thanks