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

Make the C files handle infinity values with defines #7

Open pablokrupa opened 3 years ago

pablokrupa commented 3 years ago

Currently, if I declare a variable with value infinity in C, it is assigned a value that appears in the function decVar. This is very obtuse. It would be better to have the value of infinity in the header file as a define and for decVar to assign this define if it encounters an infinite value.