Module IRDistanceSensor :: Class IRDistanceSensor
[frames] | no frames]

Class IRDistanceSensor

source code

GenericSensor.GenericSensor --+
                              |
                             IRDistanceSensor

Instance Methods
 
__init__(self, port) source code
 
getDistance(self)
Returns the distance (in cm) or None, if detection fails.
source code

Inherited from GenericSensor.GenericSensor: getPortId, getPortLabel

Method Details

__init__(self, port)
(Constructor)

source code 
Overrides: GenericSensor.GenericSensor.__init__