1
0
Fork 0

Merge branch 'dev' into new-flightplan

This commit is contained in:
Jonathan Redpath 2022-02-11 19:50:17 +00:00
commit aaf04c9c2b
4 changed files with 12 additions and 1 deletions

View file

@ -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;
}
}

View file

@ -292,6 +292,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;
}
@ -436,6 +437,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;
}
@ -565,6 +567,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;
}

View file

@ -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;

View file

@ -3446,7 +3446,7 @@
<actuator name="/ECAM/warnings/fctl/altn-law-output">
<input>/ECAM/warnings/fctl/altn-law</input>
<rate_limit sense="decr">120</rate_limit> <!-- Instant -->
<rate_limit sense="incr">3.33333333333</rate_limit> <!-- 0.3 seconds -->
<rate_limit sense="incr">0.3</rate_limit>
</actuator>