View Single Post
  #4   Spotlight this post!  
Unread 09-02-2008, 17:41
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: interrupt enable

Hopefully you don't have the interrupts actually trigerring the robot's movement. Otherwise, couldn't you add in the code an if to check if the robot is in autonomous before changing pwms based on IR inputs? What exactly would your interrupt look like? Turning on a flag that dictates what routine to run (only handled in autonomous), or are PWMs set in the interrupts?