View Single Post
  #4   Spotlight this post!  
Unread 28-03-2014, 22:16
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.
Reply With Quote