View Single Post
  #2   Spotlight this post!  
Unread 13-02-2011, 19:04
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,795
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: how to turn on the compressor?

What you have is actually more than you need.
The compressor Open and Start go in Begin.vi and that's all you'll ever have to do. Start begins a never ending background task that constantly checks the pressure sensor and automatically turns the compressor on when pressure drops below 95psi, and turns it off when pressure rises above 115psi.
(the Enable doesn't do anything, it just lets you check to see if the compressor is running. But you aren't even checking in that code you have.)

You don't control the compressor spike relay directly.
It gets controlled based on the pressure sensor input and the robot inspectors will check for that.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 13-02-2011 at 21:17.
Reply With Quote