Changeset 60:110237fed44b for src/mlx/checks.py
- Timestamp:
- 04/07/12 09:39:40 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/checks.py
r30 r60 697 697 698 698 class MZFWChecker(WeightChecker): 699 """Checks if the M TOW is not exceeded on landing."""699 """Checks if the MZFW is not exceeded on landing.""" 700 700 def __init__(self): 701 701 """Construct the checker.""" … … 750 750 """Check if the payload matches the specification.""" 751 751 TOLERANCE=550 752 753 @staticmethod 754 def isZFWFaulty(aircraftZFW, flightZFW): 755 """Check if the given aircraft's ZFW is outside of the limits.""" 756 return aircraftZFW < (flightZFW - PayloadChecker.TOLERANCE) or \ 757 aircraftZFW > (flightZFW + PayloadChecker.TOLERANCE) 752 758 753 759 def isCondition(self, flight, aircraft, oldState, state): 754 760 """Check if the fault condition holds.""" 755 761 return flight.stage==const.STAGE_PUSHANDTAXI and \ 756 (state.zfw < (flight.zfw - PayloadChecker.TOLERANCE) or \ 757 state.zfw > (flight.zfw + PayloadChecker.TOLERANCE)) 762 PayloadChecker.isZFWFaulty(state.zfw, flight.zfw) 758 763 759 764 def logFault(self, flight, aircraft, logger, oldState, state):
Note:
See TracChangeset
for help on using the changeset viewer.