this is program for mbed ,to relay MCUcomm data to servo
command/command.h
- Committer:
- matsu
- Date:
- 2012-12-05
- Revision:
- 1:0fe52e356d01
- Parent:
- 0:09bf8e3091e8
File content as of revision 1:0fe52e356d01:
//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 on();
void off();
bool getPower();
int getPosition();
int getTime();
int getHomeposition();
Command& operator= (float percent);
Command& operator= (Command& rhs);
protected:
bool _power;
short int _position;
short int _time;
short int _homePosition;
};