Preprocessor macro definitions for the accelerometer.h header file in this library.
#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.