Go to Post I encourage the communication of constructive ideas on how to make FIRST a better program. - meaubry [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 Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 19-02-2004, 06:19
Lord Nerdlinger Lord Nerdlinger is offline
Registered User
#1047
 
Join Date: Jan 2003
Location: Irvine
Posts: 98
Lord Nerdlinger has a little shameless behaviour in the past
Getting the relays to stay constant

Right now we have our pump hooked up to one of the spikes on #5 and while it works (press a button and it goes on) it doesn't stay on and it's really annoying to have to hold it down.

I think* (i don't know how to code and no one on the team does) that all I have to do is something like this


when joystick button is depressed set a variable equal to one

then do an if statement, if variable equals 1 to set the relay to fwd, else if, set relay to neutral position i guess fwd and rev are equal to zero?

I don't know the proper syntax or way about doing this, but i think it would only be a 1 or 2 lines of code

could anyone tell me how to do it or write it out so I could just copy and paste it into our code? plzzzz

It's #5 if you want to write it out
 


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
stay on the carpet????!!!! soap108 Rules/Strategy 12 13-03-2003 12:50
SPIKE relays Andy Brockway Electrical 2 13-11-2002 13:22
where are teams going to stay? archiver 2001 2 24-06-2002 02:49
How many hotels did you team stay at?? Elgin Clock Championship Event 4 10-05-2002 17:53
How do you control relays BinaryBob0001 Technical Discussion 2 21-01-2002 08:42


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

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