TRR 2018 / Mbed 2 deprecated biniou-TRR2019-DLVV

Dependencies:   mbed MPU6050

Revision:
12:58ad06f9847d
Parent:
11:2156cb77d0d6
diff -r 2156cb77d0d6 -r 58ad06f9847d log.h
--- a/log.h	Fri Oct 04 09:58:51 2019 +0000
+++ b/log.h	Fri Oct 04 22:20:23 2019 +0000
@@ -2,7 +2,8 @@
 #define H_LOG
 
 
-#define LOG_SIZE 5000
+#define LOG_SIZE 3000
+#define LOG_PERIOD_MS 40
 #include "mbed.h"
 
 typedef struct sample {
@@ -14,6 +15,15 @@
    int pwm_dir;
    double odom;
    double speed;
+   double angle_bord0;
+   double angle_bord1;
+   double angle_bord2;
+   double angle_bord3;
+   double angle_bord4;
+   double angle_bord5;
+   double angle_pos;
+   double angle;
+   double distParcourue;
 }s_Sample;
 
 
@@ -21,8 +31,7 @@
 void log_check();
 void log_stop();
 void log_pc();
-extern Serial rs_LOG_pc;
-//extern Serial rs_LOG_odroid;
+extern Serial rs_LOG;
 extern bool b_LOG_READY;
 extern s_Sample s_LOG_history[LOG_SIZE];
 extern int i_LOG_index_data;