|
Re: Gyro for driving straight
It's a lot easier to do with Arcade Drive.
Reset the encoder and the gyro before you start moving. Use the gyro angle (multiplied by an empirically determined gain value) as the X axis "turn" input. Put the Gyro Get and the Arcade Drive blocks in a while loop that terminates when the encoder reaches the desired value.
|