|
VEX V5 C++ API
|
Use this class when programming with the limit switch. More...
Inherits vex::__tridevice.
Public Member Functions | |
| limit (triport::port &port) | |
| Creates a new limit object on the port specified in the parameter. More... | |
| ~limit () | |
| int32_t | value () |
| Gets the value of the limit switch. More... | |
| int32_t | pressing () |
| Gets the state of the limit device. More... | |
| operator int () | |
| operator bool () | |
Use this class when programming with the limit switch.
| vex::limit::limit | ( | triport::port & | port | ) |
Creates a new limit object on the port specified in the parameter.
| port | A reference to a three wire port. |
| vex::limit::~limit | ( | ) |
| int32_t vex::limit::value | ( | ) |
Gets the value of the limit switch.
|
inline |
Gets the state of the limit device.
| vex::limit::operator int | ( | ) |
| vex::limit::operator bool | ( | ) |
1.8.15