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:
5:d87c25f009d1
Parent:
1:d1002dc109b9
--- a/ble_comands.h	Thu Jul 18 12:06:34 2019 +0000
+++ b/ble_comands.h	Sat Jul 27 12:17:25 2019 +0000
@@ -1,8 +1,8 @@
 #include "ble_config.h"
-
+ 
 char data_ble[100];
 int flag_ble=0; 
-
+ 
 void onDataWritten(const GattWriteCallbackParams *params)   
 {
     
@@ -21,7 +21,7 @@
         } //end if "Start"
     }// end if params...
 } //end onDataWritten
-
+ 
 void getting_pacient_data()
 {
     char dia[20];
@@ -36,13 +36,13 @@
         ble.waitForEvent();
         if(flag_ble==1)
         {
-            uart->writeString("ErroMax");
+            uart->writeString("Threshold:");
             uart->writeString("\n");
             flag_ble=flag_ble+1;
         }
         if(flag_ble==3)
         {
-            Calibration=atof(data_ble);
+            Threshold=atof(data_ble);
             uart->writeString("Gravando...");
             uart->writeString("\n");
             flag_ble=flag_ble+1;