calculate

Dependencies:   mbed X_NUCLEO_IKS01A3 Mahony_Algorithm

Revision:
4:7d13076ecece
Parent:
3:795998b31c32
Child:
5:62994bb9fff9
--- a/CalculateData.h	Thu Apr 16 19:34:49 2020 +0000
+++ b/CalculateData.h	Fri Apr 24 15:10:06 2020 +0000
@@ -29,6 +29,7 @@
 #include "mbed.h"
 #include "XNucleoIKS01A3.h"
 #include "Liste.h"
+#include "MahonyAHRS.h"
 
 class CalculateData {
 
@@ -41,6 +42,7 @@
     void                        enable();
     void                        disable();
     void                        getValue(Liste *list);
+    void                        update();
     
     
 
@@ -58,15 +60,15 @@
     
     Thread                      thread;
     Timer                       timer;
+    MahonyAHRS                  *mahony;
     
-    int                         array_acc[3][30];       //Matrix periodiv Sensor Data
-    int                         array_gyro[3][30];      //Matrix periodiv Sensor Data
+    int                         array_acc[3][100];       //Matrix periodic Sensor Data
+    int                         array_gyro[3][100];      //Matrix periodic Sensor Data
+    int                         array_mag[3][100];      //Matrix periodic Sensor Data
     int                         counter;                //count Matrix records
     bool                        periodic_task;          //boolean periodic condition
     
     
-    int                         buf_acc[3];         
-    int                         buf_gyro[3];
     double                      acc[3];         
     double                      gyro[3];
     double                      acc_old[3];