|
Re: Limit on how complex Teleop.vi should be?
Teleop needs to complete faster than 20ms.
You can check this using the Elapsed Times.vi provided under the Support Code in the project tree.
Drop it into Teleop and open the front panel of Elapsed Times to watch, then run debug from Robot Main. You'll get how long it takes Teleop to run.
Normally you should put complete, time consuming tasks somewhere other than Teleop.
Usually Periodic Tasks.vi is a good choice.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Last edited by Mark McLeod : 27-01-2017 at 22:05.
|