Changeset 662:96f78a73a25c
- Timestamp:
- 08/08/15 07:43:18 (9 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/fsuipc.py
r660 r662 1811 1811 #------------------------------------------------------------------------------ 1812 1812 1813 class MajesticDH8DModel(DH8DModel): 1814 """Model handler for the Majestic Dash 8-Q400.""" 1815 @staticmethod 1816 def doesHandle(aircraft, (name, airPath)): 1817 """Determine if this model handler handles the aircraft with the given 1818 name.""" 1819 return aircraft.type==const.AIRCRAFT_DH8D and \ 1820 (name.find("MJC8Q400")!=-1 or \ 1821 airPath.lower().find("mjc8q400") or \ 1822 airPath.lower().find("mjc8q4.air")) 1823 1824 @property 1825 def name(self): 1826 """Get the name for this aircraft model.""" 1827 return "FSUIPC/Majestic Bombardier Dash 8-Q400" 1828 1829 def getAircraftState(self, aircraft, timestamp, data): 1830 """Get the aircraft state. 1831 1832 Get it from the parent, and then clear the anti-collision and landing 1833 lights.""" 1834 state = super(MajesticDH8DModel, self).getAircraftState(aircraft, 1835 timestamp, 1836 data) 1837 state.antiCollisionLightsOn = None 1838 state.strobeLightsOn = None 1839 1840 return state 1841 1842 #------------------------------------------------------------------------------ 1843 1813 1844 class CRJ2Model(GenericAircraftModel): 1814 1845 """Generic model for the Bombardier CRJ-200 aircraft.""" … … 2145 2176 AircraftModel.registerSpecial(PMDGBoeing737NGModel) 2146 2177 AircraftModel.registerSpecial(DreamwingsDH8DModel) 2178 AircraftModel.registerSpecial(MajesticDH8DModel) 2147 2179 AircraftModel.registerSpecial(DAF70Model) 2148 2180 AircraftModel.registerSpecial(PTT154Model)
Note:
See TracChangeset
for help on using the changeset viewer.