Changeset 263:7ee78a903649 for src/mlx/checks.py
- Timestamp:
- 06/28/12 17:24:45 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/checks.py
r243 r263 572 572 """Determine if the engines are in such a state that the lights should 573 573 be on.""" 574 return max(state.n1)>5 574 if state.n1 is not None: 575 return max(state.n1)>5 576 elif state.rpm is not None: 577 return max(state.rpm)>0 578 else: 579 return False 575 580 576 581 #--------------------------------------------------------------------------------------- … … 582 587 """Determine if the engines are in such a state that the lights should 583 588 be on.""" 584 return max(state.n1[1:])>5 585 589 return max(state.n1[1:])>5 586 590 587 591 #--------------------------------------------------------------------------------------- 588 592 589 593 class BankChecker(SimpleFaultChecker): 590 """Check for the anti-collision light being off at high N1 values."""594 """Check for the bank is within limits.""" 591 595 def isCondition(self, flight, aircraft, oldState, state): 592 596 """Check if the fault condition holds.""" … … 973 977 def isCondition(self, flight, aircraft, oldState, state): 974 978 """Check if the fault condition holds.""" 975 return flight.stage==const.STAGE_TAKEOFF and max(state.n1)>97 979 return flight.stage==const.STAGE_TAKEOFF and \ 980 state.n1 is not None and max(state.n1)>97 976 981 977 982 def logFault(self, flight, aircraft, logger, oldState, state): 978 983 """Log the fault.""" 979 print state.n1980 984 flight.handleFault(ThrustChecker, state.timestamp, 981 985 FaultChecker._appendDuring(flight,
Note:
See TracChangeset
for help on using the changeset viewer.