Changeset 912:7e2b9c82233d for src


Ignore:
Timestamp:
12/19/18 14:51:13 (6 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
version_0.39_maint
Phase:
public
Message:

Increased allowed bank angles for X-Plane

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/checks.py

    r910 r912  
    10211021    def isCondition(self, flight, aircraft, oldState, state):
    10221022        """Check if the fault condition holds."""
     1023        isXPlane = (flight.aircraftType==const.AIRCRAFT_DH8D or
     1024                    flight.aircraftType==const.AIRCRAFT_B733) and \
     1025                    (flight.fsType==const.SIM_XPLANE11 or
     1026                     flight.fsType==const.SIM_XPLANE10 or
     1027                     flight.fsType==const.SIM_XPLANE9)
    10231028        if flight.stage==const.STAGE_CRUISE:
    1024             isXPlane = (flight.aircraftType==const.AIRCRAFT_DH8D or
    1025                         flight.aircraftType==const.AIRCRAFT_B733) and \
    1026                         (flight.fsType==const.SIM_XPLANE11 or
    1027                          flight.fsType==const.SIM_XPLANE10 or
    1028                          flight.fsType==const.SIM_XPLANE9)
    1029             bankLimit = 35 if isXPlane else 30
     1029            bankLimit = 40 if isXPlane else 30
    10301030        elif flight.stage in [const.STAGE_TAKEOFF, const.STAGE_CLIMB,
    10311031                              const.STAGE_DESCENT, const.STAGE_LANDING]:
    1032             bankLimit = 35
     1032            bankLimit = 45 if isXPlane else 35
    10331033        else:
    10341034            return False
Note: See TracChangeset for help on using the changeset viewer.