![]() |
ROBOTC style sensor interface. 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.
| 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. |