In Motors_PWM() change
// Only supports commands from 0-255 => 0 - 100% duty cycle
// Usable pulsewith from approximately 1000-2000 us = 126 - 250
// m = (250-126)/(2000-1000) = 0.124
// b = y1 - (m * x1) = 126 - (0.124 * 1000) = 2
mMotorCommand = 0.124;
bMotorCommand = 2.0;
to
// Analog write supports commands from 0-255 => 0 - 100% duty cycle
// Using 125-250 for motor setting 1000-2000
mMotorCommand and bMotorCommand are not used anymore.
In Motors_PWMtimer change the comment in line 237 from
// Set port to output PD4
to
// Set port to output PD3
Original issue reported on code.google.com by al...@arcor.de on 22 Dec 2010 at 4:15
Original issue reported on code.google.com by
al...@arcor.de
on 22 Dec 2010 at 4:15