S-Function fails Simulink Compile Check

Hi Alex,

what did you change with respect to your post here?

You write there that you “isolated the S function”, but I am not sure what that means.
acados_create is defined in the rendered acados_solver.c file.

Thinking again about your other post:

I think the S-function might need additional declarations of the global data of the solver, i.e. these lines:

// ** global data **
// acados objects
extern ocp_nlp_in * nlp_in;
extern ocp_nlp_out * nlp_out;
extern ocp_nlp_solver * nlp_solver;
extern void * nlp_opts;
extern ocp_nlp_plan * nlp_solver_plan;
extern ocp_nlp_config * nlp_config;
extern ocp_nlp_dims * nlp_dims;

Greets,
Jonathan