Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/checks.py

    r416 r453  
    940940            if n1>5: numEnginesRunning += 1
    941941
    942         if flight.stage==const.STAGE_PARKING:
     942        if flight.stage==const.STAGE_PARKING or \
     943           (flight.stage==const.STAGE_TAXIAFTERLAND and state.parking):
    943944            return numEnginesRunning<len(state.n1) \
    944945                   and state.antiCollisionLightsOn
     
    10501051    def isCondition(self, flight, aircraft, oldState, state):
    10511052        """Check if the fault condition holds."""
    1052         return state.gLoad>2.0 and (flight.stage!=const.STAGE_LANDING or \
    1053                                     state.radioAltitude>=50)
     1053        return state.gLoad>2.0 and not state.onTheGround and \
     1054          (flight.stage!=const.STAGE_LANDING or state.radioAltitude>=50)
    10541055
    10551056    def logFault(self, flight, aircraft, logger, oldState, state):
     
    11181119                 (flight.stage in
    11191120                  [const.STAGE_CRUISE, const.STAGE_DESCENT,
    1120                    const.STAGE_LANDING, const.STAGE_GOAROUND] or \
     1121                   const.STAGE_GOAROUND] or \
     1122                  (flight.stage==const.STAGE_LANDING  and
     1123                   state.groundSpeed>50.0) or \
    11211124                  ((not state.autoXPDR or \
    11221125                    (self._liftOffTime is not None and
     
    12351238class OverspeedChecker(PatientFaultChecker):
    12361239    """Check if Vne has been exceeded."""
    1237     def __init__(self, timeout = 5.0):
     1240    def __init__(self, timeout = 30.0):
    12381241        """Construct the checker."""
    12391242        super(OverspeedChecker, self).__init__(timeout = timeout)
     
    13041307        return flight.stage in [const.STAGE_DESCENT, const.STAGE_LANDING,
    13051308                                const.STAGE_TAXIAFTERLAND] and \
     1309            state.reverser and \
    13061310            state.groundSpeed<aircraft.reverseMinSpeed and max(state.reverser)
    13071311
     
    13501354    If, during the PUSHANDTAXI stage the speed exceeds 50 knots, the state as
    13511355    saved as a provisional takeoff state. If the speed then decreases below 50
    1352     knots, or the plane remains on the ground for more than 20 seconds, a taxi
     1356    knots, or the plane remains on the ground for more than 40 seconds, a taxi
    13531357    speed error is logged with the highest ground speed detected. This state is
    13541358    also stored in the flight object as a possible
    13551359
    1356     If the plane becomes airborne within 20 seconds, the stage becomes TAKEOFF,
     1360    If the plane becomes airborne within 40 seconds, the stage becomes TAKEOFF,
    13571361    and the previously saved takeoff state is logged.
    13581362
     
    13861390                    aircraft.setStage(self._takeoffState, const.STAGE_TAKEOFF)
    13871391                    self._takeoffState = None
    1388                 elif state.timestamp > (self._takeoffState.timestamp + 30):
     1392                elif state.timestamp > (self._takeoffState.timestamp + 40):
    13891393                    flight.setRTOState(self._highestSpeedState)
    13901394        elif self._takeoffState is not None:
Note: See TracChangeset for help on using the changeset viewer.