View Single Post
  #5   Spotlight this post!  
Unread 28-01-2006, 23:38
yoyodyne yoyodyne is offline
Registered User
AKA: Greg Smith
FRC #0116 (Epsilon Delta)
Team Role: Engineer
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Reston, VA
Posts: 61
yoyodyne is a splendid one to beholdyoyodyne is a splendid one to beholdyoyodyne is a splendid one to beholdyoyodyne is a splendid one to beholdyoyodyne is a splendid one to beholdyoyodyne is a splendid one to beholdyoyodyne is a splendid one to behold
Re: ACCELEROMETER! && GYRO!!!????

Quote:
Originally Posted by Salik Syed
it shouldn't read greater than 1024 though... it is a 10 bit sensor !?!?

anyways what ken suggested is the best idea.

set up a long variable then basically just add up the gyro signal to it @ a set interval.
then turn the robot 90 degrees and see what the long variables value is.
If you are using Kevin Watson's code, then the output is either in:

// Pick the angular unit by removing the // from one of these two lines.
#define MILLIRADIANS
// #define TENTHS_OF_A_DEGREE

I have not fully analyzed the code so I don't know for sure how it rolls over when it crosses zero but it probably does. If you choose milliratians then the output should go to 2*PI*1000, about 6200, if tenths of degree then 3600 or so.