Ultrasonic sensor

Dependents:   Obstacle_Avoiding_Robot wireless_project_BLE

Fork of HCSR04 by Prabhu Desai

Files at this revision

API Documentation at this revision

Comitter:
prabhuvd
Date:
Sat Mar 30 18:43:21 2013 +0000
Parent:
2:0acb6ade091c
Child:
4:33938a97d904
Commit message:
changed the method name start_measurement to start

Changed in this revision

hcsr04.cpp Show annotated file Show diff for this revision Revisions of this file
hcsr04.h Show annotated file Show diff for this revision Revisions of this file
--- a/hcsr04.cpp	Sat Mar 30 18:41:34 2013 +0000
+++ b/hcsr04.cpp	Sat Mar 30 18:43:21 2013 +0000
@@ -39,7 +39,7 @@
 {
     pulsetime.start();
 }
-void DistMeasure::start_measurement(void)
+void DistMeasure::start(void)
 {
     trigger=1;
     wait_us(10);
--- a/hcsr04.h	Sat Mar 30 18:41:34 2013 +0000
+++ b/hcsr04.h	Sat Mar 30 18:43:21 2013 +0000
@@ -44,7 +44,7 @@
  
     unsigned int get_dist_cm(void);
     unsigned int get_pulse_us(void);
-    void start_measurement(void );
+    void start(void );
     void isr_rise(void);
     void isr_fall(void);
     void fall (void (*fptr)(void));