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.