View Single Post
  #10   Spotlight this post!  
Unread 08-03-2006, 10:48
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
Re: Keeping a certain heading using a gyro

Quote:
Originally Posted by devicenull
Here's the thing: Either you need to detect when your driver is trying to go straight, and use the gyro then, or modify the drive code so it changes the angle that the gyro want's to be.. Unless you just want some sort of position holding code.

Either way, download the package of files for the gyro, take a look at how its used in user_routines.c, there's a bit more you need to do then just Reset_Gyro_Angle()
Actually, I do just want a position holding code.

After initializing the gyro and calculating the bias, would my code suffice with the addition of some type of control loop?
__________________