Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/checks.py

    r496 r478  
    13821382            if state.groundSpeed>50:
    13831383                SpeedChecker.logSpeedFault(flight, state)
    1384         else:
    1385             self._takeoffState = None
    13861384
    13871385    def _checkPushAndTaxi(self, flight, aircraft, state):
     
    14281426    def isCondition(self, flight, aircraft, oldState, state):
    14291427        """Check if the fault condition holds."""
    1430         return state.strobeLightsOn is not None and \
    1431               ((flight.stage==const.STAGE_BOARDING and \
     1428        return (flight.stage==const.STAGE_BOARDING and \
    14321429                state.strobeLightsOn and state.onTheGround) or \
    14331430                (flight.stage==const.STAGE_TAKEOFF and \
     
    14371434                  not state.strobeLightsOn and not state.onTheGround) or \
    14381435                  (flight.stage==const.STAGE_PARKING and \
    1439                    state.strobeLightsOn and state.onTheGround))
     1436                   state.strobeLightsOn and state.onTheGround)
    14401437
    14411438    def logFault(self, flight, aircraft, logger, oldState, state):
Note: See TracChangeset for help on using the changeset viewer.