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