Hi,
I understand that the s-function created from make_sfun is the OCP solver and the s-function created from make_sfun_sim is the integrator.
For the OCP solver s-function i understand that i can configure options by doing something like:
simulink_opts = get_acados_simulink_opts;
simulink_opts.samplingtime = ‘-1’; %inherited
My question is how do I configure options such as sampling time for the integrator s-function? In my simulink model I am getting an error that says the sample time of the integrator s-function block must be inherited (-1).
Ultimately what I am trying to do is have an integrator in a for loop to generated a sequence of reference states that of which each stages of the MPC horizon can take as reference
Best,
SJ