|
VEX V5 Python API
|
Use the distance class to control the distance sensor. More...
Inherits vex.Device.
Public Member Functions | |
| def | __init__ (self, index) |
| Creates a new distance sensor object on the port specified. More... | |
| def | object_distance (self, distanceUnits=DistanceUnits.MM) |
| Gets the detected object distance. More... | |
| def | object_size (self) |
| Gets an estimate of the detected object size. More... | |
| def | object_raw_size (self) |
| Gets an estimate of the detected object size. More... | |
| def | object_velocity (self) |
| Gets an estimate of the detected object velocity. More... | |
| def | is_object_detected (self) |
| Check for object in range of the distance sensor. More... | |
| def | type (self) |
| Get the device type. More... | |
| def | installed (self) |
| Gets the status of what is installed. More... | |
| def | value (self) |
Use the distance class to control the distance sensor.
| def vex.Distance.__init__ | ( | self, | |
| index | |||
| ) |
Creates a new distance sensor object on the port specified.
| index | The port index for this sensor. The index is zero based. |
Reimplemented from vex.Device.
| def vex.Distance.object_distance | ( | self, | |
distanceUnits = DistanceUnits.MM |
|||
| ) |
Gets the detected object distance.
| distanceUnits | The measurement unit for the distance sensor. |
| def vex.Distance.object_size | ( | self | ) |
Gets an estimate of the detected object size.
| def vex.Distance.object_raw_size | ( | self | ) |
Gets an estimate of the detected object size.
| def vex.Distance.object_velocity | ( | self | ) |
Gets an estimate of the detected object velocity.
| def vex.Distance.is_object_detected | ( | self | ) |
Check for object in range of the distance sensor.
|
inherited |
Get the device type.
|
inherited |
Gets the status of what is installed.
|
inherited |
1.8.15