aaa

Fork of Move by 涼太郎 中村

move.h

Committer:
sakanakuuun
Date:
2016-09-10
Revision:
18:4c812a3c7411
Parent:
16:140e758346ae
Child:
22:eed10c0b7fe0

File content as of revision 18:4c812a3c7411:

#define ALLOW_RAD   0.008
#define CW          true
#define CCW         false

#define X_PLUS        1
#define Y_PLUS        2
#define X_MINUS       -1
#define Y_MINUS       -2             

void initmotor();

void move(int left,int right);

void hosei_turn(float pt, bool cw, float rad);

//好きな向きに回転
void turnrad(float rad);

void turnrad_cw(float rad);

void turnrad_ccw(float rad);

//好きな場所へ行く
void pmove(int x, int y);

void pmove2(int x, int y);

void back300();

void nxback300();

//都合のいいpi*nを返す
float nearPi(float rad);

float giveatan(int, int);

//void back(int x, int y);