- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/checks.py
r478 r496 1382 1382 if state.groundSpeed>50: 1383 1383 SpeedChecker.logSpeedFault(flight, state) 1384 else: 1385 self._takeoffState = None 1384 1386 1385 1387 def _checkPushAndTaxi(self, flight, aircraft, state): … … 1426 1428 def isCondition(self, flight, aircraft, oldState, state): 1427 1429 """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 \ 1429 1432 state.strobeLightsOn and state.onTheGround) or \ 1430 1433 (flight.stage==const.STAGE_TAKEOFF and \ … … 1434 1437 not state.strobeLightsOn and not state.onTheGround) or \ 1435 1438 (flight.stage==const.STAGE_PARKING and \ 1436 state.strobeLightsOn and state.onTheGround) 1439 state.strobeLightsOn and state.onTheGround)) 1437 1440 1438 1441 def logFault(self, flight, aircraft, logger, oldState, state):
Note:
See TracChangeset
for help on using the changeset viewer.