GepocUS / Spcies

Suite of Predictive Controllers for Industrial Embedded Systems. A Matlab toolbox for automatic code generation of solvers for MPC controllers.
Apache License 2.0
14 stars 2 forks source link

Backward compatibility for MATLAB in the examples #50

Open lordmendonca opened 6 months ago

lordmendonca commented 6 months ago

I am a MATLAB R2017b user adhering to the toolchain requirements. I want to study the example(s) provided in order to naturally adapt to my requirements. However, the examples use the 'ss' function, which is not supported in MATLAB 2017. Therefore, I would recommend providing an example with backward compatibility.

yangbo116 commented 6 months ago

I am try to run the .m file t00_basic_tutorial, but there are occurs the Error with Error using mex mpc_solver_plain_C.c D:\spcies_root\Spcies-0.3.10\generated_solvers\mpc_solver_plain_C.c(739): warning C4013: ¡°clock_gettime¡±Î´¶¨Ò壻¼ÙÉèÍⲿ·µ»Ø int D:\spcies_root\Spcies-0.3.10\generated_solvers\mpc_solver_plain_C.c(739): error C2065: ¡°CLOCK_MONOTONIC_RAW¡±: δÉùÃ÷µÄ±êʶ·û I have no idear why it is hapen Furthermore, when i run spcies.m, why there are so many "?" in the list of ansower.

pablokrupa commented 5 months ago

I am try to run the .m file t00_basic_tutorial, but there are occurs the Error with Error using mex mpc_solver_plain_C.c D:\spcies_root\Spcies-0.3.10\generated_solvers\mpc_solver_plain_C.c(739): warning C4013: ¡°clock_gettime¡±Î´¶¨Ò壻¼ÙÉèÍⲿ·µ»Ø int D:\spcies_root\Spcies-0.3.10\generated_solvers\mpc_solver_plain_C.c(739): error C2065: ¡°CLOCK_MONOTONIC_RAW¡±: δÉùÃ÷µÄ±êʶ·û I have no idear why it is hapen

This issue seems to be the one reported in #49. We are currently looking into it, and hope to have it solved in the near future. Could you please confirm if you are using Windows operating system and what version of Matlab?

Furthermore, when i run spcies.m, why there are so many "?" in the list of ansower.

I'm sorry, but I don't understand what you mean here. If you run spcies.m with no arguments, i.e., >> spcies some basic help text should be printed in the command window. If you could provide more information such as the error message that you get when you run spcies we might be able to identify the problem.