VEX IQ C++ API
|
Use this class when programming with the bumper device. More...
Inherits vex::device.
Public Member Functions | |
bumper (int32_t index) | |
Creates a new bumper object on the port specified in the parameter. More... | |
~bumper () | |
int32_t | value () |
Gets the value of the bumper device. More... | |
int32_t | pressing () |
Get the pressed status of the bumper device. More... | |
![]() | |
device (int32_t index) | |
~device () | |
Additional Inherited Members | |
![]() | |
int32_t | _index |
Use this class when programming with the bumper device.
|
inline |
Creates a new bumper object on the port specified in the parameter.
index | The port index for this motor. The index is zero-based. |
|
inline |
int32_t vex::bumper::value | ( | ) |
Gets the value of the bumper device.
|
inline |
Get the pressed status of the bumper device.