Changeset 917:803dc6bacfa5 for src/mlx/checks.py
- Timestamp:
- 02/23/19 13:38:11 (5 years ago)
- Branch:
- default
- Parents:
-
908:fcf3c44650f1 (diff), 916:4f738ffc3596 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/checks.py
r896 r917 1021 1021 def isCondition(self, flight, aircraft, oldState, state): 1022 1022 """Check if the fault condition holds.""" 1023 isXPlane = (flight.aircraftType==const.AIRCRAFT_DH8D or 1024 flight.aircraftType==const.AIRCRAFT_B733) and \ 1025 (flight.fsType==const.SIM_XPLANE11 or 1026 flight.fsType==const.SIM_XPLANE10 or 1027 flight.fsType==const.SIM_XPLANE9) 1023 1028 if flight.stage==const.STAGE_CRUISE: 1024 isDH8DXplane = flight.aircraftType==const.AIRCRAFT_DH8D and \ 1025 (flight.fsType==const.SIM_XPLANE10 or 1026 flight.fsType==const.SIM_XPLANE9) 1027 bankLimit = 35 if isDH8DXplane else 30 1029 bankLimit = 40 if isXPlane else 30 1028 1030 elif flight.stage in [const.STAGE_TAKEOFF, const.STAGE_CLIMB, 1029 1031 const.STAGE_DESCENT, const.STAGE_LANDING]: 1030 bankLimit = 351032 bankLimit = 45 if isXPlane else 35 1031 1033 else: 1032 1034 return False -
src/mlx/checks.py
r912 r917 1415 1415 class PayloadChecker(SimpleFaultChecker): 1416 1416 """Check if the payload matches the specification.""" 1417 TOLERANCE=5 501417 TOLERANCE=50 1418 1418 1419 1419 @staticmethod
Note:
See TracChangeset
for help on using the changeset viewer.