libkipr  1.0.0
Gyrometer

Functions

signed short gyro_x ()
 
signed short gyro_y ()
 
signed short gyro_z ()
 
int gyro_calibrate ()
 

Detailed Description

Function Documentation

◆ gyro_calibrate()

int gyro_calibrate ( )

Calibrates gyroscope

Sets a low-pass filter. Put at beginning of your program or before you use gyroscope commands if you want calibrated output.

◆ gyro_x()

signed short gyro_x ( )

Gets the sensed x rotation

Returns
The latest signed x rotation value

Wallaby: +/- 250 degree/sec range, 1024 per 250 degrees

Wombat: +/- 250 degree/sec range, 512 per 250 degrees

◆ gyro_y()

signed short gyro_y ( )

Gets the sensed y rotation

Returns
The latest signed y rotation value

Wallaby: +/- 250 degree/sec range, 1024 per 250 degrees

Wombat: +/- 250 degree/sec range, 512 per 250 degrees

◆ gyro_z()

signed short gyro_z ( )

Gets the sensed z rotation

Returns
The latest signed z rotation value

Wallaby: +/- 250 degree/sec range, 1024 per 250 degrees

Wombat: +/- 250 degree/sec range, 512 per 250 degrees