TRR 2018 / Mbed 2 deprecated biniou-TRR2019-DLVV

Dependencies:   mbed MPU6050

Revision:
6:ab9f3695633f
Parent:
5:8bbe640528bc
Child:
8:f23601373e8b
--- a/utils.h	Sun Sep 29 17:09:48 2019 +0000
+++ b/utils.h	Sun Sep 29 20:07:54 2019 +0000
@@ -2,15 +2,23 @@
 #define UTILS_H
 
 #include "mbed.h"
-
-/*
-Types
-*/
+#include "chassis_mode.h"
 
 /*
 Structs
 */
 
+typedef struct s_section {
+   double targetSpeed_mps;
+   double consigne_position;
+   double lng_section_m;
+   double coef_p;
+   double coef_i;
+   double coef_d;
+   s_section* nextSection;
+}s_Section;
+
+
 /*
 Globals
 */
@@ -19,9 +27,11 @@
 extern bool b_UTILS_flag_emergency_stop;
 
 extern Serial pc;
+extern Serial odroid;
 extern InterruptIn button;
 
-extern DigitalIn chassisMode;
+extern s_Section* s_UTILS_currentSection;
+
 
 /*
 Functions