Create this program

Dependencies:   mbed HCSR04 HMC6352 PID TextLCD

Revision:
5:e07e380ddb93
Parent:
3:901d18b901b4
Child:
6:44c3bfbe2553
--- a/motor.h	Fri Aug 07 06:51:51 2015 +0000
+++ b/motor.h	Sat Aug 08 12:39:18 2015 +0000
@@ -12,6 +12,7 @@
 
 class Motor {
 public:
+    Motor();
     Motor(PinName normalDirect, PinName reverseDirect, PinName pwm);
     ~Motor();
     int  setLimit(float powerLimit = 1);
@@ -19,7 +20,7 @@
     void run(float power); // input -1 ~ 1
     void brake(void);
 
-private:
+protected:
     float limit;
     PwmOut* powerLevel;
     DigitalOut normal;