Thread: KOP Gyro
View Single Post
  #4   Spotlight this post!  
Unread 11-12-2005, 19:21
Andrew Blair's Avatar
Andrew Blair Andrew Blair is offline
SAE Formula is FIRST with Gasoline.
FRC #0306 (CRT)
Team Role: Alumni
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Corry
Posts: 1,193
Andrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond repute
Send a message via AIM to Andrew Blair Send a message via Yahoo to Andrew Blair
Re: KOP Gyro

The BEI kit gyro is an analog device. On the basic stamp, I believe that there are macros (thats BASIC talk i think...) that point to built in ADC's, and you just uncomment them to access them. Be careful, on the STAMP brain, you'll prolly have to comment some unused variables in. Its very limited on usable variable space. Then, using a scaling factor, convert the output number into a angle measurement. Sorry, can't tell you the exact math, but if you obtain Kevin Watson's gyro code it either explains it, or you can reverse engineer it. You can PM him (http://www.chiefdelphi.com/forums/me...hp?userid=1028) and he might be able to help with the concept.

http://kevin.org/frc/ <<Gyro Code

Remember, gyro's output angular rate, not absolute position/angle.

Good luck!
__________________
Reading makes a full man, conference a ready man, and writing an exact man.
-Sir Francis Bacon

"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
-Albert Einstein