An analog Input.
More...
#include <AnalogInputArray.h>
|
class | AnalogInputArrayImpl |
|
static unsigned int rec::robotino::api2::AnalogInputArray::numAnalogInputs |
( |
| ) |
|
|
static |
- Returns
- Returns the number of analog inputs.
void rec::robotino::api2::AnalogInputArray::processEvents |
( |
| ) |
|
Call this function from your main thread to get the virtual AnalogInput functions called. The virtual functions are called directly by a call of this function
- Exceptions
-
- See also
- Com::processEvents
void rec::robotino::api2::AnalogInputArray::setComId |
( |
const ComId & |
id | ) |
|
Sets the associated communication object.
- Parameters
-
id | The id of the associated communication object. |
- Exceptions
-
void rec::robotino::api2::AnalogInputArray::values |
( |
float * |
readings | ) |
const |
Returns the current values of all analog inputs.
- Parameters
-
[out] | readings | The current readings of all analog inputs |
- Exceptions
-
Exception | if the underlying communication object is invalid |
- See also
- ComObject::setComId
virtual void rec::robotino::api2::AnalogInputArray::valuesChangedEvent |
( |
const float * |
values, |
|
|
unsigned int |
size |
|
) |
| |
|
virtual |
Called when new readings are available.
- Parameters
-
values | The state of all analog inputs |
size | The number of elements in values |
- See also
- Com::processEvents
The documentation for this class was generated from the following file: