WebbotLib AVR library
WebbotLib It just does it
  C++ documentation  C documentation

InvenSense/IDG300.h

The IDG300 is a 2 axis gyro that can measure rotations up to 500 degrees per second.
Data sheet: http://www.sparkfun.com/datasheets/Components/IDG-300_Datasheet.pdf
Requires 2 ADC channels.
Note that the device requires a 3v supply.
To create the device use:-
IDG300 idg300 = MAKE_IDG300(ADC0, ADC1);
Don't forget that you should initialise the device in appInitHardware:-
gyroInit(idg300);
You can read the device by using:
gyroRead(idg300);
and then the results are in:-
idg300.gyro.x_axis_degrees_per_second
idg300.gyro.y_axis_degrees_per_second

Valid XHTML 1.0 Transitional