![]() |
embedded system library for e-puck
1.0.1
A redesigned API library for the e-puck robot platform
|
interface of the two stepper motors on the e-puck More...
Files | |
file | el_stepper_motor.h |
interface of the two stepper motors on the e-puck
The e-puck is driven by two stepper-motors. The maximum speed of these motors are 1000 steps per second.
Since these are stepper motors, it is possible to estimate the angle (and thus distance) traveled by each of the wheels.
In the following example, the robot does a counterclockwise rotation of 180 deg.
Note: The step counters are 16-bit signed integers, so their limit (-32768 to 32767) will reach quickly if the robot keeps moving. If a long period of step counting is needed, one should read the step counters, add them to wider variables (e.g. long int) and then reset them before they are overflowed.