ROBOTC style sensor interface macros and prototypes. More...
Go to the source code of this file.
Enumerations | |
enum | tVexSensors { kVexSensorUndefined = -1, kVexSensorAnalog_1 = 0, kVexSensorAnalog_2 = 1, kVexSensorAnalog_3 = 2, kVexSensorAnalog_4 = 3, kVexSensorAnalog_5 = 4, kVexSensorAnalog_6 = 5, kVexSensorAnalog_7 = 6, kVexSensorAnalog_8 = 7, kVexSensorDigital_1 = 8, kVexSensorDigital_2 = 9, kVexSensorDigital_3 = 10, kVexSensorDigital_4 = 11, kVexSensorDigital_5 = 12, kVexSensorDigital_6 = 13, kVexSensorDigital_7 = 14, kVexSensorDigital_8 = 15, kVexSensorDigital_9 = 16, kVexSensorDigital_10 = 17, kVexSensorDigital_11 = 18, kVexSensorDigital_12 = 19, kVexSensorIme_1 = 20, kVexSensorIme_2 = 21, kVexSensorIme_3 = 22, kVexSensorIme_4 = 23, kVexSensorIme_5 = 24, kVexSensorIme_6 = 25, kVexSensorIme_7 = 26, kVexSensorIme_8 = 27 } |
sensor types for vexSensorValue More... | |
Functions | |
bool_t | vexSensorIsAnalog (tVexSensors sensor) |
Get the value of a sensor port. More... | |
int32_t | vexSensorValueGet (tVexSensors sensor) |
Get the value of a sensor port. More... | |
void | vexSensorValueSet (tVexSensors sensor, int32_t value) |
Set the value of a sensor port. More... | |
ROBOTC style sensor interface macros and prototypes.
enum tVexSensors |
sensor types for vexSensorValue
bool_t vexSensorIsAnalog | ( | tVexSensors | sensor) |
Get the value of a sensor port.
[in] | sensor | A sensor of type tVexSensors |
int32_t vexSensorValueGet | ( | tVexSensors | sensor) |
Get the value of a sensor port.
[in] | sensor | A sensor of type tVexSensors |
void vexSensorValueSet | ( | tVexSensors | sensor, |
int32_t | value | ||
) |
Set the value of a sensor port.
[in] | sensor | A sensor of type tVexSensors |
[in] | value | Value to set the sensor to. |