TRR 2018 / Mbed 2 deprecated biniou-TRR2019-DLVV

Dependencies:   mbed MPU6050

Revision:
3:1b7eb426247e
Child:
4:efa207509f63
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sm_sections.cpp	Sun Sep 29 00:43:58 2019 +0000
@@ -0,0 +1,36 @@
+#include "sm_sections.h"
+
+s_Section* currentSection;
+
+s_Section section1;
+s_Section section2;
+
+
+void init_sm_sections(){
+
+ //section de départ
+    section1.nextSection = &section2;
+    section1.consigne_position = 0.75;
+    section1.targetSpeed_mps = 1.0;
+    section1.lng_section_m = 1.0;
+    section1.coef_p = 1.0;
+    section1.coef_d = 0.0;
+    section1.coef_i = 0.000;
+
+    //epingle 1
+    section2.nextSection = NULL;
+    section2.consigne_position = 0.75;
+    section2.targetSpeed_mps = 1.0;
+    section2.lng_section_m = 1.0;
+    section2.coef_p = 1.0;
+    section2.coef_d = 0.0;
+    section2.coef_i = 0.000;
+
+    return;
+}
+void update_sm_sections(){
+    return;
+}
+void output_sm_sections(){
+    return;
+}