Sharp IR Distance Sensor
Dependents: NavigationTest_ NavigationTest theRobotNEW theRobot ... more
Revision 1:a5ced48cfedc, committed 2014-03-28
- 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 |
diff -r 04f1a022d4d0 -r a5ced48cfedc Sharp.cpp --- 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();
diff -r 04f1a022d4d0 -r a5ced48cfedc Sharp.h --- 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;