View Single Post
  #7   Spotlight this post!  
Unread 14-01-2013, 20:54
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: Problem with Disabled.vi

The loop inside Teleop is not good.
It will never end, because the value of controller Button 2 is only checked once when the loop begins, then is never checked again.

In general, Teleop should execute and leave as soon as possible. No loops waiting for other things to happen.
That's because Teleop is expected to process a command packet sent from the Driver Station every 20ms.

Your code will do what you want if you leave everything, but remove just the loop from around your code.
Teleop is actually inside a loop itself, so your code will get called over and over.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 14-01-2013 at 20:58.
Reply With Quote