- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/checks.py
r496 r480 957 957 """Check if the fault condition holds.""" 958 958 if flight.stage==const.STAGE_CRUISE: 959 isDH8DXplane = flight.aircraftType==const.AIRCRAFT_DH8D and \ 960 (flight.fsType==const.SIM_XPLANE10 or 961 flight.fsType==const.SIM_XPLANE9) 962 bankLimit = 35 if isDH8DXplane else 30 959 bankLimit = 30 963 960 elif flight.stage in [const.STAGE_TAKEOFF, const.STAGE_CLIMB, 964 961 const.STAGE_DESCENT, const.STAGE_LANDING]: … … 971 968 def logFault(self, flight, aircraft, logger, oldState, state): 972 969 """Log the fault.""" 973 message = "Bank too steep (%.1f)" % (state.bank,)974 970 flight.handleFault(BankChecker, state.timestamp, 975 FaultChecker._appendDuring(flight, message),971 FaultChecker._appendDuring(flight, "Bank too steep"), 976 972 2) 977 973
Note:
See TracChangeset
for help on using the changeset viewer.