An analog Input.
More...
#include <AnalogInput.h>
static unsigned int rec::robotino::api2::AnalogInput::numAnalogInputs |
( |
| ) |
|
|
static |
- Returns
- Returns the number of analog inputs.
void rec::robotino::api2::AnalogInput::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::AnalogInput::setComId |
( |
const ComId & |
id | ) |
|
Sets the associated communication object.
- Parameters
-
id | The id of the associated communication object. |
- Exceptions
-
void rec::robotino::api2::AnalogInput::setInputNumber |
( |
unsigned int |
n | ) |
|
Sets the number of this analog input device.
- Parameters
-
- Exceptions
-
- See also
- numAnalogInputs
float rec::robotino::api2::AnalogInput::value |
( |
| ) |
const |
Returns the current value of the specified input device.
- Returns
- The current value of the specified analog input
- Exceptions
-
Exception | if the underlying communication object is invalid |
- See also
- setInputNumber(), ComObject::setComId
virtual void rec::robotino::api2::AnalogInput::valueChangedEvent |
( |
float |
value | ) |
|
|
virtual |
The documentation for this class was generated from the following file:
- C:/srcs/git/openrobotino/api2/lib/rec/robotino/api2/AnalogInput.h