Represents the external motor encoder input.
More...
#include <EncoderInput.h>
Represents the external motor encoder input.
int rec::robotino::api2::EncoderInput::position |
( |
| ) |
const |
- Returns
- Actual position in ticks since power on or resetPosition
- Exceptions
-
virtual void rec::robotino::api2::EncoderInput::readingsChangedEvent |
( |
int |
velocity, |
|
|
int |
position, |
|
|
float |
current |
|
) |
| |
|
virtual |
void rec::robotino::api2::EncoderInput::resetPosition |
( |
int |
position | ) |
|
Set the current position to zero.
- Parameters
-
position | New position after reset. |
- Exceptions
-
void rec::robotino::api2::EncoderInput::setComId |
( |
const ComId & |
id | ) |
|
Sets the associated communication object.
- Parameters
-
id | The id of the associated communication object. |
- Exceptions
-
void rec::robotino::api2::EncoderInput::setPosition |
( |
int |
position, |
|
|
int |
velocity |
|
) |
| |
Drive the motor until position() equals the given position set-point.
- Parameters
-
position | Position set-point in encoder ticks. |
velocity | Drive to the given position set-point with the given velocity in encoder ticks/s. |
- Exceptions
-
void rec::robotino::api2::EncoderInput::setVelocity |
( |
int |
velocity | ) |
|
Set the motor's velocity in ticks/s.
- Parameters
-
velocity | Velocity set-point in ticks/s. |
- Exceptions
-
int rec::robotino::api2::EncoderInput::velocity |
( |
| ) |
const |
- Returns
- The actual velocity in ticks/s
- Exceptions
-
The documentation for this class was generated from the following file:
- /home/verbeek/srcs/openrobotino/api2/lib/rec/robotino/api2/EncoderInput.h