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

ST/LPR530AL.h

The LPR530AL is a 2 axis gyro that can measure rotations up to 1200 degrees per second in the x and y axes.
Data sheet:http://www.sparkfun.com/datasheets/Sensors/IMU/lpr530al.pdf
Requires 2 ADC channels.
Note that the device requires a 3.3v supply.
The device can measure fast rotations up to 1200 degrees per second; or slower rotation up to 300 degrees per second with greater accuracy. The device provides different output pins for the fast or slow options.
To create the device use:-
LPR530AL lpr = MAKE_LPR530AL(ADC0, ADC1, TRUE);
Where the last parameter is TRUE for the slower output, or FALSE for the faster output.
Don't forget that you should initialise the device in appInitHardware:-
gyroInit(lpr);
You can read the device by using:
gyroRead(lpr);
and then the results are in:-
lpr.gyro.x_axis_degrees_per_second
lpr.gyro.y_axis_degrees_per_second

Valid XHTML 1.0 Transitional