Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/checks.py

    r430 r450  
    10541054    def isCondition(self, flight, aircraft, oldState, state):
    10551055        """Check if the fault condition holds."""
    1056         return state.gLoad>2.0 and (flight.stage!=const.STAGE_LANDING or \
    1057                                     state.radioAltitude>=50)
     1056        return state.gLoad>2.0 and not state.onTheGround and \
     1057          (flight.stage!=const.STAGE_LANDING or state.radioAltitude>=50)
    10581058
    10591059    def logFault(self, flight, aircraft, logger, oldState, state):
     
    11221122                 (flight.stage in
    11231123                  [const.STAGE_CRUISE, const.STAGE_DESCENT,
    1124                    const.STAGE_LANDING, const.STAGE_GOAROUND] or \
     1124                   const.STAGE_GOAROUND] or \
     1125                  (flight.stage==const.STAGE_LANDING  and
     1126                   state.groundSpeed>50.0) or \
    11251127                  ((not state.autoXPDR or \
    11261128                    (self._liftOffTime is not None and
     
    12391241class OverspeedChecker(PatientFaultChecker):
    12401242    """Check if Vne has been exceeded."""
    1241     def __init__(self, timeout = 5.0):
     1243    def __init__(self, timeout = 30.0):
    12421244        """Construct the checker."""
    12431245        super(OverspeedChecker, self).__init__(timeout = timeout)
     
    13081310        return flight.stage in [const.STAGE_DESCENT, const.STAGE_LANDING,
    13091311                                const.STAGE_TAXIAFTERLAND] and \
     1312            state.reverser and \
    13101313            state.groundSpeed<aircraft.reverseMinSpeed and max(state.reverser)
    13111314
Note: See TracChangeset for help on using the changeset viewer.