Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/checks.py

    r478 r496  
    13821382            if state.groundSpeed>50:
    13831383                SpeedChecker.logSpeedFault(flight, state)
     1384        else:
     1385            self._takeoffState = None
    13841386
    13851387    def _checkPushAndTaxi(self, flight, aircraft, state):
     
    14261428    def isCondition(self, flight, aircraft, oldState, state):
    14271429        """Check if the fault condition holds."""
    1428         return (flight.stage==const.STAGE_BOARDING and \
     1430        return state.strobeLightsOn is not None and \
     1431              ((flight.stage==const.STAGE_BOARDING and \
    14291432                state.strobeLightsOn and state.onTheGround) or \
    14301433                (flight.stage==const.STAGE_TAKEOFF and \
     
    14341437                  not state.strobeLightsOn and not state.onTheGround) or \
    14351438                  (flight.stage==const.STAGE_PARKING and \
    1436                    state.strobeLightsOn and state.onTheGround)
     1439                   state.strobeLightsOn and state.onTheGround))
    14371440
    14381441    def logFault(self, flight, aircraft, logger, oldState, state):
Note: See TracChangeset for help on using the changeset viewer.