Algoritmo funcionando com a biblioteca de inatividade utilizando dos dados do acelerômetro e a biblioteca de PeakSearch se utilizando dos dados filtrados pelo filtro Kalman.

Dependencies:   mbed MatrixMath Matrix nrf51_rtc BMP180 MPU9250

Revision:
4:215c9d6d1c80
Parent:
3:db3f7831bcea
Child:
5:d87c25f009d1
--- a/main.cpp	Wed Jul 17 13:17:40 2019 +0000
+++ b/main.cpp	Thu Jul 18 12:06:34 2019 +0000
@@ -165,9 +165,9 @@
         
     //BMP180        
         bmp180.startTemperature();
-        wait_ms(5);     // Wait for conversion to complete
+        //wait_ms(5);     // Wait for conversion to complete
         bmp180.startPressure(BMP180::ULTRA_LOW_POWER);
-        wait_ms(10);    // Wait for conversion to complete
+        //wait_ms(10);    // Wait for conversion to complete
         flagNewCapture = true;  
     } 
 } //end get_values() 
@@ -266,8 +266,7 @@
                 } // end if     
         //////////////////////////////////////////////////////////////////////////////////////////////     
                 Open.printf(buff);      //Printing values on the SD card   
-                
-                
+                /*
                 t2=t.read_us();
                 if ((t2 - t1) < TimeInterrupt)
                 {
@@ -275,6 +274,7 @@
                     led=OFF;
                 }//end if time
                 led=ON;
+                */
                 flagPrint=0;
             } //end if flag print        
             flagNewCapture = false;