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