Amount of Threads and Custom Functions on EXP Brain

When working with the EXP brain I have 6 threads going to store updated sensor data. We also have 10-12 custom functions we made. However; our robots keep not running consistently. One run the code runs correctly, another time the code messes with turning where it will turn left instead of right; causing an infinite spin.

So my question is; β€œIs there a limit to the number of threads and custom functions?” Like is our group pushing the EXP brain to far?

maximum user threads on EXP is 28, but some will be reserved for event handling, so perhaps 18 IIRC.

There should be no limit on functions

What does this mean, where are you storing it ?

sounds more like a logic problem with the code to me.

3 Likes

Here is a template of the code base our Intro students setup throughout the course. @jpearman can you take a look and see if my thought process for Threading is correct?

VEXcode Template Update.zip (4.1 KB)