View Single Post
  #4   Spotlight this post!  
Unread 07-02-2007, 23:01
WGRAY WGRAY is offline
Registered User
FRC #2027
 
Join Date: Jan 2007
Location: westbury
Posts: 22
WGRAY is an unknown quantity at this point
Re: Controlling motor speed

I understand the formula however I do not have anything in my c window that resembles his format "pwm01 = (unsigned char) ((((int) p1_y - 127) / 4) + 127); otherwise I would replace my code with his. What steps in easycpro would I use to generate code in that format?http://www.chiefdelphi.com/forums/im...es/redface.gif