Ignore:
Timestamp:
08/17/13 08:37:50 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The Project Tupolev Tu-154 is detected on FSX as well and the transponder state is not checked (re #208)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/fsuipc.py

    r507 r529  
    20052005        print "PTT154Model.doesHandle", aircraft.type, name, airPath
    20062006        return aircraft.type==const.AIRCRAFT_T154 and \
    2007                name.find("Tu-154")!=-1 and \
     2007               (name.find("Tu-154")!=-1 or name.find("Tu154B")) and \
    20082008               os.path.basename(airPath).startswith("154b_")
    20092009
     
    20142014        self._adf2 = None
    20152015        self._lastValue = None
     2016        self._fsType = None
    20162017
    20172018    @property
     
    20192020        """Get the name for this aircraft model."""
    20202021        return "FSUIPC/Project Tupolev Tu-154"
     2022
     2023    def addMonitoringData(self, data, fsType):
     2024        """Add the model-specific monitoring data to the given array.
     2025
     2026        It only stores the flight simulator type."""
     2027        self._fsType = fsType
     2028
     2029        super(PTT154NGModel, self).addMonitoringData(data, fsType)
    20212030
    20222031    def getAircraftState(self, aircraft, timestamp, data):
     
    20392048        state.adf1 = self._adf1
    20402049        state.adf2 = self._adf2
     2050
     2051        if self._fsType==const.SIM_MSFSX:
     2052            state.xpdrC = None
    20412053
    20422054        return state
Note: See TracChangeset for help on using the changeset viewer.