fs

Dependents:   ARAI45th 3servotest 1stcomp 3rdcompfixstart ... more

Revision:
1:3513a2fbd81f
Parent:
0:265d8ad19d2a
Child:
2:d1d1f4d9b302
--- a/locate.h	Fri Sep 02 12:40:36 2016 +0000
+++ b/locate.h	Sat Sep 03 10:53:09 2016 +0000
@@ -11,7 +11,7 @@
 #define PI              3.14159         //π
 #define RESOLUSION      400             //P/R(分解能)
 #define DIAMETER        31.8            //タイヤの直径(mm)
-#define ROUND_HOSEI     1.05               //角度のズレを補正
+#define ROUND_HOSEI     1.05            //角度のズレを補正
 
 // エンコーダの1ステップあたりの距離(mm)
 #define LOCATE_STEP     (DIAMETER*PI / RESOLUSION)                 
@@ -34,10 +34,10 @@
 void  update ();     
 
 //xをmm換算して整数値として返す
-short coordinateX();  
+int coordinateX();  
 
 //yをmm換算して整数値として返す
-short coordinateY();
+int coordinateY();
 
 //thetaを返す
 float coordinateTheta();