Generate pseudocode from the description. Definition of the ambient temperature indicator
Temperature Range: -45°C to +80°C (-50°F to 175°F)
Values between -45°C to -50°C (-50°F to -60°F) shall be indicated with -45°C (e.g ODT_TempIndicated.data = -45 for Celcius values). Values below -50°C (-60°F) shall set the Public Attribute field ODT_TempIndicated.Availability = NotActive.
Values between 80°C to 85°C (175°F to 185°F) shall be indicated with 80°C (e.g
ODT_TempIndicated.data = 80 for Celcius values). Values above 85°C (185°F) shall set the Public Attribute field ODT_TempIndicated.Availability = NotActive
The same handling shall be applied for corresponding temperature values when the unit is set to Fahrenheit.
For the conversion from Celsius to Fahrenheit, DIM shall use the incoming flexray signal value in Celsius and not the displayed value.
The indicated temperature unit shall be used according to the internal signal AmbTUnitForUseInt:
ODT_TempIndicated.Format= AmbTUnitForUseInt