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

Class NxtUltrasonicSensor

source code

GenericSensor.GenericSensor --+
                              |
                             NxtUltrasonicSensor

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

Inherited from GenericSensor.GenericSensor: getPortId, getPortLabel

Method Details

__init__(self, port)
(Constructor)

source code 
Overrides: GenericSensor.GenericSensor.__init__