|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#1
|
||||
|
||||
|
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? |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|