Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/checks.py

    r453 r416  
    940940            if n1>5: numEnginesRunning += 1
    941941
    942         if flight.stage==const.STAGE_PARKING or \
    943            (flight.stage==const.STAGE_TAXIAFTERLAND and state.parking):
     942        if flight.stage==const.STAGE_PARKING:
    944943            return numEnginesRunning<len(state.n1) \
    945944                   and state.antiCollisionLightsOn
     
    10511050    def isCondition(self, flight, aircraft, oldState, state):
    10521051        """Check if the fault condition holds."""
    1053         return state.gLoad>2.0 and not state.onTheGround and \
    1054           (flight.stage!=const.STAGE_LANDING or state.radioAltitude>=50)
     1052        return state.gLoad>2.0 and (flight.stage!=const.STAGE_LANDING or \
     1053                                    state.radioAltitude>=50)
    10551054
    10561055    def logFault(self, flight, aircraft, logger, oldState, state):
     
    11191118                 (flight.stage in
    11201119                  [const.STAGE_CRUISE, const.STAGE_DESCENT,
    1121                    const.STAGE_GOAROUND] or \
    1122                   (flight.stage==const.STAGE_LANDING  and
    1123                    state.groundSpeed>50.0) or \
     1120                   const.STAGE_LANDING, const.STAGE_GOAROUND] or \
    11241121                  ((not state.autoXPDR or \
    11251122                    (self._liftOffTime is not None and
     
    12381235class OverspeedChecker(PatientFaultChecker):
    12391236    """Check if Vne has been exceeded."""
    1240     def __init__(self, timeout = 30.0):
     1237    def __init__(self, timeout = 5.0):
    12411238        """Construct the checker."""
    12421239        super(OverspeedChecker, self).__init__(timeout = timeout)
     
    13071304        return flight.stage in [const.STAGE_DESCENT, const.STAGE_LANDING,
    13081305                                const.STAGE_TAXIAFTERLAND] and \
    1309             state.reverser and \
    13101306            state.groundSpeed<aircraft.reverseMinSpeed and max(state.reverser)
    13111307
     
    13541350    If, during the PUSHANDTAXI stage the speed exceeds 50 knots, the state as
    13551351    saved as a provisional takeoff state. If the speed then decreases below 50
    1356     knots, or the plane remains on the ground for more than 40 seconds, a taxi
     1352    knots, or the plane remains on the ground for more than 20 seconds, a taxi
    13571353    speed error is logged with the highest ground speed detected. This state is
    13581354    also stored in the flight object as a possible
    13591355
    1360     If the plane becomes airborne within 40 seconds, the stage becomes TAKEOFF,
     1356    If the plane becomes airborne within 20 seconds, the stage becomes TAKEOFF,
    13611357    and the previously saved takeoff state is logged.
    13621358
     
    13901386                    aircraft.setStage(self._takeoffState, const.STAGE_TAKEOFF)
    13911387                    self._takeoffState = None
    1392                 elif state.timestamp > (self._takeoffState.timestamp + 40):
     1388                elif state.timestamp > (self._takeoffState.timestamp + 30):
    13931389                    flight.setRTOState(self._highestSpeedState)
    13941390        elif self._takeoffState is not None:
Note: See TracChangeset for help on using the changeset viewer.