Changeset 314:09f49b9eef64 for src/mlx/fsuipc.py
- Timestamp:
- 09/30/12 06:53:14 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/fsuipc.py
r298 r314 896 896 return False 897 897 898 print "fsuipc.Simulator: new aircraft name and air file path: %s, %s" % \ 899 (name, airPath) 900 898 901 self._aircraftName = aircraftName 899 902 needNew = self._aircraftModel is None … … 1661 1664 1662 1665 return state 1666 1663 1667 #------------------------------------------------------------------------------ 1664 1668 … … 1696 1700 """Get the name for this aircraft model.""" 1697 1701 return "FSUIPC/Generic Fokker 70" 1702 1703 #------------------------------------------------------------------------------ 1704 1705 class DAF70Model(F70Model): 1706 """Model for the Digital Aviation F70 implementation on FS9.""" 1707 @staticmethod 1708 def doesHandle(aircraft, (name, airPath)): 1709 """Determine if this model handler handles the aircraft with the given 1710 name.""" 1711 return aircraft.type == const.AIRCRAFT_F70 and \ 1712 (airPath.endswith("fokker70_2k4_v4.1.air") or 1713 airPath.endswith("fokker70_2k4_v4.3.air")) 1714 1715 @property 1716 def name(self): 1717 """Get the name for this aircraft model.""" 1718 return "FSUIPC/Digital Aviation Fokker 70" 1719 1720 def getAircraftState(self, aircraft, timestamp, data): 1721 """Get the aircraft state. 1722 1723 Get it from the parent, and then invert the pitot heat state.""" 1724 state = super(DAF70Model, self).getAircraftState(aircraft, 1725 timestamp, 1726 data) 1727 state.landingLightsOn = None 1728 state.nav2 = None 1729 1730 return state 1698 1731 1699 1732 #------------------------------------------------------------------------------ … … 1881 1914 AircraftModel.registerSpecial(PMDGBoeing737NGModel) 1882 1915 AircraftModel.registerSpecial(DreamwingsDH8DModel) 1883 1884 #------------------------------------------------------------------------------ 1916 AircraftModel.registerSpecial(DAF70Model) 1917 1918 #------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.