View Single Post
  #11   Spotlight this post!  
Unread 17-03-2004, 20:44
WebWader125
 
Posts: n/a
Re: Help! Programming question with triggers

Quote:
Originally Posted by AsimC
Anyways... Slimbojones when i was debugging my code, i tried something like that... and it didnt work. What happens is the 1 from p3_sw_trig is held in the code, so it never goes back to 0 and that means itll never go to neutral.
Did you try something like that, or did you try exactly what Slimbo posted? If you had two IF's but only one ELSE, it would probably behave how you've described.

One question I have: What happens when you push the toggle switch down? Do your motors actually run in reverse then? Or is forward the only direction that's working at all for you?