Inverted Pendulum / Mbed 2 deprecated IP-Interface

Dependencies:   mbed QEI

Revision:
8:2abfdbf5a3b8
Parent:
6:8d2171811f14
Child:
22:c18f04d1dc49
--- a/Motor/Motor.h	Fri Nov 11 06:37:24 2016 +0000
+++ b/Motor/Motor.h	Fri Nov 11 21:19:06 2016 +0000
@@ -5,9 +5,15 @@
  
 class Motor {
 public:
-   Motor(PinName _M1PWM, PinName _M2PWM, PinName _M1DIR, PinName _M2DIR, PinName _D2, int signal_wait = 0, int step_wait = 500);
+   Motor(PinName _M1PWM, PinName _M2PWM, PinName _M1DIR, PinName _M2DIR, PinName _D2, int default_wait);
     void clockwise();
     void anticlockwise();
+    void clockwise(int wait);
+    void anticlockwise(int wait);
+    void step_clockwise(int steps);
+    void step_anticlockwise(int steps);
+    void step_anticlockwise(int steps, int wait);
+    void step_clockwise(int steps, int wait); 
 private:  
     DigitalOut M1PWM;
     DigitalOut M2PWM;
@@ -15,8 +21,7 @@
     DigitalOut M2DIR;
     DigitalOut D2;
     
-    int step_wait;
-    int signal_wait;
+    int default_wait;
 };
  
 #endif
\ No newline at end of file