View Single Post
  #12   Spotlight this post!  
Unread 28-02-2010, 21:34
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: solenoid and compressor code

Quote:
Originally Posted by Mark McLeod View Post
All Opens belong in Begin.vi

They definitely do NOT belong in teleop.vi -- or else you get 50 Opens per second resulting in 6,750+ Opens for each device, and heaven help you if you didn't Close them too...
They could go in the Init case of Teleop, but it really does make sense to put them all in Begin. That way they'll be available to the entire program, including Periodic Tasks and Autonomous.
Reply With Quote