rec::robotino::api2 C interface
|
In "rec/robotino/api2/c/PowerOutput.h" you can find functions for reading Robotino's bumper. More...
Go to the source code of this file.
Macros | |
#define | INVALID_POWEROUTPUTID -1 |
Typedefs | |
typedef int | PowerOutputId |
Functions | |
DLLEXPORT PowerOutputId | PowerOutput_construct () |
DLLEXPORT BOOL | PowerOutput_destroy (PowerOutputId id) |
DLLEXPORT BOOL | PowerOutput_setComId (PowerOutputId id, ComId comId) |
DLLEXPORT BOOL | PowerOutput_setValue (PowerOutputId id, float setPoint) |
DLLEXPORT float | PowerOutput_current (PowerOutputId id) |
DLLEXPORT float | PowerOutput_rawCurrentMeasurment (PowerOutputId id) |
In "rec/robotino/api2/c/PowerOutput.h" you can find functions for reading Robotino's bumper.
Use PowerOutput_construct() to create a new power output object. Associate the power output object with a com object using PowerOutput_setComId(). Use PowerOutput_open() to open the power output. Use PowerOutput_close() to open the power output. Use PowerOutput_isOpened() to check if the power output is opened. Use PowerOutput_isClosed() to check if the power output is closed.
#define INVALID_POWEROUTPUTID -1 |
Invalid PowerOutputId is -1
typedef int PowerOutputId |
PowerOutputId
DLLEXPORT PowerOutputId PowerOutput_construct | ( | ) |
Construct an power output object
DLLEXPORT float PowerOutput_current | ( | PowerOutputId | id | ) |
id | The id of the power output object. |
DLLEXPORT BOOL PowerOutput_destroy | ( | PowerOutputId | id | ) |
Destroy the power output object assigned to id
id | The id of the power output object to be destroyed |
DLLEXPORT float PowerOutput_rawCurrentMeasurment | ( | PowerOutputId | id | ) |
The current is measured by a 10 bit adc and is not converted into A.
id | The id of the power output object. |
DLLEXPORT BOOL PowerOutput_setComId | ( | PowerOutputId | id, |
ComId | comId | ||
) |
Associated a power output object with a communication interface, i.e. binding the power output to a specific Robotino
DLLEXPORT BOOL PowerOutput_setValue | ( | PowerOutputId | id, |
float | setPoint | ||
) |
Sets the current set point of the power output.
id | The id of the power output object. |
setPoint | The set point. Range from -100 to 100. |