mirror of
https://github.com/brmlab/acarsdec.git
synced 2025-08-01 21:53:38 +02:00
All translation data from files in dir ./datasets
This commit is contained in:
parent
1362759d65
commit
210716c344
7 changed files with 39621 additions and 23073 deletions
File diff suppressed because it is too large
Load diff
|
@ -1,91 +0,0 @@
|
|||
const char * acars_labels[][2]={
|
||||
{"_j", "No info to transmit. Polled mode 1"},
|
||||
{"_DEL", "General response, Demand mode; no"},
|
||||
{" ", "information to transmit1"},
|
||||
{"00", "Emergency situation report"},
|
||||
{"2S", "Weather request"},
|
||||
{"2U", "Weather"},
|
||||
{"4M", "Cargo information"},
|
||||
{"51", "Ground GMT request response"},
|
||||
{"52", "Ground UTC request"},
|
||||
{"54", "Aircrew initiated voice contact request"},
|
||||
{"57", "Alternate aircrew initiated posit. rpt."},
|
||||
{"5D", "ATIS request"},
|
||||
{"5P", "Temporary suspension of ACARS"},
|
||||
{"5R", "Aircraft initiated position report"},
|
||||
{"5U", "Weather request"},
|
||||
{"5Y", "Revision to previous ETA"},
|
||||
{"5Z", "Airline designated downlink"},
|
||||
{"7A", "Aircraft initiated engine data"},
|
||||
{"7B", "Aircraft initiated misc.message"},
|
||||
{"80", "Aircraft addressed downlinks"},
|
||||
{"81", "Aircraft addressed downlinks"},
|
||||
{"82", "Aircraft addressed downlinks"},
|
||||
{"83", "Aircraft addressed downlinks"},
|
||||
{"84", "Aircraft addressed downlinks"},
|
||||
{"85", "Aircraft addressed downlinks"},
|
||||
{"86", "Aircraft addressed downlinks"},
|
||||
{"87", "Aircraft addressed downlinks"},
|
||||
{"88", "Aircraft addressed downlinks"},
|
||||
{"89", "Aircraft addressed downlinks"},
|
||||
{"A1", "Deliver oceanic clearance"},
|
||||
{"A2", "Deliver departure clearance"},
|
||||
{"A4", "Acknowledge PDC"},
|
||||
{"A5", "Request position report"},
|
||||
{"A6", "Request ADS report"},
|
||||
{"A7", "Forward free text to aircraft"},
|
||||
{"A8", "Deliver departure slot"},
|
||||
{"A9", "Deliver ATIS information"},
|
||||
{"A0", "ATIS Facilities notification"},
|
||||
{"B1", "Request oceanic clearance"},
|
||||
{"B2", "Request oceanic readback"},
|
||||
{"B3", "Request departure clearance"},
|
||||
{"B4", "Ackn. departure clearance"},
|
||||
{"B5", "Provide position report"},
|
||||
{"B6", "Provide ADS report"},
|
||||
{"B7", "Forward free text to ATS"},
|
||||
{"B8", "Request departure slot"},
|
||||
{"B9", "Request ATIS information"},
|
||||
{"C0", "Uplink msg. to all cockpit printers"},
|
||||
{"C1", "Uplink msg. to cockpit printer #1"},
|
||||
{"C2", "Uplink msg. to cockpit printer #2"},
|
||||
{"C3", "Uplink msg. to cockpit printer #3"},
|
||||
{"CA", "Printer status = error"},
|
||||
{"CB", "Printer status = busy"},
|
||||
{"CC", "Printer status = local"},
|
||||
{"CD", "Printer status = no paper"},
|
||||
{"CE", "Printer status = buffer overrun"},
|
||||
{"CF", "Printer status = reserved"},
|
||||
{"F3", "Dedicated transceiver advisory"},
|
||||
{"H1", "Message to/from terminal"},
|
||||
{"HX", "Undelivered uplink report"},
|
||||
{"M1", "IATA Departure message"},
|
||||
{"M2", "IATA Arrival message"},
|
||||
{"M3", "IATA Return to ramp message"},
|
||||
{"M4", "IATA Return from airborne message"},
|
||||
{"Q0", "ACARS link test"},
|
||||
{"Q1", "ETA Departure/arrival reports"},
|
||||
{"Q2", "ETA reports"},
|
||||
{"Q3", "Clock update"},
|
||||
{"Q4", "Voice circuit busy (response to 54)"},
|
||||
{"Q5", "Unable to process uplinked messages"},
|
||||
{"Q6", "Voice-to-ACARS change-over."},
|
||||
{"Q7", "Delay message"},
|
||||
{"QA", "Out/fuel report"},
|
||||
{"QB", "Off report"},
|
||||
{"QC", "On report"},
|
||||
{"QD", "In/fuel report"},
|
||||
{"QE", "Out/fuel destination report"},
|
||||
{"QF", "Off/destination report"},
|
||||
{"QG", "Out/return in report"},
|
||||
{"QH", "Out report"},
|
||||
{"QK", "Landing report"},
|
||||
{"QL", "Arrival report"},
|
||||
{"QM", "Arrival information report"},
|
||||
{"QN", "Diversion report"},
|
||||
{"QX", "Intercept"},
|
||||
{"RA", "Command aircraft term. to transmit data"},
|
||||
{"RB", "Response of aircraft terminal to RA msg."},
|
||||
{":;", "Command aircraft xcvr to change freq."},
|
||||
{0, 0}
|
||||
};
|
365
datasets/acars_mls.txt
Normal file
365
datasets/acars_mls.txt
Normal file
|
@ -0,0 +1,365 @@
|
|||
00 Emergency Situation Report
|
||||
10 User defined messages/No header
|
||||
10KL KLM ETA Report
|
||||
11 Inrange Arrival report
|
||||
12 ?????
|
||||
13 CMU loadsheet uplink
|
||||
14 General aviation free text message
|
||||
15 General aviation position report
|
||||
15GS Business Flight Position Report
|
||||
16 General aviation weather request
|
||||
16QR Qatar Airways Position Report
|
||||
17 Estimated Time of Arrival report
|
||||
18 General aviation weather report
|
||||
19 ATIS report
|
||||
1A Change in operating frequency
|
||||
1B ?????
|
||||
1C Flight plan request
|
||||
1D ?????
|
||||
1E ?????
|
||||
1G ?????
|
||||
1L Off message
|
||||
1M Estimated Time of Arrival report
|
||||
1Q ?????
|
||||
1X Loss of VHF communications
|
||||
20 SAS: Initialization
|
||||
21 SAS: Take off data calculation
|
||||
22 ?????
|
||||
23 SAS: Loadsheet uplink
|
||||
24 SAS: Crewlist
|
||||
24NW Weather Request
|
||||
25 SAS: Special load notification
|
||||
26 SAS: Sigmet message
|
||||
27 Weather request for SA
|
||||
28 Weather request
|
||||
29 SAS: Flow message
|
||||
2A ?????
|
||||
2B ?????
|
||||
2L ?????
|
||||
2P ?????
|
||||
2S Weather request
|
||||
2T80 CANADA 300 AIRLINES DEFINED
|
||||
2T89 CANADA 300 AIRLINES DEFINED
|
||||
2U Weather
|
||||
30 Position report
|
||||
30ME Middle Eastern Position report
|
||||
31 Weather report
|
||||
32 ?????
|
||||
33 ?????
|
||||
36 In range message
|
||||
38 ?????
|
||||
39 Weather request
|
||||
3E ?????
|
||||
3F Estimated Time of Arrival
|
||||
3G Free text message
|
||||
3J Downlink message
|
||||
3R ?????
|
||||
3S Downlink message
|
||||
3U Acknowledgement
|
||||
3V20 Position report
|
||||
41 SAS: Flow message
|
||||
42 ?????
|
||||
44 ?????
|
||||
45 ?????
|
||||
49 ?????
|
||||
4L TOD??
|
||||
4M Cargo data
|
||||
4P Weather report/forecast
|
||||
4Q Departure report
|
||||
4S Weather request
|
||||
4T ETA report
|
||||
4U Weather
|
||||
4s Auto weather forecast
|
||||
51 Ground GMT request response
|
||||
52 Ground UTC request
|
||||
53 Spare
|
||||
54 Aircrew or ground initiated voice contact request
|
||||
57 Alternate aircrew initiated position report
|
||||
5D ATIS request
|
||||
5P Temporary suspension of ACARS service
|
||||
5R Aircrew initiated position report
|
||||
5U Weather request
|
||||
5V VDL switch advisory
|
||||
5Y Revision to previous ETA, or diversion
|
||||
5Y80 ATLAS AIR INC. DEFINED
|
||||
5Z Airline designated downlink
|
||||
7A Aircrew initiated engine data/takeoff thrust
|
||||
7B Aircrew initiated miscellaneous message
|
||||
80 Aircrew addressed downlink
|
||||
81 Off report
|
||||
82 Aircrew addressed downlink
|
||||
83 Aircrew addressed downlink
|
||||
84 Aircrew addressed downlink
|
||||
85 Aircrew addressed downlink
|
||||
86 Aircrew addressed downlink
|
||||
87 Aircrew addressed downlink
|
||||
88 Aircrew addressed downlink
|
||||
88SQ Singapur Airlines weather request
|
||||
89 Aircrew addressed downlink
|
||||
8A SAS Out report
|
||||
8B SAS Off report
|
||||
8C SAS On report
|
||||
8D SAS In report
|
||||
8E SAS Out/return in report
|
||||
8G SAS Take off data calculation request
|
||||
8H SAS Loadsheet request/confirmation
|
||||
8I SAS Flightplan request
|
||||
8J SAS Crewlist request
|
||||
8X Uplink ATIS information
|
||||
8Z Avionics unable to process data
|
||||
9E30 NORTHWEST AIRLINK DEFINED
|
||||
A0 ATIS facilities notification
|
||||
A1 Deliver oceanic clearance
|
||||
A3 Deliver departure clearance
|
||||
A4 Acknowledge departure clearance
|
||||
A5 Request position report
|
||||
A6 Requested ADS report
|
||||
A7 Forward free text to aircraft
|
||||
A8 Deliver departure slot
|
||||
A9 Deliver ATIS information
|
||||
AA ATC communications
|
||||
AA10 Frequency change
|
||||
AA14 AMERICAN AIRLINES DEFINED
|
||||
AA18 AMERICAN AIRLINES DEFINED
|
||||
AA40 AMERICAN AIRLINES DEFINED
|
||||
AA5J AMERICAN AIRLINES DEFINED
|
||||
AB Terminal weather information
|
||||
AB82 Free text report
|
||||
AC Pushback clearance
|
||||
AC2s Request ATIS information
|
||||
AC4F Off report
|
||||
AC4M Printer specific message
|
||||
AC4P Change Acars mode
|
||||
AC4Q Departure message
|
||||
AC4R Off specific message
|
||||
AC4T ETA/position report
|
||||
AC4s Auto weather forecast
|
||||
AD Expected taxi clearance
|
||||
AF CPC command
|
||||
AF1B AIR FRANCE DEFINED
|
||||
AF1D AIR FRANCE DEFINED
|
||||
AF21 AIR FRANCE DEFINED
|
||||
AF24 AIR FRANCE DEFINED
|
||||
AF26 AIR FRANCE DEFINED
|
||||
AF29 AIR FRANCE DEFINED
|
||||
AF2A AIR FRANCE DEFINED
|
||||
AF2B AIR FRANCE DEFINED
|
||||
AF2C AIR FRANCE DEFINED
|
||||
AF2D AIR FRANCE DEFINED
|
||||
AF2N AIR FRANCE DEFINED
|
||||
AF2T AIR FRANCE DEFINED
|
||||
AF2Z AIR FRANCE DEFINED
|
||||
AF30 AIR FRANCE DEFINED
|
||||
AF31 AIR FRANCE DEFINED
|
||||
AF41 AIR FRANCE DEFINED
|
||||
AF42 AIR FRANCE DEFINED
|
||||
AF46 AIR FRANCE DEFINED
|
||||
AF4A AIR FRANCE DEFINED
|
||||
AF4D AIR FRANCE DEFINED
|
||||
AF4G AIR FRANCE DEFINED
|
||||
AF4H AIR FRANCE DEFINED
|
||||
AF80 AIR FRANCE DEFINED
|
||||
AF8A AIR FRANCE DEFINED
|
||||
AF8B AIR FRANCE DEFINED
|
||||
AF8C AIR FRANCE DEFINED
|
||||
AF8D AIR FRANCE DEFINED
|
||||
AF8X AIR FRANCE DEFINED
|
||||
AN1F AANSETT AIRLINES DEFINED
|
||||
AS80 ALASKA AIRLINES DEFINED
|
||||
AT15 ROYAL AIR MAROC DEFINED
|
||||
AX Uplink message formats
|
||||
AY11 Out report
|
||||
AY12 Off report
|
||||
AY13 On report
|
||||
AY14 Inn report
|
||||
AY1M ETA estimate
|
||||
AY31 Position report
|
||||
AY81 Free text message
|
||||
AYX1 Weather request
|
||||
B0 ATIS facilities notification
|
||||
B1 Request oceanic clearance
|
||||
B2 Request oceanic readback
|
||||
B3 Request departure clearance
|
||||
B4 Acknowledge departure clearance
|
||||
B5 Provide position report
|
||||
B6 Provide ADS report
|
||||
B7 Forward free text to ATS
|
||||
B8 Request departure slot
|
||||
B9 Request ATIS information
|
||||
BA ATC communications
|
||||
BA10 ETA report or FST report
|
||||
BA12 BRITISH AIRWAYS DEFINED
|
||||
BA13 BRITISH AIRWAYS DEFINED
|
||||
BA14 BRITISH AIRWAYS DEFINED
|
||||
BA15 Flight schedule times
|
||||
BA80 BA Time check
|
||||
BB Terminal weather information
|
||||
BC Pushback clearance request
|
||||
BD Expected taxi clearance request
|
||||
BE CPC log-on/log-off request
|
||||
BF CPC wilco/unable response
|
||||
BR13 Weather request
|
||||
BU10 Arrival/departure report
|
||||
BU20 Out report
|
||||
BU21 Off report
|
||||
BU23 Initialization
|
||||
BU5A Ground GMT request
|
||||
BUX1 Weather request
|
||||
BW80 WEST INDIAN DEFINED
|
||||
C0 Uplink message to all cockpit printers
|
||||
C1 Uplink message to the cockpit printer 1
|
||||
C2 Uplink message to the cockpit printer 2
|
||||
C3 Uplink message to the cockpit printer 3
|
||||
CA Printer status = error
|
||||
CA12 Weather request
|
||||
CB Printer status = busy
|
||||
CC Printer status = in local test mode
|
||||
CD Printer status = no paper
|
||||
CE Printer status = buffer overrun
|
||||
CF Printer status = status communication error
|
||||
CI20 CHINA AIRLINES DEFINED
|
||||
CI80 CHINA AIRLINES DEFINED
|
||||
CP80 Position report
|
||||
DF Digital acquisition unit
|
||||
DH1L Off message
|
||||
DL80 Position report
|
||||
E1 Internet e-mail message
|
||||
EC Engine display system
|
||||
EI85 Arrival report
|
||||
EI87 AIR LINGUS DEFINED
|
||||
EIH1 Data download
|
||||
F3 Dedicated transceiver advisory
|
||||
FX10 ATIS request message
|
||||
FX11 In range arrival report
|
||||
FX16 Automatic position report
|
||||
GS15 Position Report
|
||||
H1 Message to/from terminal
|
||||
H2 Meteorological report/command
|
||||
H3 Icing report
|
||||
HD HF data radio
|
||||
HF HFDL position report
|
||||
HF20 Departure aerodrome
|
||||
HF2T Call other aircraft
|
||||
HV20 Resetting ACARS system
|
||||
HX Undelivered uplink report
|
||||
JL12 Weather request
|
||||
KL10 ETA report
|
||||
KL1L Weather request
|
||||
KL20 Resetting ACARS system
|
||||
KL32 Weather/flow message
|
||||
KL41 Meet and assist
|
||||
KL43 Acars anomaly report
|
||||
KL44 Acars request route change
|
||||
KLQP Off report
|
||||
KLQR On report
|
||||
KLQS In report
|
||||
LH10 Frequency change
|
||||
LH1B Off report
|
||||
LH1C On report
|
||||
LH1L Weather request
|
||||
LH3L Command/response uplink
|
||||
LT27 Position report
|
||||
LX28 Position Report
|
||||
LX35 SWISS Position Report
|
||||
M1 IATA departure message
|
||||
M2 IATA arrival message
|
||||
M3 IATA return to ramp message
|
||||
M4 IATA return from airborne message
|
||||
ME30 Position report
|
||||
MU11 Present position report
|
||||
NH13 Weather request
|
||||
NW17 Status report
|
||||
NW21 Weather request
|
||||
NW24 Weather request
|
||||
NW30 Free text message
|
||||
NW31 Weather report
|
||||
NW33 Position report
|
||||
NW36 In range message
|
||||
NW39 Free text message
|
||||
OU26 ETA Report
|
||||
OUHX Weather Report
|
||||
Q0 ACARS link test
|
||||
Q1 ETA departure/arrival reports
|
||||
Q2 ETA reports
|
||||
Q3 Clock update
|
||||
Q4 Voice circuit busy
|
||||
Q5 Unable to process uplinked messages
|
||||
Q6 Voice-to-ACARS changeover
|
||||
Q7 Delay message
|
||||
QA Out/fuel report
|
||||
QB Off report
|
||||
QC On report
|
||||
QD In/fuel report
|
||||
QE Out/fuel destination report
|
||||
QF Off/destination report
|
||||
QG Out/return in report
|
||||
QH Out report
|
||||
QK Landing report
|
||||
QL Arrival report
|
||||
QM Arrival information report
|
||||
QN Diversion report
|
||||
QP Out report
|
||||
QQ Departure report
|
||||
QR On report
|
||||
QR16 Position Report
|
||||
QS In report
|
||||
QT Out/return/in report
|
||||
QX Intercept, unable to process
|
||||
RA Transmit diagnostic
|
||||
RB Response aircraft terminal to RA message
|
||||
S1 Network/VHF statistics report
|
||||
S2 VHF performance report/request
|
||||
S3 LRU configuration report/request
|
||||
SA Media Advisory
|
||||
SK20 Initialization
|
||||
SK21 Take off data calculation
|
||||
SK23 Loadsheet uplink
|
||||
SK24 Crewlist
|
||||
SK25 Special load notification
|
||||
SK26 Sigmet message
|
||||
SK29 Flow message
|
||||
SK31 Change frequency
|
||||
SK41 Slot time revision
|
||||
SK80 On track/position report
|
||||
SK83 Flight summary (ETA est.)
|
||||
SK84 Free text message
|
||||
SK85 Free text message
|
||||
SK86 Position/weather report
|
||||
SK87 Crew message
|
||||
SK88 Msg to dispatch
|
||||
SK89 Msg to station ahead
|
||||
SK8A Out report
|
||||
SK8B Off report
|
||||
SK8C On report
|
||||
SK8D In report
|
||||
SK8E Out/return in report
|
||||
SK8G Take off data calculation request
|
||||
SK8H Loadsheet request/confirmation
|
||||
SK8I Flightplan request
|
||||
SK8J Crewlist request
|
||||
SKRA Flow message
|
||||
SQ Link test message
|
||||
SQ88 Weather request
|
||||
T1 Cabin terminal message
|
||||
T2 Cabin terminal message
|
||||
UA40 UNITED AIRLINES DEFINED
|
||||
UA4I UNITED AIRLINES DEFINED
|
||||
UA80 Position report
|
||||
UA8X UNITED AIRLINES DEFINED
|
||||
UP30 Position report
|
||||
UP31 In report
|
||||
UP3F ETA message
|
||||
UP3G Free text message
|
||||
UP3I On report
|
||||
UP3J Flight plan
|
||||
UP3S Maintenance message
|
||||
UP3T Weather report/forecast
|
||||
UP3U Uplink acknowledgement
|
||||
UP47 Off report
|
||||
UV20 Position report
|
||||
WO Weather observation report
|
||||
X1 Service provider defined
|
||||
_ No information to transmit
|
||||
_* No information to transmit
|
||||
_ No information to transmit
|
||||
¨ No information to transmit
|
15570
datasets/aircrafts_p.txt
Normal file
15570
datasets/aircrafts_p.txt
Normal file
File diff suppressed because it is too large
Load diff
22966
datasets/aircrafts_s.txt
Normal file
22966
datasets/aircrafts_s.txt
Normal file
File diff suppressed because it is too large
Load diff
527
datasets/airlines.txt
Normal file
527
datasets/airlines.txt
Normal file
|
@ -0,0 +1,527 @@
|
|||
BIE Air Mediterranee
|
||||
DUB Dubai Air Wing / Royal Flight
|
||||
EIR EirJet
|
||||
PTI PrivatAir
|
||||
QSC Africa Safari Airways
|
||||
TFL Arke Fly
|
||||
TOM ThomsenFly
|
||||
VQ JetStar
|
||||
1I Novair
|
||||
NVR Novair
|
||||
1R Australian Air Force
|
||||
2R Star Airlines
|
||||
3U Sichuan Airlines
|
||||
CSC Sichuan Airlines
|
||||
3V TNT Airways
|
||||
TAY TNT Airways
|
||||
4R Hamburg Int'l
|
||||
HHI Hamburg Int'l
|
||||
4T Belair
|
||||
BHP Belair
|
||||
4U Germanwings
|
||||
GWI Germanwings
|
||||
5G SkyService
|
||||
SSV SkyService
|
||||
5X United Parcel Service
|
||||
5Y Atlas Air
|
||||
GTI Atlas Air
|
||||
6B Britannia Airways Sverige
|
||||
BLX Britannia Airways Sverige
|
||||
6X Belgium Air Force
|
||||
BAF Belgium Air Force
|
||||
7D Donbassaero
|
||||
UDC Donbassaero
|
||||
8Q Onur Air
|
||||
OHY Onur Air
|
||||
8R Edelweiss Air
|
||||
EDW Edelweiss Air
|
||||
8U Afriqiyah Airways
|
||||
AAW Afriqiyah Airways
|
||||
9E Northwest Airlink
|
||||
FLG Northwest Airlink
|
||||
9W Jet Airways
|
||||
JAI Jet Airways
|
||||
A2 Cielos del Peru
|
||||
CIU Cielos del Peru
|
||||
A9 Air Zena Georgian Airlines
|
||||
TGL Air Zena Georgian Airlines
|
||||
AA American Airlines
|
||||
AAL American Airlines
|
||||
AB Air Berlin
|
||||
BER Air Berlin
|
||||
AC Air Canada
|
||||
ACA Air Canada
|
||||
AE Mandarin Airlines
|
||||
MDA Mandarin Airlines
|
||||
AF Air France
|
||||
AFR Air France
|
||||
AH Air Algerie
|
||||
DAH Air Algerie
|
||||
AI Air India
|
||||
AIC Air India
|
||||
AM Aeromexico
|
||||
AMX Aeromexico
|
||||
AO Australian Airlines
|
||||
AUZ Australian Airlines
|
||||
AP Airbus Test
|
||||
AIB Airbus Test
|
||||
AQ Aloha Airlines
|
||||
AAH Aloha Airlines
|
||||
AR Aerolineas Argentinas
|
||||
ARG Aerolineas Argentinas
|
||||
AS Alaska Airlines
|
||||
ASA Alaska Airlines
|
||||
AT Royal Air Maroc
|
||||
RAM Royal Air Maroc
|
||||
AY Finnair
|
||||
FIN Finnair
|
||||
AZ Alitalia
|
||||
AZA Alitalia
|
||||
B2 Belavia
|
||||
BRU Belavia
|
||||
B4 Flyglobespan.com
|
||||
GSM Flyglobespan.com
|
||||
B6 JetBlue Airways
|
||||
JBU JetBlue Airways
|
||||
BA British Airways
|
||||
BAW British Airways
|
||||
BD bmi British Midland/bmibaby
|
||||
BMA bmi British Midland/bmibaby
|
||||
BJ Nouvelair Tunisie
|
||||
LBT Nouvelair Tunisie
|
||||
BO Boeing
|
||||
BR EVA Airways Corporation
|
||||
EVA EVA Airways Corporation
|
||||
BT Air Baltic
|
||||
BTI Air Baltic
|
||||
BU Braathens
|
||||
BRA Braathens
|
||||
BW BWIA West Indies Airways
|
||||
BWA BWIA West Indies Airways
|
||||
BY Thomsen.com
|
||||
BAL Thomsen.com
|
||||
C6 CanJet
|
||||
CJA CanJet
|
||||
C8 Chicago Express Airlines/ATA Connection
|
||||
WDY Chicago Express Airlines/ATA Connection
|
||||
C9 Cirrus Air
|
||||
RUS Cirrus Air
|
||||
CA Air China
|
||||
CCA Air China
|
||||
CC Air Atlanta Icelandic
|
||||
ABD Air Atlanta Icelandic
|
||||
CF City Airline
|
||||
SDR City Airline
|
||||
CI China Airlines
|
||||
CAL China Airlines
|
||||
CJ China Northern Airlines
|
||||
CBF China Northern Airlines
|
||||
CK China Cargo Airlines
|
||||
CKK China Cargo Airlines
|
||||
CM Copa Airlines
|
||||
CMP Copa Airlines
|
||||
CO Continental Airlines
|
||||
COA Continental Airlines
|
||||
CU Cubana de Aviacion
|
||||
CUB Cubana de Aviacion
|
||||
CV Cargolux
|
||||
CLX Cargolux
|
||||
CX Cathay Pacific
|
||||
CPA Cathay Pacific
|
||||
CY Cyprus Airways
|
||||
CYP Cyprus Airways
|
||||
CZ China Southern Airlines
|
||||
CSN China Southern Airlines
|
||||
DE Condor
|
||||
CFG Condor
|
||||
DH Independence Air
|
||||
IDE Independence Air
|
||||
DI FlyDBA
|
||||
BAG FlyDBA
|
||||
DK MyTravel Airways
|
||||
VKG MyTravel Airways
|
||||
DL Delta Air Lines
|
||||
DAL Delta Air Lines
|
||||
DN Daimler Chrysler Aviation
|
||||
DCS Daimler Chrysler Aviation
|
||||
DP First Choice Airways
|
||||
FCA First Choice Airways
|
||||
DQ Star Air
|
||||
SRR Star Air
|
||||
DS EasyJet Switzerland
|
||||
EZS EasyJet Switzerland
|
||||
EG Japan Asia Airways
|
||||
JAA Japan Asia Airways
|
||||
EI Aer Lingus
|
||||
EIN Aer Lingus
|
||||
EK Emirates
|
||||
UAE Emirates
|
||||
El Air Nippon
|
||||
ANK Air Nippon
|
||||
ER DHL Worldwide Express
|
||||
DHL DHL Worldwide Express
|
||||
ET Ethiopian Airlines
|
||||
ETH Ethiopian Airlines
|
||||
EY Etihad Airways
|
||||
ETD Etihad Airways
|
||||
F9 Frontier Airlines
|
||||
FFT Frontier Airlines
|
||||
FB Bulgaria Air
|
||||
LZB Bulgaria Air
|
||||
FC Finncomm
|
||||
FD Ford Motors
|
||||
FOB Ford Motors
|
||||
FG Ariana Afghan Airlines
|
||||
AFG Ariana Afghan Airlines
|
||||
FJ Air Pacific
|
||||
FJI Air Pacific
|
||||
FL AirTran Airways
|
||||
TRS AirTran Airways
|
||||
FM French Air Force / Government
|
||||
FMY French Air Force / Government
|
||||
FO Ford Motors
|
||||
FOB Ford Motors
|
||||
FP TAG Aviation
|
||||
FPG TAG Aviation
|
||||
FR Ryanair
|
||||
RYR Ryanair
|
||||
FX FedEx/Federal Express
|
||||
FDX FedEx/Federal Express
|
||||
GA Garuda Indonesia
|
||||
GIA Garuda Indonesia
|
||||
GF Gulf Air
|
||||
GFA Gulf Air
|
||||
GJ Eurofly
|
||||
EEZ Eurofly
|
||||
GL Air Greenland
|
||||
GRN Air Greenland
|
||||
GR Gemini Air Cargo
|
||||
GCO Gemini Air Cargo
|
||||
GS General Aviation
|
||||
GT GB Airways
|
||||
GBL GB Airways
|
||||
GV AeroFlight
|
||||
ARF AeroFlight
|
||||
HA Hawaiian Airlines
|
||||
HAL Hawaiian Airlines
|
||||
HF Hapag-Lloyd
|
||||
HLF Hapag-Lloyd
|
||||
HG FlyNiki
|
||||
NLY FlyNiki
|
||||
HH Islandsflug
|
||||
ICB Islandsflug
|
||||
HM Air Seychelles
|
||||
SEY Air Seychelles
|
||||
HO Hola Airlines
|
||||
HOA Hola Airlines
|
||||
HP America West Airlines
|
||||
AWE America West Airlines
|
||||
HU Hainan Airlines
|
||||
CHH Hainan Airlines
|
||||
HV Transavia
|
||||
TRA Transavia
|
||||
IB Iberia
|
||||
IBE Iberia
|
||||
IG Meridiana
|
||||
ISS Meridiana
|
||||
IM MenaJet
|
||||
MNJ MenaJet
|
||||
IV WindJet
|
||||
JET WindJet
|
||||
IY Yemenia
|
||||
IYE Yemenia
|
||||
JA Japan Airlines
|
||||
JAL Japan Airlines
|
||||
JC JAL Express
|
||||
JEX JAL Express
|
||||
JD Japan Air System
|
||||
JAS Japan Air System
|
||||
JJ TAM-Transportes Aereos Meridionais
|
||||
TAM TAM-Transportes Aereos Meridionais
|
||||
JK Spanair
|
||||
JKK Spanair
|
||||
JM Air Jamaica
|
||||
AJM Air Jamaica
|
||||
JN Excel Airways
|
||||
XLA Excel Airways
|
||||
JO JALWays
|
||||
JAZ JALWays
|
||||
JP Adria Airways
|
||||
ADR Adria Airways
|
||||
JQ JetStar Airways
|
||||
JST JetStar Airways
|
||||
JU JAT Yugoslav Airlines
|
||||
JAT JAT Yugoslav Airlines
|
||||
KA Dragonair
|
||||
HDA Dragonair
|
||||
KB Druk Air
|
||||
DRK Druk Air
|
||||
KE Korean Air
|
||||
KAL Korean Air
|
||||
KF Blue1
|
||||
BLF Blue1
|
||||
KJ British Mediterranean Airways
|
||||
LAJ British Mediterranean Airways
|
||||
KK AtlasJet
|
||||
OGE AtlasJet
|
||||
KL KLM Royal Dutch Airlines
|
||||
KLM KLM Royal Dutch Airlines
|
||||
KM Air Malta
|
||||
AMC Air Malta
|
||||
KQ Kenya Airways
|
||||
KQA Kenya Airways
|
||||
KU Kuwait Airways
|
||||
KAC Kuwait Airways
|
||||
KZ Nippon Cargo Airlines
|
||||
NCA Nippon Cargo Airlines
|
||||
L3 LTU Austria
|
||||
LTO LTU Austria
|
||||
L4 Lauda Air Italy
|
||||
LDI Lauda Air Italy
|
||||
LA Lan Chile
|
||||
LAN Lan Chile
|
||||
LD Air Hong Kong
|
||||
AHK Air Hong Kong
|
||||
LG Luxair
|
||||
LGL Luxair
|
||||
LH Lufthansa
|
||||
DLH Lufthansa
|
||||
LK Air Luxor
|
||||
LXR Air Luxor
|
||||
LM Livingston
|
||||
LVG Livingston
|
||||
LO LOT Polish Airlines
|
||||
LOT LOT Polish Airlines
|
||||
LS Channel Express
|
||||
EXS Channel Express
|
||||
LT LTU International Airways
|
||||
LTU LTU International Airways
|
||||
LX Swiss International Air Lines/Crossair
|
||||
SWR Swiss International Air Lines/Crossair
|
||||
LY El Al
|
||||
ELY El Al
|
||||
MA Malev
|
||||
MAH Malev
|
||||
MC Air Mobility Command (AMC)
|
||||
RCH Air Mobility Command (AMC)
|
||||
ME MEA Middle East Airlines
|
||||
MEA MEA Middle East Airlines
|
||||
MF Xiamen Airlines
|
||||
CXA Xiamen Airlines
|
||||
MH Malaysia Airlines
|
||||
MAS Malaysia Airlines
|
||||
MK Air Mauritius
|
||||
MAU Air Mauritius
|
||||
MO Royal Jet
|
||||
ROJ Royal Jet
|
||||
MP Martinair
|
||||
MPH Martinair
|
||||
MQ American Eagle
|
||||
EGF American Eagle
|
||||
MS Egyptair
|
||||
MSR Egyptair
|
||||
MT Thomas Cook
|
||||
MYT Thomas Cook
|
||||
MU China Eastern
|
||||
CES China Eastern
|
||||
MX Mexicana
|
||||
MXA Mexicana
|
||||
NG Lauda Air
|
||||
LDA Lauda Air
|
||||
NH All-Nippon Airways
|
||||
ANA All-Nippon Airways
|
||||
NK Spirit Airlines
|
||||
NKS Spirit Airlines
|
||||
NO NEOS
|
||||
NOS NEOS
|
||||
NQ Air Japan
|
||||
AJX Air Japan
|
||||
NU Japan Transocean Air
|
||||
JTA Japan Transocean Air
|
||||
NW Northwest
|
||||
NWA Northwest
|
||||
NZ Air New Zealand
|
||||
ANZ Air New Zealand
|
||||
OA Olympic Airways
|
||||
OAL Olympic Airways
|
||||
OK CSA Czech Airlines
|
||||
CSA CSA Czech Airlines
|
||||
ON Air Nauru
|
||||
RON Air Nauru
|
||||
OO Skywest Airlines/Delta Connection/United Express
|
||||
SKW Skywest Airlines/Delta Connection/United Express
|
||||
OS Austrian Airlines
|
||||
AUA Austrian Airlines
|
||||
OU Croatia Airlines
|
||||
CTN Croatia Airlines
|
||||
OZ Asiana Airlines
|
||||
AAL Asiana Airlines
|
||||
PE Air Europe Italy
|
||||
AEL Air Europe Italy
|
||||
PH Polynesian
|
||||
PAO Polynesian
|
||||
PK Pakistan International Airlines
|
||||
PIA Pakistan International Airlines
|
||||
PL Air Pullmantur
|
||||
PLM Air Pullmantur
|
||||
PO Polar Air Cargo
|
||||
PAC Polar Air Cargo
|
||||
PR Philippine Airlines
|
||||
PAL Philippine Airlines
|
||||
PS Ukraine International Airlines
|
||||
AUI Ukraine International Airlines
|
||||
PY Surinam Airways
|
||||
SLM Surinam Airways
|
||||
QF Qantas
|
||||
QFA Qantas
|
||||
QK Jazz by Air Canada
|
||||
JZA Jazz by Air Canada
|
||||
QR Qatar Airways
|
||||
QTR Qatar Airways
|
||||
QX Horizion Air
|
||||
QXE Horizion Air
|
||||
RG Varig
|
||||
VRG Varig
|
||||
RJ Royal Jordanian
|
||||
RJA Royal Jordanian
|
||||
RN Air Horizion
|
||||
EUH Air Horizion
|
||||
RO Tarom
|
||||
ROT Tarom
|
||||
RP Chautauqua Airlines
|
||||
CHQ Chautauqua Airlines
|
||||
RR Royal Air Force
|
||||
RFR Royal Air Force
|
||||
RS Oman Royal Flight
|
||||
ORF Oman Royal Flight
|
||||
S4 Sata International
|
||||
RZO Sata International
|
||||
S7 Sibir/Siberia Airlines
|
||||
SIB Sibir/Siberia Airlines
|
||||
SA South African Airways
|
||||
SAA South African Airways
|
||||
SB Air Caledonie International
|
||||
ACI Air Caledonie International
|
||||
SE Star Airlines
|
||||
SEU Star Airlines
|
||||
SH FlyMe Sweden
|
||||
FLY FlyMe Sweden
|
||||
SJ Freedom Air
|
||||
FOM Freedom Air
|
||||
SK Scandinavian Airlines
|
||||
SAS Scandinavian Airlines
|
||||
SN SN Brussels Airlines
|
||||
DAT SN Brussels Airlines
|
||||
SQ Singapore Airlines
|
||||
SIA Singapore Airlines
|
||||
SS Corsair
|
||||
CRL Corsair
|
||||
ST Germania Express
|
||||
GMI Germania Express
|
||||
SU Aeroflot
|
||||
AFL Aeroflot
|
||||
SV Saudi Arabian Airlines
|
||||
SVA Saudi Arabian Airlines
|
||||
SW Air Nambia
|
||||
NMB Air Nambia
|
||||
SY Sun Country Airlines
|
||||
SCX Sun Country Airlines
|
||||
SZ China Southwest Airlines
|
||||
CXN China Southwest Airlines
|
||||
T4 Hellas Jet
|
||||
HEJ Hellas Jet
|
||||
TA Taca
|
||||
TAI Taca
|
||||
TB TUI Airlines Belgium
|
||||
TUA TUI Airlines Belgium
|
||||
TG Thai International
|
||||
THA Thai International
|
||||
TK Turkish Airlines
|
||||
THY Turkish Airlines
|
||||
TN Air Tahiti Nui
|
||||
THT Air Tahiti Nui
|
||||
TP TAP Air Portugal
|
||||
TAP TAP Air Portugal
|
||||
TS Air Transat
|
||||
TSC Air Transat
|
||||
TU Tunisair
|
||||
TAR Tunisair
|
||||
TX Air Caraibes
|
||||
FWI Air Caraibes
|
||||
TY Iberworld
|
||||
IWD Iberworld
|
||||
TZ ATA Airlines
|
||||
AMT ATA Airlines
|
||||
U2 EasyJet
|
||||
EZY EasyJet
|
||||
U5 USA 3000
|
||||
GWY USA 3000
|
||||
U8 Armavia
|
||||
RNV Armavia
|
||||
UA United Airlines
|
||||
UAL United Airlines
|
||||
UL Sri Lankan Airlines
|
||||
ALK Sri Lankan Airlines
|
||||
UP United Parcel Service(UPS)
|
||||
UPS United Parcel Service(UPS)
|
||||
US US Airways
|
||||
USA US Airways
|
||||
UU Air Austral
|
||||
REU Air Austral
|
||||
UV Universal Aviation
|
||||
UX Air Europa
|
||||
AEA Air Europa
|
||||
UY Cameroon Airlines
|
||||
UYC Cameroon Airlines
|
||||
V7 Air Senegal
|
||||
SNG Air Senegal
|
||||
VN Vietnam Airlines
|
||||
HVN Vietnam Airlines
|
||||
VS Virgin Atlantic Airways
|
||||
VKG Virgin Atlantic Airways
|
||||
VV Aerosweet Airlines
|
||||
AEW Aerosweet Airlines
|
||||
VW VW
|
||||
VY Vueling.com
|
||||
VLG Vueling.com
|
||||
VZ myTravel Airways
|
||||
MYT myTravel Airways
|
||||
W4 Aero Services Executive
|
||||
BES Aero Services Executive
|
||||
W5 Mahan Air
|
||||
IRM Mahan Air
|
||||
W6 Wizz Air
|
||||
WZZ Wizz Air
|
||||
WH China Northwest Airlines
|
||||
CNW China Northwest Airlines
|
||||
WN Southwest Airlines
|
||||
SWA Southwest Airlines
|
||||
WO World Airways
|
||||
WOA World Airways
|
||||
WS WestJet
|
||||
WJA WestJet
|
||||
X3 Hapag Lloyd Express
|
||||
HLX Hapag Lloyd Express
|
||||
XA General Aviation
|
||||
XE Continental Express
|
||||
BTA Continental Express
|
||||
XJ Mesaba Airlines
|
||||
MES Mesaba Airlines
|
||||
XK CCM Compagnie Corse Mediterrannee
|
||||
CCM CCM Compagnie Corse Mediterrannee
|
||||
XO LTE International Airways
|
||||
LTE LTE International Airways
|
||||
YK KTHY - Kibris Turk Hava Yollari
|
||||
KYV KTHY - Kibris Turk Hava Yollari
|
||||
YV Mesa Airlines
|
||||
ASH Mesa Airlines
|
||||
YX Midwest Express Airlines
|
||||
MEP Midwest Express Airlines
|
||||
YZ Holland Exel
|
||||
HXL Holland Exel
|
||||
Z4 Zoom Airlines
|
||||
OOM Zoom Airlines
|
||||
ZB Monarch Airlines
|
||||
MON Monarch Airlines
|
||||
ZW Air Wisconsin
|
||||
AZW Air Wisconsin
|
199
main.c
199
main.c
|
@ -26,8 +26,7 @@
|
|||
|
||||
#include "version.h"
|
||||
#include "acarsdec.h"
|
||||
#include "acars_labels.h"
|
||||
#include "acars_aircrafts_secondary.h"
|
||||
//#include "acars_aircrafts_secondary.h"
|
||||
|
||||
int posconv(char *txt, unsigned char *label, char *pos);
|
||||
extern int optind, opterr;
|
||||
|
@ -56,13 +55,158 @@ struct acars_aircraft_primary {
|
|||
char *remarks;
|
||||
};
|
||||
|
||||
struct acars_aircraft_primary acars_aircrafts_primary[16000];
|
||||
struct acars_aircraft_primary acars_aircrafts_primary[64000];
|
||||
|
||||
struct acars_aircraft_secondary {
|
||||
char *reg;
|
||||
char *type;
|
||||
char *carrier_icao;
|
||||
char *cn;
|
||||
};
|
||||
|
||||
struct acars_aircraft_secondary acars_aircrafts_secondary[64000];
|
||||
|
||||
|
||||
struct acars_ml {
|
||||
char *ml_code;
|
||||
char *ml_label;
|
||||
};
|
||||
|
||||
struct acars_ml acars_mls[16000];
|
||||
|
||||
struct acars_airlines {
|
||||
char *al_code;
|
||||
char *al_label;
|
||||
};
|
||||
|
||||
struct acars_airlines acars_airliness[16000];
|
||||
|
||||
|
||||
void load_aircraft_secondary(void)
|
||||
{
|
||||
FILE *f = fopen("datasets/aircrafts_s.txt", "r");
|
||||
if (!f) {
|
||||
fprintf(stderr, "Warning: datasets/aircrafts_s.txt data source not found\n");
|
||||
acars_aircrafts_secondary[0].reg = NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
int i = 0;
|
||||
|
||||
char *line = NULL;
|
||||
size_t len = 0;
|
||||
while (getline(&line, &len, f) != -1) {
|
||||
char *item = line;
|
||||
char *tabpos;
|
||||
|
||||
tabpos = strchr(item, '\t');
|
||||
if (!tabpos) { fprintf(stderr, "Parse error on line: %s\n", line); continue; }
|
||||
tabpos[0] = 0;
|
||||
acars_aircrafts_secondary[i].reg = strdup(item);
|
||||
item = tabpos + 1;
|
||||
|
||||
tabpos = strchr(item, '\t');
|
||||
if (!tabpos) { fprintf(stderr, "Parse error on line: %s\n", line); continue; }
|
||||
tabpos[0] = 0;
|
||||
acars_aircrafts_secondary[i].carrier_icao = strdup(item);
|
||||
item = tabpos + 1;
|
||||
|
||||
tabpos = strchr(item, '\t');
|
||||
if (!tabpos) { fprintf(stderr, "Parse error on line: %s\n", line); continue; }
|
||||
tabpos[0] = 0;
|
||||
acars_aircrafts_secondary[i].type = strdup(item);
|
||||
item = tabpos + 1;
|
||||
|
||||
tabpos = strchr(item, '\t');
|
||||
tabpos[0] = 0;
|
||||
acars_aircrafts_secondary[i].cn = strdup(item);
|
||||
|
||||
i++;
|
||||
}
|
||||
|
||||
acars_aircrafts_secondary[i].reg = NULL;
|
||||
fclose(f);
|
||||
printf("Loaded: %i secondary aircrafts from dataset.....\n", i);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void load_airlines(void)
|
||||
{
|
||||
FILE *f = fopen("datasets/airlines.txt", "r");
|
||||
if (!f) {
|
||||
fprintf(stderr, "Warning: datasets/airlines.txt data source not found\n");
|
||||
acars_airliness[0].al_code = NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
int i = 0;
|
||||
|
||||
char *line = NULL;
|
||||
size_t len = 0;
|
||||
while (getline(&line, &len, f) != -1) {
|
||||
char *item = line;
|
||||
char *tabpos;
|
||||
|
||||
tabpos = strchr(item, '\t');
|
||||
if (!tabpos) { fprintf(stderr, "Parse error on line: %s\n", line); continue; }
|
||||
tabpos[0] = 0;
|
||||
acars_airliness[i].al_code = strdup(item);
|
||||
item = tabpos + 1;
|
||||
|
||||
tabpos = strchr(item, '\t');
|
||||
tabpos[0] = 0;
|
||||
acars_airliness[i].al_label = strdup(item);
|
||||
|
||||
i++;
|
||||
}
|
||||
|
||||
acars_airliness[i].al_code = NULL;
|
||||
fclose(f);
|
||||
printf("Loaded: %i airlines from dataset.....\n", i);
|
||||
}
|
||||
|
||||
void load_message_labels(void)
|
||||
{
|
||||
FILE *f = fopen("datasets/acars_mls.txt", "r");
|
||||
if (!f) {
|
||||
fprintf(stderr, "Warning: datasets/acars_mls.txt data source not found\n");
|
||||
acars_mls[0].ml_code = NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
int i = 0;
|
||||
|
||||
char *line = NULL;
|
||||
size_t len = 0;
|
||||
while (getline(&line, &len, f) != -1) {
|
||||
char *item = line;
|
||||
char *tabpos;
|
||||
|
||||
tabpos = strchr(item, '\t');
|
||||
if (!tabpos) { fprintf(stderr, "Parse error on line: %s\n", line); continue; }
|
||||
tabpos[0] = 0;
|
||||
acars_mls[i].ml_code = strdup(item);
|
||||
item = tabpos + 1;
|
||||
|
||||
tabpos = strchr(item, '\t');
|
||||
tabpos[0] = 0;
|
||||
acars_mls[i].ml_label = strdup(item);
|
||||
|
||||
i++;
|
||||
}
|
||||
|
||||
acars_mls[i].ml_code = NULL;
|
||||
fclose(f);
|
||||
printf("Loaded: %i ACARS message labels from dataset.....\n", i);
|
||||
}
|
||||
|
||||
|
||||
void load_aircraft_primary(void)
|
||||
{
|
||||
FILE *f = fopen("sourcedata/aircrafts.txt", "r");
|
||||
FILE *f = fopen("datasets/aircrafts_p.txt", "r");
|
||||
if (!f) {
|
||||
fprintf(stderr, "Warning: sourcedata/aircrafts.txt data source not found\n");
|
||||
fprintf(stderr, "Warning: datasets/aircrafts_p.txt data source not found\n");
|
||||
acars_aircrafts_primary[0].reg = NULL;
|
||||
return;
|
||||
}
|
||||
|
@ -127,6 +271,7 @@ void load_aircraft_primary(void)
|
|||
|
||||
acars_aircrafts_primary[i].reg = NULL;
|
||||
fclose(f);
|
||||
printf("Loaded: %i primary aircrafts from dataset.....\n", i);
|
||||
}
|
||||
|
||||
|
||||
|
@ -141,6 +286,7 @@ void print_mesg(msg_t * msg)
|
|||
printf("RX_IDX: %ld\n", rx_idx);
|
||||
printf("ACARS mode: %c, ", msg->mode);
|
||||
printf("message label: %s\n", msg->label);
|
||||
/*
|
||||
while(acars_labels[i][0]){
|
||||
if(!strcmp(acars_labels[i][0],(const char*)msg->label)){
|
||||
printf("ACARS ML description: %s\n",acars_labels[i][1]);
|
||||
|
@ -148,6 +294,16 @@ void print_mesg(msg_t * msg)
|
|||
}
|
||||
i++;
|
||||
}
|
||||
*/
|
||||
|
||||
i=0;
|
||||
while(acars_mls[i].ml_code){
|
||||
if(!strcmp(acars_mls[i].ml_code, (const char*)msg->label)){
|
||||
printf("ACARS ML description: %s\n",acars_mls[i].ml_label);
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
|
||||
printf("Aircraft reg: %s, ", msg->addr);
|
||||
printf("flight id: %s\n", msg->fid);
|
||||
|
@ -165,6 +321,20 @@ void print_mesg(msg_t * msg)
|
|||
printf("Carrier IATA: %s, ",acars_aircrafts_primary[i].carrier_iata);
|
||||
printf("ICAO: %s, ",acars_aircrafts_primary[i].carrier_icao);
|
||||
printf("remarks: %s\n",acars_aircrafts_primary[i].remarks);
|
||||
|
||||
long x = 0;
|
||||
while(acars_airliness[x].al_code){
|
||||
if(!strcmp(acars_airliness[x].al_code, acars_aircrafts_primary[i].carrier_icao)){
|
||||
printf("Airlines: %s\n",acars_airliness[x].al_label);
|
||||
break;
|
||||
}else if(!strcmp(acars_airliness[x].al_code, acars_aircrafts_primary[i].carrier_iata)){
|
||||
printf("Airlines: %s\n",acars_airliness[x].al_label);
|
||||
break;
|
||||
}
|
||||
x++;
|
||||
}
|
||||
|
||||
|
||||
goto aircraft_finished;
|
||||
}
|
||||
i++;
|
||||
|
@ -179,6 +349,16 @@ void print_mesg(msg_t * msg)
|
|||
printf("Aircraft type: %s, ",acars_aircrafts_secondary[i].type);
|
||||
printf("carrier: %s, ",acars_aircrafts_secondary[i].carrier_icao);
|
||||
printf("cn: %s\n",acars_aircrafts_secondary[i].cn);
|
||||
|
||||
long x = 0;
|
||||
while(acars_airliness[x].al_code){
|
||||
if(!strcmp(acars_airliness[x].al_code, acars_aircrafts_secondary[i].carrier_icao)){
|
||||
printf("Airlines: %s\n",acars_airliness[x].al_label);
|
||||
break;
|
||||
}
|
||||
x++;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
|
@ -190,6 +370,11 @@ aircraft_finished:
|
|||
printf(" msg. no: %s\n", msg->no);
|
||||
printf("Message content:-\n%s", msg->txt);
|
||||
|
||||
// char *fobpos;
|
||||
// fobpos = strchr(msg->txt, '/FOB');
|
||||
// if(){
|
||||
// }
|
||||
|
||||
rx_idx++;
|
||||
|
||||
if (posconv(msg->txt, msg->label, pos)==0)
|
||||
|
@ -253,7 +438,9 @@ int main(int argc, char **argv)
|
|||
/* main loop */
|
||||
|
||||
load_aircraft_primary();
|
||||
|
||||
load_aircraft_secondary();
|
||||
load_message_labels();
|
||||
load_airlines();
|
||||
init_bits();
|
||||
init_mesg();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue