k
Dependents: 3rdcompfixstart 2ndcomp 4thcomp 6th33222_copy
Fork of Move by
Diff: move.h
- Revision:
- 1:405e28b64fdb
- Parent:
- 0:d7ff86f25eaa
- Child:
- 2:f25a09c5e113
diff -r d7ff86f25eaa -r 405e28b64fdb move.h --- a/move.h Fri Sep 02 12:40:45 2016 +0000 +++ b/move.h Sat Sep 03 10:53:20 2016 +0000 @@ -1,4 +1,6 @@ #define ALLOW_RAD 0.01 +#define CW true +#define CCW false void initmotor(); @@ -17,8 +19,13 @@ void hosei_turn(float pt, bool cw, float rad); //好きな向きに回転 -void turn_direction(int rad); +void turn_abs_rad(float rad); void pmovex(int length); -void pmovey(int length); \ No newline at end of file +void pmovey(int length); + +void pmove(int length); + +//好きな場所へ行く +void pmovex_to(int x, int y); \ No newline at end of file