#ifndef HEADEXAMPLE_H
#define HEADEXAMPLE_H
#include "aibolib.h"
#include "def.h"
enum SYSTEM_STATE{
SYSTEM_START,
SYSTEM_IDLE,
SYSTEM_END
};
class HeadExample: public Aibo {
public:
HeadExample();
virtual ~HeadExample(){};
OSubject* subject[numOfSubject];
OObserver* observer[numOfObserver];
OStatus DoInit (const OSystemEvent& event);
OStatus DoStart (const OSystemEvent& event);
OStatus DoStop (const OSystemEvent& event);
OStatus DoDestroy(const OSystemEvent& event);
void NotifyHead(const OReadyEvent& event);
protected:
AiboHead Head;
void MoveToZeroPos();
SYSTEM_STATE State;
static const int ZERO_POS_MAX_COUNTER = 20;
int counter;
};
#endif //define HEADEXAMPLE_H