Definitions in accelerometer.h

Preprocessor macro definitions for the accelerometer.h header file in this library.

Definitions:

#define ACCELEROMETER_CALCULATE_ROLL (atan(x / sqrt(y * y + z * z)) * 180 * M_1_PI)
Calculates roll based on force values.

Deprecated:

Use the Sensor API (bps/sensor.h).

This is a convenience macro. Requires libm.

#define ACCELEROMETER_CALCULATE_PITCH (atan(y / sqrt(x * x + z * z)) * 180 * M_1_PI)
Calculates pitch based on force values.

Deprecated:

Use the Sensor API (bps/sensor.h).

This is a convenience macro. Requires libm.

Library:

libbps (For the qcc command, use the -l bps option to link against this library)