Simulink AUTOSAR Blockset - macro for PI
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on AUTOSAR Blockset in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!