Ignore:
Timestamp:
12/13/12 16:34:33 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.