Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/checks.py

    r520 r521  
    964964        """Check if the fault condition holds."""
    965965        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
    967970        elif flight.stage in [const.STAGE_TAKEOFF, const.STAGE_CLIMB,
    968971                              const.STAGE_DESCENT, const.STAGE_LANDING]:
     
    975978    def logFault(self, flight, aircraft, logger, oldState, state):
    976979        """Log the fault."""
     980        message = "Bank too steep (%.1f)" % (state.bank,)
    977981        flight.handleFault(BankChecker, state.timestamp,
    978                            FaultChecker._appendDuring(flight, "Bank too steep"),
     982                           FaultChecker._appendDuring(flight, message),
    979983                           2)
    980984
Note: See TracChangeset for help on using the changeset viewer.