teamALI
/
HB2018
ジャイロ追加前
Diff: typedef.h
- Revision:
- 27:ff63c23bc689
- Parent:
- 25:f3a6e7eec9c3
- Child:
- 30:13ada1a24c59
--- a/typedef.h Thu Dec 13 12:15:35 2018 +0000 +++ b/typedef.h Fri Dec 14 12:32:27 2018 +0000 @@ -53,6 +53,24 @@ INT16 limit_low; }typMotPara; +enum DIR_TYPE { + CW, // + + CCW, // - + UNK, // 不定 +}; +enum DIR_ATT_TYPE{ + CLOSING, // 近づく方向 + GO_AWAY, // 遠のく方向 + UNK_DIR, // 不定 +}; +typedef struct{ + float tarAng; //ターゲット角度 + float curAng; //現在の角度 + float curAngVelo; //角速度 + DIR_TYPE dir; //回転方向 + DIR_ATT_TYPE dir_att; //ターゲット角度に向かっているかどうかの方向 +}TypeAttData; + typedef std::bitset<4> typFlg4Mot; ///////////////////////////////////////////////////////////////////// #endif