Average Messfunktion eingebunden

This commit is contained in:
2016-09-25 10:51:37 +02:00
parent db2ca40d1a
commit 165df54c61
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ void setupAccelerometer(void) {
}
float getaccelerometerdata(void) {
float xyz[] = {getAccelerometerData('x', 1), getAccelerometerData('y', 1), getAccelerometerData('z', 1)};
float xyz[] = {getAccelerometerAverage('x', 1, 10), getAccelerometerAverage('y', 1, 10), getAccelerometerAverage('z', 1, 10)};
float temp;
int i, z;

2
main.c
View File

@@ -13,7 +13,7 @@ void shutdown(void) {
PI_THREAD (accelerometerupdater) {
while (updateAccelerometerValue() == 0) {
delay(500);
delay(10);
}
return 0; //Muss returned werden, da void *
}