first commit

Dependencies:   mbed MMA8451Q

Revision:
12:f6139597354e
Parent:
10:b0999f69c775
Child:
14:eb9c58c0f8cd
--- a/state_control.h	Tue Oct 26 14:00:26 2021 +0000
+++ b/state_control.h	Tue Oct 26 14:02:20 2021 +0000
@@ -29,6 +29,7 @@
 
 void _stop(void){
    steering_enabled =false;
+   // enable_brakes();
     brakeLeftBool = true;
     brakeRightBool = true;
     motor_enabled = false;  
@@ -36,7 +37,8 @@
  
     }; 
 void _run(void){
-    // TODO: realease brakes, start the motors 
+    // TODO: realease brakes, start the motors
+    // disable_brakes(); 
     brakeLeftBool = false;
     brakeLeftBool = false;
     motor_enabled = true; 
@@ -46,8 +48,8 @@
     };
 void _wait(void){
      // release brakes, turn on steering system, do not start the motor
-     // left_brakes_enabled = false; 
-     // right_brakes_enabled = false; 
+    
+     // disable_brakes();
     brakeLeftBool = false;
     brakeLeftBool = false;
     motor_enabled = false;