I need to convert calibration parameters to constant, or vice versa.
Here is one example of parameter which I want to convert to constant.
what is the stable way to convert calibration to constant, which cant be affected by any of code generation configuration in matlab?
CalParm_test = AUTOSAR.Parameter;
CalParm_test.Value = 50;
CalParm_test.CoderInfo.StorageClass = 'Custom';
CalParm_test.CoderInfo.Alias = '';
CalParm_test.CoderInfo.Alignment = -1;
CalParm_test.CoderInfo.CustomStorageClass = 'InternalCalPrm';
CalParm_test.CoderInfo.CustomAttributes.PerInstanceBehavior = 'Parameter shared by all instances of the Software Component';
CalParm_test.SwCalibrationAccess = 'ReadWrite';
CalParm_test.Description = '';
CalParm_test.DataType = 'single';
CalParm_test.Min = -20000;
CalParm_test.Max = 20000;
CalParm_test.DocUnits = '-';
When I change it as 'Auto', parameter will be generated as inline constant value without variable.
What is the difference to confidure StorageClass as 'Custom' and 'Auto'?