#include "rec/robotino/com/c/globals.h"
#include "rec/robotino/com/c/Com.h"
Go to the source code of this file.
Defines | |
#define | INVALID_BUMPERID -1 |
Typedefs | |
typedef int | BumperId |
Functions | |
DLLEXPORT BumperId | Bumper_construct () |
DLLEXPORT BOOL | Bumper_destroy (BumperId id) |
DLLEXPORT BOOL | Bumper_setComId (BumperId id, ComId comId) |
DLLEXPORT BOOL | Bumper_value (BumperId id) |
Use bumper_construct() to create a new bumper object. Associate the bumper object with a com object using bumper_setComId(). Use bumper_value() to read the bumper's state.
DLLEXPORT BumperId Bumper_construct | ( | ) |
Construct an Bumper object
DLLEXPORT BOOL Bumper_destroy | ( | BumperId | id | ) |
Destroy the Bumper object assigned to id
id | The id of the Bumper object to be destroyed |
DLLEXPORT BOOL Bumper_setComId | ( | BumperId | id, | |
ComId | comId | |||
) |
Associated a Bumper object with a communication interface, i.e. binding the Bumper to a specific Robotino
DLLEXPORT BOOL Bumper_value | ( | BumperId | id | ) |
Get the current state of the bumper.
id | The bumper id. |