osqp / osqp-matlab

Matlab interface for OSQP
https://osqp.org/
Apache License 2.0
42 stars 25 forks source link

Failure to generate c code using "float" type instead of "double" #57

Open Qin98331 opened 5 months ago

Qin98331 commented 5 months ago

Hi, I wanna generate C code for my MCU, and use "float" instead of "double". The Matlab command is:

"m.codegen('Ccode1','FLOAT',true,'LONG',false)"

This command is able to generate c code. However the type of numerical variable is still double.

1> [CMake] -- Floats are OFF 1> [CMake] -- Long integers (64bit) are ON

what's wrong with it?