Ignore:
Timestamp:
02/17/13 11:37:30 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
xplane
Phase:
public
Message:

The flight simulator type is available to the checkers and the bank checking now takes it into account for DH8D to avoid trouble due to the overactive autopilot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/checks.py

    r420 r430  
    954954        """Check if the fault condition holds."""
    955955        if flight.stage==const.STAGE_CRUISE:
    956             bankLimit = 32
     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]:
Note: See TracChangeset for help on using the changeset viewer.