libwallaby  v23
The wallaby standard library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Accelerometer

Functions

signed short accel_x ()
 Gets the sensed x acceleration +/- 2G range, 1024 per G This should be approximately 0 when at rest and flat on a table. More...
 
signed short accel_y ()
 Gets the sensed y acceleration +/- 2G range, 1024 per G This should be approximately 0 when at rest and flat on a table. More...
 
signed short accel_z ()
 Gets the sensed z acceleration +/- 2G range, 1024 per G This should be approximately -1024 when at rest and flat on a table. More...
 
int accel_calibrate ()
 

Detailed Description

Function Documentation

int accel_calibrate ( )

Initiates a calibration of the accelerometer

Note
Not Yet Implemented
Returns
1: success 0: failure
signed short accel_x ( )

Gets the sensed x acceleration +/- 2G range, 1024 per G This should be approximately 0 when at rest and flat on a table.

Returns
The latest signed x acceleration value
signed short accel_y ( )

Gets the sensed y acceleration +/- 2G range, 1024 per G This should be approximately 0 when at rest and flat on a table.

Returns
The latest signed y acceleration value
signed short accel_z ( )

Gets the sensed z acceleration +/- 2G range, 1024 per G This should be approximately -1024 when at rest and flat on a table.

Returns
The latest signed z acceleration value