Elisa3
|
Accelerometer module. More...
Go to the source code of this file.
Defines | |
#define | ACCELEROMETER_H |
Functions | |
void | initAccelerometer () |
Test which device is mounted on the robot and configure it. | |
unsigned char | initADXL345 () |
Configure the ADXL345 accelerometer (2g sensitivity, 10 bits resolution). | |
unsigned char | initMMA7455L () |
Configure the MMA74565L accelerometer (2g sensitivity, 10 bits resolution). | |
void | readAccelXY () |
void | readAccelXYZ () |
void | computeAngle () |
Accelerometer module.
The I2C communication is initialized to work with the accelerometer. There are functions to work with both the Freescale MMA7455 and the Analog Device ADXL345 accelerometers.
#define ACCELEROMETER_H |
void computeAngle | ( | ) |
void initAccelerometer | ( | ) |
Test which device is mounted on the robot and configure it.
unsigned char initADXL345 | ( | ) |
Configure the ADXL345 accelerometer (2g sensitivity, 10 bits resolution).
unsigned char initMMA7455L | ( | ) |
Configure the MMA74565L accelerometer (2g sensitivity, 10 bits resolution).
void readAccelXY | ( | ) |
void readAccelXYZ | ( | ) |