diff --git a/Nasal/FMGC/SimbriefParser.nas b/Nasal/FMGC/SimbriefParser.nas index b215dc29..0f924375 100644 --- a/Nasal/FMGC/SimbriefParser.nas +++ b/Nasal/FMGC/SimbriefParser.nas @@ -112,7 +112,9 @@ var SimbriefParser = { fmgc.FMGCInternal.arrApt = destinationID; atsu.ATISInstances[0].newStation(departureID); + atsu.ATISInstances[0].setType(1); atsu.ATISInstances[1].newStation(destinationID); + atsu.ATISInstances[1].setType(0); fmgc.FMGCInternal.toFromSet = 1; fmgc.FMGCNodes.toFromSet.setValue(1); @@ -139,6 +141,7 @@ var SimbriefParser = { if (size(alternates) != 0) { fmgc.FMGCInternal.altAirport = alternateID; atsu.ATISInstances[2].newStation(alternateID); + atsu.ATISInstances[2].setType(0); fmgc.FMGCInternal.altAirportSet = 1; } } diff --git a/Nasal/MCDU/MCDU.nas b/Nasal/MCDU/MCDU.nas index 882d9bfc..d83f0619 100644 --- a/Nasal/MCDU/MCDU.nas +++ b/Nasal/MCDU/MCDU.nas @@ -293,6 +293,7 @@ var lskbutton = func(btn, i) { if (atsu.ATISInstances[0].sent != 1) { if (fmgc.FMGCInternal.depApt != "") { atsu.ATISInstances[0].newStation(fmgc.FMGCInternal.depApt); + atsu.ATISInstances[0].setType(1); } else { atsu.ATISInstances[0].station = nil; } @@ -437,6 +438,7 @@ var lskbutton = func(btn, i) { if (atsu.ATISInstances[1].sent != 1) { if (fmgc.FMGCInternal.arrApt != "") { atsu.ATISInstances[1].newStation(fmgc.FMGCInternal.arrApt); + atsu.ATISInstances[1].setType(0); } else { atsu.ATISInstances[1].station = nil; } @@ -564,6 +566,7 @@ var lskbutton = func(btn, i) { if (atsu.ATISInstances[2].sent != 1) { if (fmgc.FMGCInternal.altAirportSet) { atsu.ATISInstances[2].newStation(fmgc.FMGCInternal.altAirport); + atsu.ATISInstances[1].setType(0); } else { atsu.ATISInstances[2].station = nil; } diff --git a/Nasal/Systems/Comm/Notification.nas b/Nasal/Systems/Comm/Notification.nas index 8d792874..4faad6fc 100644 --- a/Nasal/Systems/Comm/Notification.nas +++ b/Nasal/Systems/Comm/Notification.nas @@ -303,6 +303,11 @@ var ATIS = { return 1; } }, + setType: func(i) { + if (i >= 0 and i <= 1) { + me.type = i; + } + }, sendReq: func(i) { if (me.station == nil or (me.sent and !me.received)) { return 1; diff --git a/Systems/a320-fwc.xml b/Systems/a320-fwc.xml index 59bcba8b..ebc88e54 100644 --- a/Systems/a320-fwc.xml +++ b/Systems/a320-fwc.xml @@ -3457,7 +3457,7 @@ /ECAM/warnings/fctl/altn-law 120 - 3.33333333333 + 0.3