- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/checks.py
r521 r520 964 964 """Check if the fault condition holds.""" 965 965 if flight.stage==const.STAGE_CRUISE: 966 isDH8DXplane = flight.aircraftType==const.AIRCRAFT_DH8D and \ 967 (flight.fsType==const.SIM_XPLANE10 or 968 flight.fsType==const.SIM_XPLANE9) 969 bankLimit = 35 if isDH8DXplane else 30 966 bankLimit = 30 970 967 elif flight.stage in [const.STAGE_TAKEOFF, const.STAGE_CLIMB, 971 968 const.STAGE_DESCENT, const.STAGE_LANDING]: … … 978 975 def logFault(self, flight, aircraft, logger, oldState, state): 979 976 """Log the fault.""" 980 message = "Bank too steep (%.1f)" % (state.bank,)981 977 flight.handleFault(BankChecker, state.timestamp, 982 FaultChecker._appendDuring(flight, message),978 FaultChecker._appendDuring(flight, "Bank too steep"), 983 979 2) 984 980
Note:
See TracChangeset
for help on using the changeset viewer.