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

Class IRSeekSensor

source code

GenericSensor.GenericSensor --+
                              |
                             IRSeekSensor

Instance Methods
 
__init__(self, port) source code
 
getValue(self, channel)
Returns list of [heading (-25..25, 0 if nothing detected), distance (0..100, -128 if nothing detected) 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__

getValue(self, channel)

source code 

Returns list of [heading (-25..25, 0 if nothing detected), distance (0..100, -128 if nothing detected) or None, if detection fails. channel: 0, 1, 2, 3 determined by channel switch