![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
this is program for mbed ,to relay MCUcomm data to servo
Diff: command/command.h
- 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