20000 to 2000

Dependents:   VAM_MANUAL_2_DO_NOT_EDIT VAM_CYCLE_2_DO_NOT_EDIT mbed_blinky

Files at this revision

API Documentation at this revision

Comitter:
vamgehealthcare11
Date:
Mon Jan 21 19:52:02 2019 +0000
Parent:
7:71da0dbf4400
Commit message:
updated 20000 to 2000

Changed in this revision

hcsr04.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/hcsr04.cpp	Sat Mar 30 18:55:03 2013 +0000
+++ b/hcsr04.cpp	Mon Jan 21 19:52:02 2019 +0000
@@ -50,7 +50,7 @@
 {
     pulsetime.stop();
     pulsedur = pulsetime.read_us();
-    distance= (pulsedur*343)/20000;
+    distance= (pulsedur*343)/2000;
     pulsetime.reset();
 }