#include "myusercode.h" for Cortex

How do I do that when I’m using the Competition template?

We have created several user functions in “C” (outside of block programming - using the convert to “C” option), and need to define the function prototypes so that the OperatorControl and Autonomous tabs of the template can call our custom “C” functions.

How do we add in a #include “myusercode.h” into the top of the locked down OperatorControl and Autonomous blocks of code?


You need to add it to the UserIncludes.h file, then you can call functions in that file.

I highly recommend going through tutorial number 14.

Thanks!! Somehow I missed that tutorial. Thanks for pointing it out.