03-11-2013 03:58 PM
We are trying to get some subVIs running in the the Teleop mode. These are fairly long in time of execution but they do not seem to work properly.
We would like to have the robot perform a set of functions with the detection of pushing on the controller buttons. For instance, advance until robot is a specified distance from an object.
What we are experiencing we get a very slow, jerky execution of the loop containing the specific subVI.
I guess what I need is a better understanding of how the various while loops are scheduled and how to give priority to a loop when it needs to accomplish a specific task.
Thanks,
Bill.
03-14-2013 09:06 AM
Problem solved. Issue was two code sections competing for the motors at the same time. Solution was to lock out one of the code sections when the subVI was executing as shown in Webinar 8, Part 2 available on this page: http://www.tetrixrobotics.com/ftc/.