aaa
Fork of Move by
Diff: move.h
- Revision:
- 2:f25a09c5e113
- Parent:
- 1:405e28b64fdb
- Child:
- 3:cecaa0154f92
--- a/move.h Sat Sep 03 10:53:20 2016 +0000 +++ b/move.h Mon Sep 05 10:37:57 2016 +0000 @@ -1,6 +1,10 @@ -#define ALLOW_RAD 0.01 +#define ALLOW_RAD 0.005 #define CW true #define CCW false +#define X_PLUS 1 +#define Y_PLUS 2 +#define X_MINUS -1 +#define Y_MINUS -2 void initmotor(); @@ -25,7 +29,9 @@ void pmovey(int length); +void pmovex_minus(int); + void pmove(int length); //好きな場所へ行く -void pmovex_to(int x, int y); \ No newline at end of file +void pmove_to_dir(int direction, int x, int y); \ No newline at end of file