View Single Post
  #2   Spotlight this post!  
Unread 12-01-2008, 11:25
Vanquish Vanquish is offline
Registered User
no team
 
Join Date: Jan 2008
Rookie Year: 1980
Location: Somewhere
Posts: 19
Vanquish is an unknown quantity at this point
Re: SetPWM and our IR controls

Quote:
Originally Posted by ham90mack View Post
It appears that that may work, except there is no such function as SetPWM in Kevin's code. Instead, use:
Code:
pwm01 = 65;
pwm02 = 192;
So your code appears to do one thing: if the first programmed IR signal is sent, drive forward forever (or spin forever, depending on how your motors are mounted). That sounds a little dangerous for a first test unless your robot is off the ground. I suggest having a signal to stop the robot as well.
Yea, I realize that I just wanted to know if the format looked alright, thanks