MMlab / Mbed 2 deprecated PING_ultrasonic

Dependencies:   USBDevice mbed

Revision:
13:a06ce818a615
Parent:
12:36a6bae22fbf
--- 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); //最終的にだすやつ