1
0
Fork 0
A320-family/Nasal/Systems/Comm/CPDLC.nas

37 lines
1 KiB
Text
Raw Normal View History

2020-08-03 16:50:08 +00:00
# A3XX CPDLC
# Jonathan Redpath
# Copyright (c) 2020 Josh Davidson (Octal450)
var CPDLCmessage = {
2020-11-29 16:58:38 +00:00
new: func(text, response = 0) {
2020-08-03 16:50:08 +00:00
var cpdlcMessage = {parents: [CPDLCmessage] };
cpdlcMessage.text = text;
2020-11-29 16:58:38 +00:00
cpdlcMessage.response = response;
2020-08-03 16:50:08 +00:00
return cpdlcMessage;
},
};
2020-11-29 16:58:38 +00:00
makeNewDictionaryItem(CPDLCmessage.new("CONNECT",0), "CONNECT");
makeNewDictionaryItem(CPDLCmessage.new("WILCO",0), "WILCO");
makeNewDictionaryItem(CPDLCmessage.new("UNABLE",0), "UNABLE");
makeNewDictionaryItem(CPDLCmessage.new("STANDBY",0), "STANDBY");
makeNewDictionaryItem(CPDLCmessage.new("ROGER",0), "ROGER");
makeNewDictionaryItem(CPDLCmessage.new("AFFIRM",0), "AFFIRM");
makeNewDictionaryItem(CPDLCmessage.new("NEGATIVE",0), "NEGATIVE");
makeNewDictionaryItem(CPDLCmessage.new("REQUEST ALTITUDE",0), "REQUEST ALTITUDE");
var freeText = {
new: func(index) {
var freeTextObj = {parents: [freeText]};
freeTextObj.index = index;
return freeTextObj;
},
selection: 9,
changed: 0,
};
var freeTexts = [freeText.new(0), freeText.new(1)];