View Single Post
  #1   Spotlight this post!  
Unread 15-01-2014, 17:37
sukhjinder564's Avatar
sukhjinder564 sukhjinder564 is offline
Registered User
FRC #0564
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2011
Location: New York
Posts: 11
sukhjinder564 is an unknown quantity at this point
Compressor Not Starting

Hello,

My name is Sukhjinder and I am a programmer for team 564. We recently tried to run a pneumatics board setup consisting of a compressor, spike, pressure switch, and a solenoid.

We code in Java, and I have thoroughly researched how to make a compressor object and start it even though it is the simplest of things.

I contruct a compressor object as follows:

Compressor comp = new Compressor(pressureSwitch, Spike Relay);

The two parameters represent the channel of the pressureSwitch and Relay.

In order to start the compressor, I just call comp.start();



Now assuming that the electrical components of the pneumatics are done correctly, this should run, am I correct? (And yes I am on the most recent updates and am getting communication)


I was looking at other constructors for the compressor object, and saw another constructor that required 4 parameters to be passed over.

The constructor would look like:

Compressor comp = new Compressor(pressureSwitchSlot, PressureSwitchChannel, RelaySlot, RelayChannel)


What I dont understand here is what the constructor means by "Slot". What is the difference between slot and channel, since the Pressure switch and relay are only plugged into the digital sidecar?