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