Changeset 420:fc063b7b571e
- Timestamp:
- 02/10/13 16:54:52 (12 years ago)
- Branch:
- xplane
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/checks.py
r416 r420 954 954 """Check if the fault condition holds.""" 955 955 if flight.stage==const.STAGE_CRUISE: 956 bankLimit = 3 0956 bankLimit = 32 957 957 elif flight.stage in [const.STAGE_TAKEOFF, const.STAGE_CLIMB, 958 958 const.STAGE_DESCENT, const.STAGE_LANDING]: … … 965 965 def logFault(self, flight, aircraft, logger, oldState, state): 966 966 """Log the fault.""" 967 message = "Bank too steep (%.1f)" % (state.bank,) 967 968 flight.handleFault(BankChecker, state.timestamp, 968 FaultChecker._appendDuring(flight, "Bank too steep"),969 FaultChecker._appendDuring(flight, message), 969 970 2) 970 971 -
src/mlx/fs.py
r408 r420 3 3 from sound import startSound 4 4 5 import fsuipc 5 import os 6 7 if os.name=="nt" or "FORCE_PYUIPC_SIM" in os.environ: 8 import fsuipc as sim 9 else: 10 import xplane as sim 11 6 12 import threading 7 13 import time … … 58 64 assert type in [const.SIM_MSFS9, const.SIM_MSFSX], \ 59 65 "Only MS Flight Simulator 2004 and X are supported" 60 return fsuipc.Simulator(connectionListener, connectAttempts = 3)66 return sim.Simulator(connectionListener, connectAttempts = 3) 61 67 62 68 #------------------------------------------------------------------------------- -
src/mlx/gui/monitor.py
r408 r420 386 386 self._gearControlDown.set_sensitive(aircraftState.gearControlDown) 387 387 self._gearsDown.set_sensitive(aircraftState.gearsDown) 388 self._spoilersArmed.set_sensitive(aircraftState.spoilersArmed )388 self._spoilersArmed.set_sensitive(aircraftState.spoilersArmed is True) 389 389 self._spoilersExtension.set_text("%.0f" % (aircraftState.spoilersExtension,)) 390 390 self._windSpeed.set_text("%.0f" % (aircraftState.windSpeed,))
Note:
See TracChangeset
for help on using the changeset viewer.