|
Autonomous help
Our team was trying to make an autonomous function that would turn until a certain degree was measured by the gyro then move forward. Our problem is that were not sure how to get it to work well. We have a code that does this, but only reads the gyro every 1-2 seconds which would let the destined range be passed when spinning. How would we go about doing this so that the gyro gets a reading every tenth of a second, but running motors so that spin occurs at the same time until a specified range is reached?
|