nomadicseadog / aeroquad

Automatically exported from code.google.com/p/aeroquad
0 stars 0 forks source link

Some changes to Motors.h #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
done!

Original comment by CaranchoEngineering@gmail.com on 6 Jan 2011 at 7:08