View Single Post
  #4   Spotlight this post!  
Unread 18-02-2008, 09:59
psy_wombats's Avatar
psy_wombats psy_wombats is offline
Registered User
AKA: A. King
FRC #0467 (Duct Tape Bandits)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Shrewsbury MA
Posts: 95
psy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura about
Re: Please help with our IR code, we are so confused

The variable 'move' should be static. Otherwise it will reset every time the function is called. Being a static variable causes it to remember its state from the previous call, and move as you would expect it. See if that works.