first commit

Dependencies:   mbed MMA8451Q

Revision:
11:210a33ee774f
Parent:
10:b0999f69c775
Child:
13:0091da3021df
--- a/driving.h	Tue Oct 26 02:19:07 2021 +0000
+++ b/driving.h	Tue Oct 26 14:00:26 2021 +0000
@@ -56,6 +56,15 @@
 bool brakeLeftBool = false;
 bool brakeRightBool = false;
 
+void disable_brakes(void){
+    brakeLeft=0; 
+    brakeRight=0;
+    };
+void enable_brakes(void) {
+    brakeLeft = 1;
+    brakeRight = 1;
+    };
+
 
 /* 
     Always set duty cycle to zero (disabling the motor), unless the motor is enabled 
@@ -145,7 +154,7 @@
             
             if (brakeRightBool == true)
             {
-                errorAreaRight = 0.0;
+                errorAreaRight = 0.0; 
                 brakeRight = 1;
             } else {
                 brakeRight = 0;