
12-03-2012, 16:42
|
 |
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
|
|
|
Re: REED SWITCH TROUBLE IN TELE-OP
Quote:
Originally Posted by Mark McLeod
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 ?
|