In my existing (legacy) AUTOSAR SW I have an interface with the following compu method:
<COMPU-NUMERATOR>
<V>0</V>
<V>8192</V>
</COMPU-NUMERATOR>
<COMPU-DENOMINATOR>
<V>45</V>
</COMPU-DENOMINATOR>
I now want to access this interface with an AUTOSAR SWC created with Simulink. I therefore have to redefine the interface in Simulink so that the SW build can connect both worlds (legacy and Simulink SWCs). However the generated ARXML definition from Simulink looks as follows:
<COMPU-NUMERATOR>
<V>0</V>
<V>182.04444444444445</V>
</COMPU-NUMERATOR>
<COMPU-DENOMINATOR>
<V>1</V>
</COMPU-DENOMINATOR>
Simulink seems to always set the denominator to 1 and calculates the numerator based on that. This causes my SW build to fail as it is expecting exactly the first compu method. Is there any way how I can do this? I guess the issue is that in Simulink all I can define is a slope but not numerator/denominator specifically?
Thanks.