![]() |
roneos
Operating System for the r-one robot
|
Interface to initialize and read 3D gyro data. More...
Go to the source code of this file.
Functions | |
void | gyro_init (void) |
Initialize gyro. More... | |
int32 | gyroGetValue (uint32 axis) |
Get gyro value on axis. More... | |
void | gyroUpdate (uint8 msgIn[]) |
Update gyro values. More... | |
Interface to initialize and read 3D gyro data.
void gyro_init | ( | void | ) |
Initialize gyro.
(gyroX, gyroY, gyroZ) initialized to 0.
int32 gyroGetValue | ( | uint32 | axis) |
Get gyro value on axis.
axis | specifies GYRO_X_AXIS, GYRO_Y_AXIS, or GYRO_Z_AXIS. |
void gyroUpdate | ( | uint8 | msgIn[]) |
Update gyro values.
gyroX, gyroY, and gyroZ are updated by values in msgIn that are concatenated in pairs according to axis. Each pair of 9-bit integers converted into one 16-bit integer.
msgIn | is array of length 6 |