Changeset 480:36a3391da8bf


Ignore:
Timestamp:
03/23/13 09:09:18 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Refined the strobe light and takeoff handling

Location:
src/mlx
Files:
2 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):
  • src/mlx/gui/monitor.py

    r408 r480  
    371371            self._navLightsOn.set_sensitive(aircraftState.navLightsOn is True)
    372372            self._antiCollisionLightsOn.set_sensitive(aircraftState.antiCollisionLightsOn)
    373             self._strobeLightsOn.set_sensitive(aircraftState.strobeLightsOn)
     373            self._strobeLightsOn.set_sensitive(aircraftState.strobeLightsOn is True)
    374374
    375375            if self._previousState is None or \
Note: See TracChangeset for help on using the changeset viewer.