Go to Post I would hate for you to get the impression that the Northeast is one big unending snowglobe during the winter months. - Elgin Clock [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #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?
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:31.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi