Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   Digital 18??!?! (http://www.chiefdelphi.com/forums/showthread.php?t=125551)

anthonygraff24 31-01-2014 15:51

Digital 18??!?!
 
Ok so all the Pneumatics resources we've found so far say that we must connect the pressure switch to Digital port #18. We have not figured out what digital #18 is. There are only 14 digital IO ports on our sidecar (the one we got in the KOP). We've been helpd up for almost a week with this problem, and I'm literally ready to rip my hair out :ahh: :ahh: :ahh: . If someone could post a picture clearly indicating Digital 18, explain WHERE digital 18 is, and/or explain exactly WHY we need to plug that into Digital 18,
I would love you forever :] :] .

apalrd 31-01-2014 15:56

Re: Digital 18??!?!
 
Not sure where you found that resource, but digital 18 was the last digital IO port on the IFI control system (last used by FRC in 2008). The IFI system provided 'default code' which mapped all of the motor and relay outs to joystick inputs and buttons, including 1 relay for the compressor (mapped to digital 18 for the switch), allowing teams to run a robot without programming it, as such most examples suggested that teams use the same IO ports as the default code.

Any digital port will work now, but you have to write a bit of code to do it. The exact way to do this depends on your programming language.

anthonygraff24 31-01-2014 15:58

Re: Digital 18??!?!
 
We are programming in Java. The compressor constructor currently looks like this:

Compressor comp = new Compressor(2,8);

Can you please explain which slot the spike and pressure switch need to be plugged into? :D :D :D

cgmv123 31-01-2014 16:06

Re: Digital 18??!?!
 
Quote:

Originally Posted by anthonygraff24 (Post 1335435)
We are programming in Java. The compressor constructor currently looks like this:

Compressor comp = new Compressor(2,8);

Can you please explain which slot the spike and pressure switch need to be plugged into? :D :D :D

The constructor takes the pressure switch input first. Pressure switch goes to DIO 2 and the spike goes to Relay port 8. See attached.

Attachment 16007

Caleb Sykes 31-01-2014 17:53

Re: Digital 18??!?!
 
Quote:

Originally Posted by anthonygraff24 (Post 1335430)
Ok so all the Pneumatics resources we've found so far say that we must connect the pressure switch to Digital port #18...

Can you please link to said resource(s)? I am curious to know the context.

magnets 31-01-2014 18:51

Re: Digital 18??!?!
 
Quote:

Originally Posted by inkling16 (Post 1335492)
Can you please link to said resource(s)? I am curious to know the context.

Any pre-2009 control system information will say this.


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

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