View Single Post
  #6   Spotlight this post!  
Unread 18-02-2012, 16:29
Patrickwhite's Avatar
Patrickwhite Patrickwhite is offline
May the North be with you
FRC #0610 (The Coyotes)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Toronto
Posts: 88
Patrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of light
Re: Help Please!(Rookie Team)

There is a compressor method that handles the relay for you.
Code:
Compressor(int pressureSwitchChannel, int compressorRelayChannel)
is the constructor for a Compressor. It reads the pressure switch and handles the compressor relay.
Code:
Compressor compressor = new Compressor(1,1);
...
compressor.start();
is enough to get the compressor started. It will automatically be stopped when the pressure switch tells it to.
__________________
while(!going.isTough());
tough.exit();

What will we do tonight, Warfa?
The same thing we do every night, Patrick. Sit and wait for Electrical.
Reply With Quote