View Single Post
  #2   Spotlight this post!  
Unread 12-04-2011, 21:26
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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: arm loop stops drive

You cannot have a delay loop inside the Teleop.vi.
Teleop must execute quickly and be free to leave, because it must service 50 packets a second from the Driver Station.

If you stop it, then it won't be able to react to new driver commands.

Your delay code would work better in Periodic Tasks.vi
It can pretty much be moved, as is.
Also, your While loops must have a time delay added to each of them. Otherwise, they will run at max speed and suck all the life out of your cRIO and nothing will work very well.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 12-04-2011 at 21:29.
Reply With Quote