Changeset 905:04fa2396fbdb


Ignore:
Timestamp:
05/13/18 07:33:16 (6 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
version_0.39_maint
Phase:
public
Message:

The Tu-154-M variant has 4 flaps notches (re #335, #336)

Location:
src/mlx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/acft.py

    r904 r905  
    11501150            self.flapSpeedLimits = { 15 : 227,
    11511151                                     28 : 194,
     1152                                     36 : 178,
    11521153                                     45 : 162 }
    11531154
  • src/mlx/xplane.py

    r903 r905  
    18801880
    18811881class T154Model(GenericAircraftModel):
    1882     """Generic model for the Tupolev Tu-134 aircraft."""
     1882    """Generic model for the Tupolev Tu-154 aircraft."""
    18831883    fuelTanks = [const.FUELTANK_CENTRE, const.FUELTANK_CENTRE2,
    18841884                 const.FUELTANK_RIGHT, const.FUELTANK_LEFT,
     
    19041904        del state.reverser[1]
    19051905        return state
     1906
     1907#------------------------------------------------------------------------------
     1908
     1909class FelisT154Model(T154Model):
     1910    """Model for Felis' Tupolev Tu-154-M aircraft."""
     1911    @staticmethod
     1912    def doesHandle(aircraft, (tailnum, author, description, notes,
     1913                              icao, liveryPath)):
     1914        """Determine if this model handler handles the aircraft with the given
     1915        name."""
     1916        return aircraft.type==const.AIRCRAFT_T154 and \
     1917          author.find("Felis")!=-1 and \
     1918          description.find("Tu154M")!=-1
     1919
     1920    def __init__(self):
     1921        """Construct the model."""
     1922        super(T154Model, self). \
     1923            __init__(flapsNotches = [0, 15, 28, 36, 45],
     1924                     fuelTanks = T154Model.fuelTanks,
     1925                     numEngines = 3)
     1926
     1927    @property
     1928    def name(self):
     1929        """Get the name for this aircraft model."""
     1930        return "X-Plane/Felis Tupolev Tu-154-M"
    19061931
    19071932#------------------------------------------------------------------------------
     
    19461971
    19471972AircraftModel.registerSpecial(FJSDH8DModel)
     1973AircraftModel.registerSpecial(FelisT154Model)
    19481974
    19491975#------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.