UNFINISHED

Dependencies:   HCSR04 SRF05 mbed

Revision:
1:60c79e942c98
Parent:
0:4ca3e247b86a
--- a/motor.h	Fri Jun 08 12:29:16 2018 +0000
+++ b/motor.h	Fri Jun 08 22:22:10 2018 +0000
@@ -1,6 +1,5 @@
 #ifndef MOTOR_H
 #define MOTOR_H
-#include "mbed.h"
 class Motor
 {
 public:
@@ -30,19 +29,6 @@
 
 };
 
-void Motor::setSpeed(float speed)
-{
-    if(speed > 0) {
-        motorA = direction?1:0;
-        motorB = direction?0:1;
-    } else {
-        motorA = direction?0:1;
-        motorB = direction?1:0;
-    }
 
-    motorSpeed = speed;
-    
-    motorS = abs(speed);
-}
 
 #endif
\ No newline at end of file