Changeset 360:b83988619f8b for src/mlx


Ignore:
Timestamp:
12/13/12 16:34:33 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Added aircraft-specific minimal speed for the reversers (#152)

Location:
src/mlx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/acft.py

    r359 r360  
    7373
    7474        self.humanWeight = 82.0
     75
     76        self.reverseMinSpeed = 60
    7577
    7678        self._checkers = []
     
    675677                                 25 : 220,
    676678                                 42 : 180 }
     679        self.reverseMinSpeed = 50
    677680
    678681#---------------------------------------------------------------------------------------
     
    727730                                 20 : 400,
    728731                                 30 : 300 }
     732        self.reverseMinSpeed = 50
    729733
    730734    @property
     
    769773                                 28 : 194,
    770774                                 45 : 162 }
     775        self.reverseMinSpeed = 50
    771776
    772777    @property
  • src/mlx/checks.py

    r359 r360  
    12501250
    12511251class ReverserChecker(SimpleFaultChecker):
    1252     """Check if the reverser is not used below 60 knots."""
     1252    """Check if the reverser is not used below the speed prescribed for the
     1253    aircraft."""
    12531254    def isCondition(self, flight, aircraft, oldState, state):
    12541255        """Check if the fault condition holds."""
    12551256        return flight.stage in [const.STAGE_DESCENT, const.STAGE_LANDING,
    12561257                                const.STAGE_TAXIAFTERLAND] and \
    1257             state.groundSpeed<60 and max(state.reverser)
     1258            state.groundSpeed<aircraft.reverseMinSpeed and max(state.reverser)
    12581259
    12591260    def logFault(self, flight, aircraft, logger, oldState, state):
Note: See TracChangeset for help on using the changeset viewer.