View Single Post
  #7   Spotlight this post!  
Unread 16-02-2010, 21:55
kennypu kennypu is offline
Registered User
FRC #2467
 
Join Date: Jan 2010
Location: Hawaii
Posts: 40
kennypu is an unknown quantity at this point
Re: Compressor won't start

Quote:
Originally Posted by oddjob View Post
Your code:
Code:
    compressor(4,2)
The compressor spike should be on relay output #2, or change the code to use Relay #1. The pressure switch should be on digital port #4, but you can leave the port unconnected until you get the compressor to turn on.
oh woops sorry about that, I tried both (1,1 and 4,2 because it came from an example), but neither worked. So the pressure switch isn't required to get the compressor running? like I can just set it, but leave the pwm out and it'll work as long as the compressor is hooked up? Or did you mean go ahead and try to get the relay working eg using the Relay class.
I know you can run the compressor using the relay class, but I also know that using the compressor class simplifies things a lot, so I want to avoid that.
Reply With Quote