changes to motor library

Dependents:   pid-car-example

Fork of motor by Lawrence Harlow

Branch:
motorupdate
Revision:
21:aaa482dad274
Parent:
20:ca87a36c7688
Child:
22:85cf7b6b0422
--- a/motor.cpp	Wed Nov 30 11:10:07 2016 +0000
+++ b/motor.cpp	Wed Nov 30 11:15:31 2016 +0000
@@ -4,18 +4,7 @@
 DigitalOut myled(LED1);
 
 //adam sucks
-void TurnOn();
-void runMotor();
-void DefaultMode();
 
-//Speed control
-
-float setDutyCycle(float dutyC, int w,int targetW);
-
-//Corner Control
-
-void dutyCycleCorner( float speed, float angle);
-void corner(float &w1,float &w2,float deltaTheta,int maxspeed);
 
 
 //Variables
@@ -161,7 +150,8 @@
     if(leftOrRight){
           w1= speed+ deltaW;
           w2= speed -deltaW;
-        else{
+          }
+    else{
             w1= speed- deltaW;
             w2= speed +deltaW;
         }