k

Dependents:   3rdcompfixstart 2ndcomp 4thcomp 6th33222_copy

Fork of Move by Tk A

Revision:
12:4e9cadc225f5
Parent:
7:7f1721542753
--- a/move.h	Fri Sep 09 05:41:17 2016 +0000
+++ b/move.h	Sat Sep 10 13:30:03 2016 +0000
@@ -1,28 +1,37 @@
 #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 turn_cw();
-
-void turn_ccw();
-
+ 
 void hosei_turn(float pt, bool cw, float rad);
-
+ 
 //好きな向きに回転
-void turn_abs_rad(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);
\ No newline at end of file