Quote:
Originally Posted by adf0221
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.