Go to Post The competition is over, I have no other FIRST-related activities to pursue–WHAT ELSE AM I GOING TO DO WITH MY LIFE BUT BROWSE CHIEF DELPHI UNTIL JANUARY???? - David8696 [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-02-2002, 09:47
Dan 550's Avatar
Dan 550 Dan 550 is offline
Behold the Awesomeness!
AKA: Dan Richards
#0550 (BattleTech)
Team Role: College Student
 
Join Date: Jun 2001
Rookie Year: 2000
Location: Jersey, Baby!
Posts: 310
Dan 550 is on a distinguished road
Working Pump Code

I need a working pump code, fast. Can anyone post a real working copy? Thanks in advance.

-Dan
  #2   Spotlight this post!  
Unread 02-02-2002, 11:30
jnossen jnossen is offline
Registered User
#0613
 
Join Date: Feb 2002
Location: New Jersey
Posts: 6
jnossen is an unknown quantity at this point
'Place this in the main loop
gosub Comp_Switch:


'Place this below the main loop
Comp_Switch:

if rc_sw2 = 0 then low_pres: 'Compressor switch
comp_on = 0 'counter variable
relay1_fwd=1
relay1_rev=0
return



low_pres:
if(comp_on = comp_off) then compress_off: 'comp_off is set
'to 120. try other
'values to see which you like.
'Still not sure whcih value we'll use
relay1_fwd=1
relay1_rev=0
comp_on = comp_on + 1
return

compress_off: 'Deactivate Compressor
relay1_fwd=0
relay1_rev=0
return


Hope it helps. This assumes that you are going into digital inputs 2 and 6.
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is your most prefered programming language? Hailfire Programming 156 19-01-2005 21:42
pneumatic wiring nick_champ_2 Electrical 3 23-02-2003 01:21
Does your team use the Default code. Jeff McCune General Forum 2 09-01-2003 14:46
Auto Air Pump Code zorro Programming 25 05-01-2003 16:50
Error found in programming for the pump and pressure switch sjharobotics Programming 4 06-02-2002 17:46


All times are GMT -5. The time now is 09:30.

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