View Single Post
  #6   Spotlight this post!  
Unread 04-02-2012, 10:51
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,089
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: Integrating Gyro Code

Quote:
Originally Posted by adf0221 View Post
Yes that's exactly what we needed! thanks a bunch! do you have any recommendation as to how we would implement this, mainly refreshing the gyro value after we use it the first time?
I don't understand the question. What do you mean by "refreshing the gyro value after you use it the first time"?

The code I showed you should be in TeleOp so that it runs every time TeleOp runs (which is about once every .02 seconds).

That is to say, every time TeleOp runs you should read the new rate from the gyro and calculate the new position.

Reply With Quote