Changeset 1184:c2100c410a84 for src/mlx/config.py
- Timestamp:
- 04/30/25 15:05:04 (2 days ago)
- Branch:
- python3
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/config.py
r1168 r1184 77 77 """Create a checklist for the given aircraft type from the given 78 78 config.""" 79 baseName = "checklist." + const. icaoCodes[aircraftType] + "."79 baseName = "checklist." + const.extendedICAOCodes[aircraftType] + "." 80 80 fileList = [] 81 81 while True: … … 98 98 def toConfig(self, config, aircraftType): 99 99 """Add this checklist to the given config.""" 100 baseName = "checklist." + const. icaoCodes[aircraftType] + "."100 baseName = "checklist." + const.extendedICAOCodes[aircraftType] + "." 101 101 for index in range(0, len(self._fileList)): 102 102 option = baseName + str(index) … … 135 135 """Create a checklist for the given aircraft type from the given 136 136 config.""" 137 baseName = "callouts." + const. icaoCodes[aircraftType] + "."137 baseName = "callouts." + const.extendedICAOCodes[aircraftType] + "." 138 138 mapping = {} 139 139 while True: … … 161 161 def toConfig(self, config, aircraftType): 162 162 """Add this checklist to the given config.""" 163 baseName = "callouts." + const. icaoCodes[aircraftType] + "."163 baseName = "callouts." + const.extendedICAOCodes[aircraftType] + "." 164 164 index = 0 165 165 for (altitude, path) in self._mapping.items(): … … 1147 1147 print(" checklists:") 1148 1148 for (type, checklist) in self._checklists.items(): 1149 print(" %s:" % (const. icaoCodes[type],))1149 print(" %s:" % (const.extendedICAOCodes[type],)) 1150 1150 for path in checklist: 1151 1151 print(" " + path) … … 1153 1153 print(" approachCallouts:") 1154 1154 for (type, approachCallouts) in self._approachCallouts.items(): 1155 print(" %s:" % (const. icaoCodes[type],))1155 print(" %s:" % (const.extendedICAOCodes[type],)) 1156 1156 for (altitude, path) in approachCallouts: 1157 1157 print(" %d: %s" % (altitude, path))
Note:
See TracChangeset
for help on using the changeset viewer.