Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Encoder by
Revision 8:a5093de00347, committed 2016-08-11
- 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)を出す、最初に一回だけ行う
