Hi, I have a saturation block in Simulink where I set upper and lower limits based on a tunable parameter and have the output port generated as global variable:
In the generated C-code the lower limit expression is evaluated to:
srt_gyroXsaturated = rtU.gyro_X >= srt_gyroLimitX ? srt_gyroLimitX :
rtU.gyro_X <= -0.349040151F ? -0.349040151F : rtU.gyro_X;
What I want is that '-srt_gyroLimitX' is not evaluated to '-0.349....' but left "as is" in the generated code. How can I achive that?