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
Diff: GP2xx.cpp
- Revision:
- 1:e3ea40a41d27
- Parent:
- 0:28b9e26e75ac
--- 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; };