|
VEX IQ Python API
|
Public Member Functions | |
| def | __init__ (self, index) |
| def | set_maximum (self, distance, distanceUnits=DistanceUnits.MM) |
| Sets the maximum distance (default 2.5m) More... | |
| def | distance (self, distanceUnits=DistanceUnits.MM) |
| Gets the value of the sonar sensor. More... | |
Creates a new sonar sensor object on the port specified in the parameter. @param index to the brain port.
| def vex.Sonar.__init__ | ( | self, | |
| index | |||
| ) |
| def vex.Sonar.set_maximum | ( | self, | |
| distance, | |||
distanceUnits = DistanceUnits.MM |
|||
| ) |
Sets the maximum distance (default 2.5m)
| distance | maximum distance to be measured in units |
| distanceUnits | a DistanceUnits enum value for the measurement unit. |
| def vex.Sonar.distance | ( | self, | |
distanceUnits = DistanceUnits.MM |
|||
| ) |
Gets the value of the sonar sensor.
| distanceUnits | The measurement unit for the sonar device, DistanceUnits enum value. |
1.8.15