TRR 2018 / Mbed 2 deprecated biniou-TRR2019-DLVV

Dependencies:   mbed MPU6050

Revision:
9:1b54bac6d9a7
Child:
10:e63fe4080760
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/log.h	Thu Oct 03 23:28:56 2019 +0000
@@ -0,0 +1,28 @@
+#ifndef H_LOG
+#define H_LOG
+
+
+#define LOG_SIZE 2000
+#include "mbed.h"
+
+typedef struct sample {
+   int timestamp;
+   double left_90;
+   double right_90;
+   double left_45;
+   double right_45;
+   double pwm_dir;
+   double odom;
+   double speed;
+}s_Sample;
+
+
+void log_start(int duration_ms);
+void log_check();
+extern Serial rs_LOG_pc;
+extern bool b_LOG_READY;
+extern s_Sample s_LOG_history[LOG_SIZE];
+extern int i_LOG_index_data;
+
+
+#endif
\ No newline at end of file