Interface: direct motor control.
More...
#include <config.h>
Go to the source code of this file.
Detailed Description
Interface: direct motor control.
- Author
- Markus L. Noga marku.nosp@m.s@no.nosp@m.ga.de
Definition in file dmotor.h.
Macro Definition Documentation
maximum motor speed
Definition at line 72 of file dmotor.h.
minimum motor speed
Definition at line 71 of file dmotor.h.
Enumeration Type Documentation
the motor directions
- Enumerator:
off |
freewheel
|
fwd |
forward
|
rev |
reverse
|
brake |
hold current position
|
Definition at line 44 of file dmotor.h.
Function Documentation
set motor A direction to dir
void motor_a_speed |
( |
unsigned char |
speed | ) |
|
|
inline |
set motor A speed
- Parameters
-
Definition at line 143 of file dmotor.h.
set motor B direction to dir
void motor_b_speed |
( |
unsigned char |
speed | ) |
|
|
inline |
set motor B speed
- Parameters
-
Definition at line 151 of file dmotor.h.
set motor C direction to dir
void motor_c_speed |
( |
unsigned char |
speed | ) |
|
|
inline |
set motor C speed
- Parameters
-
Definition at line 159 of file dmotor.h.
Variable Documentation
const unsigned char dm_a_pattern[4] |
motor drive patterns
to be indexed with MotorDirections
- See Also
- MotorDirections
const unsigned char dm_b_pattern[4] |
const unsigned char dm_c_pattern[4] |