Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/checks.py

    r448 r450  
    954954        """Check if the fault condition holds."""
    955955        if flight.stage==const.STAGE_CRUISE:
    956             bankLimit = 30
     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
    957960        elif flight.stage in [const.STAGE_TAKEOFF, const.STAGE_CLIMB,
    958961                              const.STAGE_DESCENT, const.STAGE_LANDING]:
     
    965968    def logFault(self, flight, aircraft, logger, oldState, state):
    966969        """Log the fault."""
     970        message = "Bank too steep (%.1f)" % (state.bank,)
    967971        flight.handleFault(BankChecker, state.timestamp,
    968                            FaultChecker._appendDuring(flight, "Bank too steep"),
     972                           FaultChecker._appendDuring(flight, message),
    969973                           2)
    970974
Note: See TracChangeset for help on using the changeset viewer.