Changeset 529:c728353e86b1
- Timestamp:
- 08/17/13 08:37:50 (11 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/checks.py
r525 r529 65 65 elif not state.landingLightsOn and \ 66 66 (state.strobeLightsOn is False or 67 (state.strobeLightsOn is None and not state.xpdrC)) and \67 (state.strobeLightsOn is None and state.xpdrC is False)) and \ 68 68 state.onTheGround and \ 69 69 state.groundSpeed<50.0: -
src/mlx/fsuipc.py
r507 r529 2005 2005 print "PTT154Model.doesHandle", aircraft.type, name, airPath 2006 2006 return aircraft.type==const.AIRCRAFT_T154 and \ 2007 name.find("Tu-154")!=-1and \2007 (name.find("Tu-154")!=-1 or name.find("Tu154B")) and \ 2008 2008 os.path.basename(airPath).startswith("154b_") 2009 2009 … … 2014 2014 self._adf2 = None 2015 2015 self._lastValue = None 2016 self._fsType = None 2016 2017 2017 2018 @property … … 2019 2020 """Get the name for this aircraft model.""" 2020 2021 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) 2021 2030 2022 2031 def getAircraftState(self, aircraft, timestamp, data): … … 2039 2048 state.adf1 = self._adf1 2040 2049 state.adf2 = self._adf2 2050 2051 if self._fsType==const.SIM_MSFSX: 2052 state.xpdrC = None 2041 2053 2042 2054 return state
Note:
See TracChangeset
for help on using the changeset viewer.