View Single Post
  #9   Spotlight this post!  
Unread 17-02-2014, 19:51
DDSLoan96's Avatar
DDSLoan96 DDSLoan96 is offline
Jack of all trades
AKA: Danny
FRC #1468 (J-Birds)
Team Role: Mentor
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Hicksville
Posts: 40
DDSLoan96 is an unknown quantity at this point
Re: Help with Compressor!!!

Quote:
Originally Posted by RamZ View Post
I don't think you initialized your compressor correctly.
There are three necessary values.
Yours is currently "airCompressor = new Compressor(1,1);"
Ours is basically the same, except the values are (1, 1, 1).

Try that out.
I just took a look at the Javadoc for the compressor and I only see 2 constructors, one with 2 parameters(int pressureSwitchChannel, int compressorRelayChannel) and one with 4(int pressureSwitchSlot, int pressureSwitchChannel, int compresssorRelaySlot, int compressorRelayChannel)
Reply With Quote