View Single Post
  #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