View Single Post
  #7   Spotlight this post!  
Unread 02-12-2004, 09:49
stephenthe1 stephenthe1 is offline
Registered User
#1008
 
Join Date: Dec 2004
Location: Ohio
Posts: 113
stephenthe1 is on a distinguished road
Lightbulb Re: A Simple Improvement to Driving

would it be better to do this.

Code:
pwm01=((p1_y+((p1_y+p2_y)/2))/2)
pwm02=((p2_y+((p1_y+p2_y)/2))/2)
this way the value is a little closer to the appropriate y-value for the port,
but it still compensates for the difference between the 2 pwms.