Interface: direct motor control.
More...
Go to the source code of this file.
Interface: direct motor control.
- Author
- Markus L. Noga marku.nosp@m.s@no.nosp@m.ga.de
Definition in file dmotor.h.
◆ MAX_SPEED
maximum motor speed
Definition at line 72 of file dmotor.h.
◆ MIN_SPEED
minimum motor speed
Definition at line 71 of file dmotor.h.
◆ MotorDirection
the motor directions
| Enumerator |
|---|
| off | freewheel
|
| fwd | forward
|
| rev | reverse
|
| brake | hold current position
|
Definition at line 44 of file dmotor.h.
◆ motor_a_dir()
set motor A direction to dir
◆ motor_a_speed()
| void motor_a_speed |
( |
unsigned char |
speed | ) |
|
|
externinline |
◆ motor_b_dir()
set motor B direction to dir
◆ motor_b_speed()
| void motor_b_speed |
( |
unsigned char |
speed | ) |
|
|
externinline |
◆ motor_c_dir()
set motor C direction to dir
◆ motor_c_speed()
| void motor_c_speed |
( |
unsigned char |
speed | ) |
|
|
externinline |
◆ dm_a
◆ dm_a_pattern
| const unsigned char dm_a_pattern[4] |
|
extern |
motor drive patterns
to be indexed with MotorDirections
- See also
- MotorDirections
◆ dm_b
◆ dm_b_pattern
| const unsigned char dm_b_pattern[4] |
◆ dm_c
◆ dm_c_pattern
| const unsigned char dm_c_pattern[4] |