View Single Post
  #3   Spotlight this post!  
Unread 12-03-2012, 16:42
dcarswell's Avatar
dcarswell dcarswell is offline
FRC Mentor/Old Dominion University
AKA: DeAndre Carswell
FRC #3359 (Royal Robotics)
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2006
Location: Portsmouth, VA
Posts: 36
dcarswell is an unknown quantity at this point
Re: REED SWITCH TROUBLE IN TELE-OP

Quote:
Originally Posted by Mark McLeod View Post
I'd think that code would have a problem clearing the Reed switch.
If the reed switch is on, from the start or from the last time it stopped the sequence, then it will prevent it from ever running again.

You need a frame or a loop (tied to the one you already have) that makes sure the reed switch turns off before looking for an ON again.
So if I added a frame after the motor has turned on, with the reed switch cutting off, then would it stop, and would the code work ?
Reply With Quote