Ignore:
Timestamp:
04/30/25 15:05:04 (2 days ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

The "real" and "extended" ICAO codes of airplanes are distinguished.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/config.py

    r1168 r1184  
    7777        """Create a checklist for the given aircraft type from the given
    7878        config."""
    79         baseName = "checklist." + const.icaoCodes[aircraftType] + "."
     79        baseName = "checklist." + const.extendedICAOCodes[aircraftType] + "."
    8080        fileList = []
    8181        while True:
     
    9898    def toConfig(self, config, aircraftType):
    9999        """Add this checklist to the given config."""
    100         baseName = "checklist." + const.icaoCodes[aircraftType] + "."
     100        baseName = "checklist." + const.extendedICAOCodes[aircraftType] + "."
    101101        for index in range(0, len(self._fileList)):
    102102            option = baseName + str(index)
     
    135135        """Create a checklist for the given aircraft type from the given
    136136        config."""
    137         baseName = "callouts." + const.icaoCodes[aircraftType] + "."
     137        baseName = "callouts." + const.extendedICAOCodes[aircraftType] + "."
    138138        mapping = {}
    139139        while True:
     
    161161    def toConfig(self, config, aircraftType):
    162162        """Add this checklist to the given config."""
    163         baseName = "callouts." + const.icaoCodes[aircraftType] + "."
     163        baseName = "callouts." + const.extendedICAOCodes[aircraftType] + "."
    164164        index = 0
    165165        for (altitude, path) in self._mapping.items():
     
    11471147        print("  checklists:")
    11481148        for (type, checklist) in self._checklists.items():
    1149             print("    %s:" % (const.icaoCodes[type],))
     1149            print("    %s:" % (const.extendedICAOCodes[type],))
    11501150            for path in checklist:
    11511151                print("      " + path)
     
    11531153        print("  approachCallouts:")
    11541154        for (type, approachCallouts) in self._approachCallouts.items():
    1155             print("    %s:" % (const.icaoCodes[type],))
     1155            print("    %s:" % (const.extendedICAOCodes[type],))
    11561156            for (altitude, path) in approachCallouts:
    11571157                print("      %d: %s" % (altitude, path))
Note: See TracChangeset for help on using the changeset viewer.