Class to handle triggering and reading the distance measured by a range finder.
RangeFinder Class Reference
Range Finder class. More...
|RangeFinder (PinName pin, int pulsetime, float scale, int timeout)|
|Create a RangeFinder object. |
|Return the distance to the nearest object, or -1.0 if reading the pulse timed out. |
Range Finder class.
Constructor & Destructor Documentation
Create a RangeFinder object.
pin Digital I/O pin the range finder is connected to. pulsetime Time of pulse to send to the rangefinder to trigger a measurement, in microseconds. scale Scaling of the range finder's output pulse from microseconds to metres. timeout Time to wait for a pulse from the range finder before giving up.
Member Function Documentation
Generated on Mon Dec 17 2018 17:55:05 by 1.7.2