first commit

Dependencies:   mbed MMA8451Q

Revision:
16:8cd4dd323941
Parent:
14:eb9c58c0f8cd
Child:
17:d2c98ebda90b
--- a/state_control.h	Tue Oct 26 16:35:59 2021 +0000
+++ b/state_control.h	Tue Oct 26 17:06:39 2021 +0000
@@ -29,16 +29,14 @@
 
 void _stop(void){
    steering_enabled =false;
-   // enable_brakes();
-    brakeLeftBool = true;
-    brakeRightBool = true;
+    enable_brakes();
     motor_enabled = false;  
     turn_led(RED); 
  
     }; 
 void _run(void){
     // TODO: realease brakes, start the motors
-    // disable_brakes(); 
+    // 
     brakeLeftBool = false;
     brakeLeftBool = false;
     motor_enabled = true; 
@@ -48,8 +46,7 @@
      // release brakes, turn on steering system, do not start the motor
     
      // disable_brakes();
-    brakeLeftBool = false;
-    brakeLeftBool = false;
+     disable_brakes(); 
     motor_enabled = false;
     setpointLeft = 0.0;
     setpointRight = 0.0;