View Single Post
  #9   Spotlight this post!  
Unread 08-03-2006, 10:35
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Keeping a certain heading using a gyro

the simple way to let the gyro steer your robot is to use the single-joystick algorithm for steering

zero the gyro reading as you have already discussed

then use the gyro heading signal as if it were the single-joystick command

if the robot starts going off course the gyro heading will become non-zero, and that error signal is then used to steer the drive train back to the zero heading.