Subject:
|
Enhancing the motor driver
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Tue, 23 Feb 1999 18:15:37 GMT
|
Viewed:
|
1411 times
|
| |
| |
Hi,
does somebody feel up to renovating the motor driver? We have discussed
a new PCM scheme earlier on the lego-robotics list, it's just a question
of implementing it. This will require changes to direct_motor.c and
direct_motor.h and a little assembler coding. All in all an easy way to
enter the Contributors file ;-)
Advantages: 65536 power settings instead of 8
Scheme : Modified Bresenham line algorithm
Pseudocode:
unsigned fraction, speed;
fraction+=speed;
if(overflow)
set_output_bit(current_direction);
else
clear_output_bit();
We'll loose one cycle in 65536 for propulsion at maximum speed, but I
think that's tolerable.
--
Markus L. Noga noga@inrialpes.fr
Check out legOS! http://www.multimania.com/legos/
"Quand on n'a pas de caractere, il faut bien se donner une methode."
-Camus on Software Engineering
|
|
1 Message in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|