Changeset 1088:2f55d163f603
- Timestamp:
- 03/19/23 14:01:48 (21 months ago)
- Branch:
- python3
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/fsuipc.py
r1078 r1088 990 990 will be replaced by a new one.""" 991 991 self._aircraftModel = model 992 model.setFSType(self._fsType) 992 993 993 994 if self._monitoring: … … 1332 1333 self._xpdrReliable = False 1333 1334 self._flapsSet = -1 1335 self._fsType = None 1334 1336 1335 1337 @property … … 1337 1339 """Get the name for this aircraft model.""" 1338 1340 return "FSUIPC/Generic" 1341 1342 def setFSType(self, fsType): 1343 """Set the flight simulator type.""" 1344 self._fsType = fsType 1339 1345 1340 1346 def doesHandle(self, aircraft, aircraftName): … … 1741 1747 def addMonitoringData(self, data, fsType): 1742 1748 """Add the model-specific monitoring data to the given array.""" 1743 self._fsType = fsType1744 1745 1749 super(PMDGBoeing737NGModel, self).addMonitoringData(data, fsType) 1746 1750 … … 2178 2182 """Construct the model.""" 2179 2183 super(PTT154Model, self).__init__() 2180 self._fsType = None2181 2184 2182 2185 @property … … 2189 2192 2190 2193 It only stores the flight simulator type.""" 2191 self._fsType = fsType2192 2193 2194 super(PTT154Model, self).addMonitoringData(data, fsType) 2194 2195
Note:
See TracChangeset
for help on using the changeset viewer.