OSDN Git Service

とりあえずのbluetooth実装
[tondenhei/et2013.git] / ETTailControl.h
1 #pragma once\r
2 \r
3 namespace ecrobot{\r
4     class Motor;\r
5     class ETTailControl\r
6     {\r
7             int m_angle;\r
8             Motor& m_tailMotor;\r
9     public:\r
10         ETTailControl(Motor& tailMotor,int angle):m_angle(angle),m_tailMotor(tailMotor){;}\r
11         ~ETTailControl(){;}\r
12         void Init();\r
13         void Control();\r
14         void SetAngle(const int angle){m_angle = angle;}\r
15         static const int ANGLE_STAND_UP;            /* \8a®\91S\92â\8e~\8e\9e\82Ì\8ap\93x[\93x] */\r
16         static const int ANGLE_DRIVE;               /* \83o\83\89\83\93\83X\91\96\8ds\8e\9e\82Ì\8ap\93x[\93x] */\r
17         static const float P_GAIN;                  /* \8a®\91S\92â\8e~\97p\83\82\81[\83^\90§\8cä\94ä\97á\8cW\90\94 */\r
18         static const int PWM_ABS_MAX;               /* \8a®\91S\92â\8e~\97p\83\82\81[\83^\90§\8cäPWM\90â\91Î\8dÅ\91å\92l */\r
19         static const int RESET_SPEED;\r
20         static const int RESET_PROCESSING_INTERVAL;     /* msec */\r
21     };\r
22 }\r