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.
Diff: mecanum2017.cpp
- Revision:
- 2:678b5128a4d6
- Parent:
- 1:cc63373e84ec
- Child:
- 3:063d7878f0d1
diff -r cc63373e84ec -r 678b5128a4d6 mecanum2017.cpp
--- a/mecanum2017.cpp	Fri Aug 18 02:07:55 2017 +0000
+++ b/mecanum2017.cpp	Fri Aug 18 02:10:23 2017 +0000
@@ -12,7 +12,7 @@
 /* うごけー */
 void mecanum2017::move(int xdate, int ydate) //xdate, ydateは -64 ~ +64
 {
-    if(xdate == 0 && ydate == 0) stop();
+    if(xdate == 0 && ydate == 0) free();
     double angle = atan2(double(ydate), double(xdate)); //入力の角度
     if(angle == oldangle); //前回と角度が同じだったらそのまま
     else {