FRC3494 / 3494_2019_repo

FRC team 3494's 2019 robot source code.
GNU General Public License v3.0
2 stars 1 forks source link

NavX angle may not start at 0 #16

Closed BoxWizard000000 closed 5 years ago

BoxWizard000000 commented 5 years ago

The resetValue variable is used to reset the fused heading (since the reset method only resets the gyro.

The resetValue shouldn't be initialized to 0 in the constructor, but rather to whatever angle the navx starts at.

Fix this by calling our custom reset method instead of initializing to 0.