View Single Post
  #5   Spotlight this post!  
Unread 12-03-2012, 18:16
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: REED SWITCH TROUBLE IN TELE-OP

The code should be in a single place, not several places. That'd be like two people trying to type on a keyboard at the same time using the same keys.
It'll interfere with itself otherwise, and the long pauses would disable Teleop.

Periodic Tasks is the right place for a sequence like this.
  1. Check for start of sequence (joystick)
  2. Turn motor on/check for reed switch OFF
  3. Check for reed switch ON
  4. Turn motor OFF
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote