Elisa3
accelerometer2.h File Reference
#include <stdlib.h>
#include <math.h>
#include "variables.h"
#include "twimaster.h"

Go to the source code of this file.

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 ()

Function Documentation

void computeAngle ( )

Test which device is mounted on the robot and configure it.

Returns:
none
unsigned char initADXL345 ( )

Configure the ADXL345 accelerometer (2g sensitivity, 10 bits resolution).

Returns:
1 in case of errors, 0 otherwise.
unsigned char initMMA7455L ( )

Configure the MMA74565L accelerometer (2g sensitivity, 10 bits resolution).

Returns:
1 in case of errors, 0 otherwise.
void readAccelXY ( )
void readAccelXYZ ( )
 All Data Structures Files Functions Variables Typedefs Defines