 |
VEXcode Doxygen
|
Go to the documentation of this file.
14 #ifndef VEX_DISTANCE_CLASS_H
15 #define VEX_DISTANCE_CLASS_H
28 enum class tEventType {
29 EVENT_DISTANCE_CHANGED = 0,
79 void changed(
void (* callback)(
void) );
84 #endif // VEX_DISTANCE_CLASS_H
distanceUnits
The measurement units for distance values.
Definition: vex_units.h:96
double objectVelocity(void)
Gets an estimate of the detected object velocity.
Use the device class to get information about a vex device plugged into the V5.
Definition: vex_device.h:30
distance(int32_t index)
Creates a new distance sensor object on the port specified.
sizeType
The defined units for distance sensor object size.
Definition: vex_units.h:278
device class
Definition: vex_brain.h:26
sizeType objectSize(void)
Gets an estimate of the detected object size.
Use the distance class to control the distance sensor.
Definition: vex_distance.h:26
double objectDistance(distanceUnits units)
Gets the detected object distance.
int32_t objectRawSize(void)
Gets an estimate of the detected object size.
void changed(void(*callback)(void))
Calls a function when the distance value changes.
bool isObjectDetected(void)
check for object in range of the distance sensor