Simulink AUTOSAR Blockset - macro for PI
Ältere Kommentare anzeigen
Hi,
I am generating code from Simulink using AUTOSAR blockset and I would like to avoid having pi as magic number in my code. However, because it is not really a parameter, I would like to try to get Simulink coder to define a macro that sets pi value (e.g. M_PI).
Unfortunately, I haven't found how to do that. Anyone as an idea?
Regards, Nicolas
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu AUTOSAR Blockset finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!