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