View Single Post
  #7   Spotlight this post!  
Unread 17-02-2010, 10:29
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Pressure switch problem

No other code is necessary at all.

The Compressor Start in Begin.vi actually sets off a parallel task that constantly monitors the pressure switch and turns the compressor on and off as necessary during the entire time your robot is on.

The Pressure switch does go into, usually, DIO 1 by default. You specify which DIO in the Compressor Open.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle