FIRST Tech Challenge Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with complex subvi in Teleop (Samantha)

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.

0 Kudos
Message 1 of 2
(3,195 Views)

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/

0 Kudos
Message 2 of 2
(2,706 Views)