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

ST/LPRY530AL.h

Combines the LPR530AL and LY530ALH into a single 3 axis gyro.
To create the device use:-
LPRY530AL gyro = MAKE_LPRY530AL(ADC0,ADC1,AD2,slow)
Where slow is TRUE for the SLOW output, or FALSE for the FAST output.
Don't forget that you should initialise the device in appInitHardware:-
gyroInit(gyroaw);
You can read the device by using:
gyroRead(gyro);
and then the results are in:-
gyro.gyro.x_axis_degrees_per_second
gyro.gyro.y_axis_degrees_per_second
gyro.gyro.z_axis_degrees_per_second

Valid XHTML 1.0 Transitional