Sets motor currents based on input motorvalue

Revision:
2:91ea2963629a
Parent:
1:84cb991c4d28
diff -r 84cb991c4d28 -r 91ea2963629a motorConfig.h
--- a/motorConfig.h	Sun Oct 22 08:43:06 2017 +0000
+++ b/motorConfig.h	Mon Oct 23 13:47:38 2017 +0000
@@ -4,21 +4,14 @@
 #include "mbed.h"
 #include "FastPWM.h"
 
-enum robotStates {KILLED, ACTIVE, CALIBRATE};
-
 class motorConfig {
 public:
-    motorConfig(PinName, PinName, PinName, PinName, PinName);
-    robotStates currentState;
+    motorConfig(PinName, PinName);
     void setMotor(float motorValue);
     void turnMotorOn();
-    void killSwitch();
+    void kill();
     
-private:
-    DigitalOut ledG;
-    DigitalOut ledR;
-    DigitalOut ledB;
-    
+private:    
     DigitalOut directionPin; //D4
     PwmOut pwmPin; //D5
     };