Changeset 480:36a3391da8bf
- Timestamp:
- 03/23/13 09:09:18 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/checks.py
r477 r480 1378 1378 if state.groundSpeed>50: 1379 1379 SpeedChecker.logSpeedFault(flight, state) 1380 else: 1381 self._takeoffState = None 1380 1382 1381 1383 def _checkPushAndTaxi(self, flight, aircraft, state): … … 1422 1424 def isCondition(self, flight, aircraft, oldState, state): 1423 1425 """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 \ 1425 1428 state.strobeLightsOn and state.onTheGround) or \ 1426 1429 (flight.stage==const.STAGE_TAKEOFF and \ … … 1430 1433 not state.strobeLightsOn and not state.onTheGround) or \ 1431 1434 (flight.stage==const.STAGE_PARKING and \ 1432 state.strobeLightsOn and state.onTheGround) 1435 state.strobeLightsOn and state.onTheGround)) 1433 1436 1434 1437 def logFault(self, flight, aircraft, logger, oldState, state): -
src/mlx/gui/monitor.py
r408 r480 371 371 self._navLightsOn.set_sensitive(aircraftState.navLightsOn is True) 372 372 self._antiCollisionLightsOn.set_sensitive(aircraftState.antiCollisionLightsOn) 373 self._strobeLightsOn.set_sensitive(aircraftState.strobeLightsOn )373 self._strobeLightsOn.set_sensitive(aircraftState.strobeLightsOn is True) 374 374 375 375 if self._previousState is None or \
Note:
See TracChangeset
for help on using the changeset viewer.