![](/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:
- 1:0fe52e356d01
- Parent:
- 0:09bf8e3091e8
--- a/command/command.h Wed Nov 28 17:12:00 2012 +0000 +++ b/command/command.h Wed Dec 05 15:13:57 2012 +0000 @@ -14,14 +14,16 @@ void targetPosition(int number ,int receive); void homePosition(int number ,int receive); - void onOff(); + void on(); + void off(); + bool getPower(); int getPosition(); int getTime(); int getHomeposition(); Command& operator= (float percent); Command& operator= (Command& rhs); protected: - bool _on; + bool _power; short int _position; short int _time; short int _homePosition;