|
VEX V5 C++ API
|
Use this class when programming with the bumper device. More...
Inherits vex::__tridevice.
Public Member Functions | |
| bumper (triport::port &port) | |
| 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... | |
| operator int () | |
| operator bool () | |
Use this class when programming with the bumper device.
| vex::bumper::bumper | ( | triport::port & | port | ) |
Creates a new bumper object on the port specified in the parameter.
| port | A reference to a three wire port. |
| vex::bumper::~bumper | ( | ) |
| int32_t vex::bumper::value | ( | ) |
Gets the value of the bumper device.
|
inline |
Get the pressed status of the bumper device.
| vex::bumper::operator int | ( | ) |
| vex::bumper::operator bool | ( | ) |
1.8.15