libary to return a range for sharp IR rangefinders. values are taken from the datasheet. note this is not accurate, but is good enough for seeing if things work

Dependents:   GP2D12rangefinder Initialmbedrobotprogram mbedrobot

Files at this revision

API Documentation at this revision

Comitter:
littlexc
Date:
Thu Nov 25 15:06:32 2010 +0000
Parent:
0:28b9e26e75ac
Commit message:

Changed in this revision

GP2xx.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 28b9e26e75ac -r e3ea40a41d27 GP2xx.cpp
--- a/GP2xx.cpp	Thu Nov 11 16:01:21 2010 +0000
+++ b/GP2xx.cpp	Thu Nov 25 15:06:32 2010 +0000
@@ -29,6 +29,7 @@
   /* 
   * @param ain analog in from sensor
   */
+
 IRRangeFinder::IRRangeFinder (PinName pin, int type):   _pin(pin) {
     sensor=type;
 };