Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
tsumagari
Date:
Fri Dec 02 09:56:09 2016 +0000
Parent:
0:ee1032401c3e
Commit message:
???????;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Nov 30 11:43:17 2016 +0000
+++ b/main.cpp	Fri Dec 02 09:56:09 2016 +0000
@@ -19,7 +19,7 @@
     sonerPin.fall(&sonerInterruptStop);
     while(1) {
         pc.printf("DistTime: %f\n\r",sonerDistTime);
-        pc.printf("CalculatedDist: %f\n\r",sonerDistTime/58.0);
+        pc.printf("CalculatedDist: %f\n\r",sonerDistTime*0.017262 + 2.1727);
         wait(0.5);
     }
 }