Tk A / MIYAZAKI

Fork of Encoder by Tk A

Files at this revision

API Documentation at this revision

Comitter:
sakanakuuun
Date:
Thu Aug 11 06:21:51 2016 +0000
Parent:
7:d4fcddd78fce
Child:
9:b00a8fba58c6
Commit message:
?????????

Changed in this revision

Locate.cpp Show annotated file Show diff for this revision Revisions of this file
Locate.h Show annotated file Show diff for this revision Revisions of this file
--- a/Locate.cpp	Thu Aug 11 05:43:48 2016 +0000
+++ b/Locate.cpp	Thu Aug 11 06:21:51 2016 +0000
@@ -2,12 +2,11 @@
 #include "Locate.h"
 
 
-Locate::Locate (int fx, int fy) 
+Locate::Locate () 
 {
-    x = fx;
-    y = fy;
-    
-    //一応全て初期化しとく
+    x = 0;
+    y = 0;
+   //一応全て初期化しとく
     dr = 0; dl = 0;
     pr = 0; pl = 0;
     rad = 0;
--- a/Locate.h	Thu Aug 11 05:43:48 2016 +0000
+++ b/Locate.h	Thu Aug 11 06:21:51 2016 +0000
@@ -30,7 +30,7 @@
     float x, y;     //xy方向に進んだ距離(m換算なし)
     short v;        //ステップ速度
 
-    Locate (int fx, int fy);        //fx,fyは初期位置
+    Locate ();        //fx,fyは初期位置
     
     void  setup(int r, int l);      //エンコーダの初期のズレ(dr,dl)を出す、最初に一回だけ行う