diff --git a/A320-main.xml b/A320-main.xml index 0174f383..6342d3b2 100644 --- a/A320-main.xml +++ b/A320-main.xml @@ -45,7 +45,7 @@ 0.0 /controls/deice/windowprobeheat 0.5 - /environment/aircraft-effects/frost-level + /environment/aircraft-effects/frost-inch Fuselage diff --git a/Nasal/Systems/icing.nas b/Nasal/Systems/icing.nas index 0ad2dc6d..e0bd7ac5 100644 --- a/Nasal/Systems/icing.nas +++ b/Nasal/Systems/icing.nas @@ -43,6 +43,11 @@ var environment = { visibLclWx: props.globals.getNode("environment/visibility-m"), }; +var effects = { + frost_inch: props.globals.getNode("environment/aircraft-effects/frost-inch", 1), + frost_norm: props.globals.getNode("environment/aircraft-effects/frost-level"), +}; + # Icing factor computation. var maxSpread = 0; @@ -166,6 +171,8 @@ var icingModel = func { foreach(iceable; iceables) { iceable.update(factor, melt_factor); } + + effects.frost_norm.setDoubleValue(effects.frost_inch.getValue() * 50); if (WingHasBeenTurnedOff and !wowl and !wowr and GroundModeFinished) { setprop("controls/deice/wing", 1);