Thread: Reset navX roll
View Single Post
  #3   Spotlight this post!  
Unread 07-02-2016, 21:28
Dan Waxman Dan Waxman is offline
Registered User
FRC #0263 (Aftershock)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2016
Location: Long Island
Posts: 31
Dan Waxman is an unknown quantity at this point
Re: Reset navX roll

While I don't think it's supported by navx, you can get around and effectively reset. I would do this by having a reset method which reads the current roll and sets it to a variable (lets say lastResetRoll). Then just subtract lastResetRoll from the current roll whenever you access roll and you have an effectively "reset" roll.