Elisa3
sensors.h
Go to the documentation of this file.
00001 
00002 #ifndef SENSORS_H
00003 #define SENSORS_H
00004 
00005 
00022 #include <stdlib.h>
00023 #include <math.h>
00024 #include "variables.h"
00025 #include <avr\io.h>
00026 #include "leds.h"
00027 #include "twimaster.h"
00028 
00029 #ifdef __cplusplus
00030 extern "C" {
00031     #include <math.h>
00032 #endif
00033 
00040 void calibrateSensors();
00041 
00046 void initAccelerometer();
00047 
00053 unsigned char initADXL345();
00054 
00060 unsigned char initMMA7455L();
00061 
00067 void readAccelXY();
00068 
00074 void readAccelXYZ();
00075 
00076 // the following two functions split "readAccelXYZ", used with aseba.
00077 void readAccelXYZ_1();
00078 void readAccelXYZ_2();
00079 
00089 void computeAngle();
00090 
00091 #ifdef __cplusplus
00092 } // extern "C"
00093 #endif
00094 
00095 #endif
00096 
 All Files Functions Variables Defines