View Single Post
  #1   Spotlight this post!  
Unread 12-01-2008, 11:23
ham90mack's Avatar
ham90mack ham90mack is offline
President of RIT FIRST
FRC #0073 (The Illumination)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Rochester, NY
Posts: 120
ham90mack is just really niceham90mack is just really niceham90mack is just really niceham90mack is just really niceham90mack is just really nice
Re: SetPWM and our IR controls

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.
__________________
Old stuff:

FRC 2007 Strategy Solver. Version: 2.55. Progress: done.