Thread: IR board code
View Single Post
  #3   Spotlight this post!  
Unread 17-02-2008, 17:39
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: IR board code

Actually, that will always run as the IR returns 1 unless the signal matches. You will need to have an equivalency check with 0, and probably code to avoid running without the IR connected. I'll post an example once I get back to my code...

As for the actual autonomous mode... Are you basically looking for a complete code to base yours off or something specific you need an example of? If you're looking for something in general, I can post an example of our team's state machine stuff... Once again when I get the laptop back.