View Single Post
  #9   Spotlight this post!  
Unread 18-02-2016, 13:46
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 243
BitTwiddler is on a distinguished road
Re: Run Motors at the Same Speed

Quote:
Originally Posted by Alan Anderson View Post
Yep. Use a gyro to sense the direction the robot is facing, and use the difference between that and the desired direction to adjust the motors so the robot turns toward the target direction.

One of the best software tools for doing that is PID control on the X axis "steering" input of an Arcade Drive function.
Hmm. You've given me "plan B". Good idea.
Reply With Quote