this is program for mbed ,to relay MCUcomm data to servo

Dependencies:   Servo mbed

Revision:
0:09bf8e3091e8
Child:
1:0fe52e356d01
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/command/command.h	Wed Nov 28 17:12:00 2012 +0000
@@ -0,0 +1,28 @@
+//command.h
+
+// command list
+ 
+#include "Servo.h"
+#include "mbed.h"
+
+
+
+class Command : public Servo
+{
+public:
+    Command(PinName pin);
+    
+    void targetPosition(int number ,int receive);
+    void homePosition(int number ,int receive);
+    void onOff();
+    int getPosition();
+    int getTime();
+    int getHomeposition();
+    Command& operator= (float percent);
+    Command& operator= (Command& rhs);
+protected:
+    bool _on;
+    short int _position;
+    short int _time;
+    short int _homePosition;
+};
\ No newline at end of file