Changeset 905:04fa2396fbdb for src
- Timestamp:
- 05/13/18 07:33:16 (7 years ago)
- Branch:
- version_0.39_maint
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/acft.py
r904 r905 1150 1150 self.flapSpeedLimits = { 15 : 227, 1151 1151 28 : 194, 1152 36 : 178, 1152 1153 45 : 162 } 1153 1154 -
src/mlx/xplane.py
r903 r905 1880 1880 1881 1881 class T154Model(GenericAircraftModel): 1882 """Generic model for the Tupolev Tu-1 34 aircraft."""1882 """Generic model for the Tupolev Tu-154 aircraft.""" 1883 1883 fuelTanks = [const.FUELTANK_CENTRE, const.FUELTANK_CENTRE2, 1884 1884 const.FUELTANK_RIGHT, const.FUELTANK_LEFT, … … 1904 1904 del state.reverser[1] 1905 1905 return state 1906 1907 #------------------------------------------------------------------------------ 1908 1909 class 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" 1906 1931 1907 1932 #------------------------------------------------------------------------------ … … 1946 1971 1947 1972 AircraftModel.registerSpecial(FJSDH8DModel) 1973 AircraftModel.registerSpecial(FelisT154Model) 1948 1974 1949 1975 #------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.