View Single Post
  #8   Spotlight this post!  
Unread 17-02-2016, 23:10
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: Run Motors at the Same Speed

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.
Reply With Quote