Changeset 1088:2f55d163f603


Ignore:
Timestamp:
03/19/23 14:01:48 (13 months ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

The flight simulator type is set for all FSUIPC-based aircraft models.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/fsuipc.py

    r1078 r1088  
    990990        will be replaced by a new one."""
    991991        self._aircraftModel = model
     992        model.setFSType(self._fsType)
    992993
    993994        if self._monitoring:
     
    13321333        self._xpdrReliable = False
    13331334        self._flapsSet = -1
     1335        self._fsType = None
    13341336
    13351337    @property
     
    13371339        """Get the name for this aircraft model."""
    13381340        return "FSUIPC/Generic"
     1341
     1342    def setFSType(self, fsType):
     1343        """Set the flight simulator type."""
     1344        self._fsType = fsType
    13391345
    13401346    def doesHandle(self, aircraft, aircraftName):
     
    17411747    def addMonitoringData(self, data, fsType):
    17421748        """Add the model-specific monitoring data to the given array."""
    1743         self._fsType = fsType
    1744 
    17451749        super(PMDGBoeing737NGModel, self).addMonitoringData(data, fsType)
    17461750
     
    21782182        """Construct the model."""
    21792183        super(PTT154Model, self).__init__()
    2180         self._fsType = None
    21812184
    21822185    @property
     
    21892192
    21902193        It only stores the flight simulator type."""
    2191         self._fsType = fsType
    2192 
    21932194        super(PTT154Model, self).addMonitoringData(data, fsType)
    21942195
Note: See TracChangeset for help on using the changeset viewer.