Ignore:
Timestamp:
03/23/13 09:09:18 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Refined the strobe light and takeoff handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/checks.py

    r477 r480  
    13781378            if state.groundSpeed>50:
    13791379                SpeedChecker.logSpeedFault(flight, state)
     1380        else:
     1381            self._takeoffState = None
    13801382
    13811383    def _checkPushAndTaxi(self, flight, aircraft, state):
     
    14221424    def isCondition(self, flight, aircraft, oldState, state):
    14231425        """Check if the fault condition holds."""
    1424         return (flight.stage==const.STAGE_BOARDING and \
     1426        return state.strobeLightsOn is not None and \
     1427              ((flight.stage==const.STAGE_BOARDING and \
    14251428                state.strobeLightsOn and state.onTheGround) or \
    14261429                (flight.stage==const.STAGE_TAKEOFF and \
     
    14301433                  not state.strobeLightsOn and not state.onTheGround) or \
    14311434                  (flight.stage==const.STAGE_PARKING and \
    1432                    state.strobeLightsOn and state.onTheGround)
     1435                   state.strobeLightsOn and state.onTheGround))
    14331436
    14341437    def logFault(self, flight, aircraft, logger, oldState, state):
Note: See TracChangeset for help on using the changeset viewer.