Sharp IR Distance Sensor

Dependents:   NavigationTest_ NavigationTest theRobotNEW theRobot ... more

Files at this revision

API Documentation at this revision

Comitter:
tashworth
Date:
Fri Mar 28 15:31:40 2014 +0000
Parent:
0:04f1a022d4d0
Commit message:
3-28-14 10:30AM

Changed in this revision

Sharp.cpp Show annotated file Show diff for this revision Revisions of this file
Sharp.h Show annotated file Show diff for this revision Revisions of this file
--- a/Sharp.cpp	Thu Dec 12 19:25:15 2013 +0000
+++ b/Sharp.cpp	Fri Mar 28 15:31:40 2014 +0000
@@ -7,7 +7,7 @@
 {    
 }
 
-double Sharp::getDistance(void)
+double Sharp::getIRDistance(void)
 {
     float dist = vout.read();
     
--- a/Sharp.h	Thu Dec 12 19:25:15 2013 +0000
+++ b/Sharp.h	Fri Mar 28 15:31:40 2014 +0000
@@ -7,7 +7,7 @@
 {
 public:
     Sharp( PinName voutPin );
-    double getDistance(void);
+    double getIRDistance(void);
            
     private:
         AnalogIn vout;