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

Dependencies:   Servo mbed

command/command.h

Committer:
matsu
Date:
2012-11-28
Revision:
0:09bf8e3091e8
Child:
1:0fe52e356d01

File content as of revision 0:09bf8e3091e8:

//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;
};