team116 / ed2017

1 stars 0 forks source link

navX Reset() only resets the Gyro Z axis #9

Closed cartycrabber closed 7 years ago

cartycrabber commented 7 years ago

So apparently the navX reset() function only resets the gyro's Z axis. Because the roborio, and thus the gyro, is mounted sideways, we are not using the Z axis for yaw. I've opened an issue on the navX github, so we'll see what they say. After a quick look through the navX code, it doesn't seem like it would be too difficult to fix this ourselves. If they don't push a quick fix we might just do it for them.

This problem effects the turnDegrees() function in mobility (#4), which reset's the gyro angle at the start of the operation

cartycrabber commented 7 years ago

Someone commented on the issue saying to use the OmniMount feature. Will have to remember to do this.