Using header file in C-script

With the PLECS C-Script block you cannot link against external libraries, so you must include your external code as source code. In other words, you must include the “controller.c” file in the Code Declarations section, as you have done so far.