Thread: Java Gyro help
View Single Post
  #2   Spotlight this post!  
Unread 01-03-2014, 22:45
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Java Gyro help

Quote:
Originally Posted by tophkissane View Post
We are using a field-centric drive system this year with mecanum wheels. In autonomous we want to start with the side of the robot facing down field so instead of restarting the gyro we want it to start at 90 degrees. I am having trouble figuring out how to do this though. Any help is much appreciated
Just zero it, then add 90 degrees to the value you read from the gyro.