TRR 2018 / Mbed 2 deprecated biniou-TRR2019-DLVV

Dependencies:   mbed MPU6050

Revision:
8:f23601373e8b
Parent:
6:ab9f3695633f
Child:
9:1b54bac6d9a7
--- a/chassis_mode.cpp	Sun Sep 29 20:22:43 2019 +0000
+++ b/chassis_mode.cpp	Wed Oct 02 22:25:12 2019 +0000
@@ -1,16 +1,18 @@
 #include "chassis_mode.h"
 
-double d_dist_one_step_odom;
+DigitalIn b_CHASSIS_Mode(PE_11);
+bool b_CHASSIS_with_pushbutton;
+double d_CHASSIS_dist_one_step_odom;
 
 void init_chassis_mode()
 {
-    chassisMode.mode(PullUp);
-    if(chassisMode.read()) {
-        b_chassis_with_pushbutton = false;
-        d_dist_one_step_odom = 0.06;
+    b_CHASSIS_Mode.mode(PullUp);
+    if(b_CHASSIS_Mode.read()) {
+        b_CHASSIS_with_pushbutton = false;
+        d_CHASSIS_dist_one_step_odom = 0.08;
     } else {
-        b_chassis_with_pushbutton = true;
-        d_dist_one_step_odom = 0.08;
+        b_CHASSIS_with_pushbutton = true;
+        d_CHASSIS_dist_one_step_odom = 0.066;
     }
     return;
 }
\ No newline at end of file