|
rec::robotino::api2 C interface
|
In "rec/robotino/api2/c/EncoderInput.h" you can find functions for reading Robotino's bumper. More...
Go to the source code of this file.
Macros | |
| #define | INVALID_ENCODERINPUTID -1 |
Typedefs | |
| typedef int | EncoderInputId |
Functions | |
| DLLEXPORT EncoderInputId | EncoderInput_construct () |
| DLLEXPORT BOOL | EncoderInput_destroy (EncoderInputId id) |
| DLLEXPORT BOOL | EncoderInput_setComId (EncoderInputId id, ComId comId) |
| DLLEXPORT BOOL | EncoderInput_resetPosition (EncoderInputId id) |
| DLLEXPORT int | EncoderInput_position (EncoderInputId id) |
| DLLEXPORT int | EncoderInput_velocity (EncoderInputId id) |
In "rec/robotino/api2/c/EncoderInput.h" you can find functions for reading Robotino's bumper.
Use EncoderInput_construct() to create a new encoder input object. Associate the bumper object with a com object using EncoderInput_setComId(). Use EncoderInput_value() to read the encoder input's state.
| #define INVALID_ENCODERINPUTID -1 |
Invalid EncoderInputId is -1
| typedef int EncoderInputId |
EncoderInputId
| DLLEXPORT EncoderInputId EncoderInput_construct | ( | ) |
Construct an encoder input object
| DLLEXPORT BOOL EncoderInput_destroy | ( | EncoderInputId | id | ) |
Destroy the encoder input object assigned to id
| id | The id of the encoder input object to be destroyed |
| DLLEXPORT int EncoderInput_position | ( | EncoderInputId | id | ) |
| id | The id of the encoder input object to be read |
| DLLEXPORT BOOL EncoderInput_resetPosition | ( | EncoderInputId | id | ) |
Set the current position to zero.
| id | The id of the encoder input object to be read |
| DLLEXPORT BOOL EncoderInput_setComId | ( | EncoderInputId | id, |
| ComId | comId | ||
| ) |
Associated a encoder input object with a communication interface, i.e. binding the encoder input to a specific Robotino
| DLLEXPORT int EncoderInput_velocity | ( | EncoderInputId | id | ) |
| id | The id of the encoder input object to be read |
1.8.11