VEX V5 Python API
|
Inherits vex.TriDevice.
Public Member Functions | |
def | __init__ (self, triport_port) |
Use this class when programming with a sonar sensor. More... | |
def | value (self) |
Gets the value of the distance sensor. More... | |
def | distance (self, distanceUnits=DistanceUnits.MM) |
Gets the value of the distance sensor. More... | |
def vex.Sonar.__init__ | ( | self, | |
triport_port | |||
) |
Use this class when programming with a sonar sensor.
def vex.Sonar.value | ( | self | ) |
Gets the value of the distance sensor.
def vex.Sonar.distance | ( | self, | |
distanceUnits = DistanceUnits.MM |
|||
) |
Gets the value of the distance sensor.
distanceUnits | The unit type that the previous value should be treated as. |