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: main.cpp
- Revision:
- 13:a06ce818a615
- Parent:
- 12:36a6bae22fbf
diff -r 36a6bae22fbf -r a06ce818a615 main.cpp
--- a/main.cpp Sat Oct 08 05:12:21 2016 +0000
+++ b/main.cpp Sat Oct 08 09:01:47 2016 +0000
@@ -37,7 +37,8 @@
argv=atan(10/(avg2-avg1)); //θを求める
x = argv/3.141516*60.0;
- y = v/5.0*240.0-120.0;
+ //y = v/5.0*240.0-120.0;
+ y = v/5.0*120.0;
button=2;
printf("\n|v|: %lf theta: %lf\n",v,argv); //最終的にだすやつ
printf("\n x : %d y : %d\n",x,y); //最終的にだすやつ