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 3adb3090..13e1eb9f 100644 --- a/Nasal/MCDU/MCDU.nas +++ b/Nasal/MCDU/MCDU.nas @@ -291,6 +291,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; } @@ -433,6 +434,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; } @@ -560,6 +562,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 80d10af3..0af52411 100644 --- a/Nasal/Systems/Comm/Notification.nas +++ b/Nasal/Systems/Comm/Notification.nas @@ -302,6 +302,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;