VEX V5 C++ API
|
Use this class when programming with a potentiometer. More...
Inherits vex::__tridevice.
Public Member Functions | |
pot (triport::port &port) | |
Creates a new pot object on the port specified in the parameter. More... | |
~pot () | |
int32_t | value (analogUnits units) |
Gets the value of the potentiometer in the units defined in the parameter. More... | |
int32_t | value (percentUnits units) |
Gets the value of the potentiometer in the units defined in the parameter. More... | |
double | value (rotationUnits units) |
Gets the value of the potentiometer in the units defined in the parameter. More... | |
Use this class when programming with a potentiometer.
vex::pot::pot | ( | triport::port & | port | ) |
Creates a new pot object on the port specified in the parameter.
port | A reference to a three wire port. |
vex::pot::~pot | ( | ) |
int32_t vex::pot::value | ( | analogUnits | units | ) |
Gets the value of the potentiometer in the units defined in the parameter.
units | The measurement unit for the potentiometer device. |
|
inline |
Gets the value of the potentiometer in the units defined in the parameter.
units | The measurement unit for the potentiometer device. |
double vex::pot::value | ( | rotationUnits | units | ) |
Gets the value of the potentiometer in the units defined in the parameter.
units | The measurement unit for the potentiometer device. |