- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/checks.py
r450 r430 1054 1054 def isCondition(self, flight, aircraft, oldState, state): 1055 1055 """Check if the fault condition holds.""" 1056 return state.gLoad>2.0 and not state.onTheGround and\1057 (flight.stage!=const.STAGE_LANDING orstate.radioAltitude>=50)1056 return state.gLoad>2.0 and (flight.stage!=const.STAGE_LANDING or \ 1057 state.radioAltitude>=50) 1058 1058 1059 1059 def logFault(self, flight, aircraft, logger, oldState, state): … … 1122 1122 (flight.stage in 1123 1123 [const.STAGE_CRUISE, const.STAGE_DESCENT, 1124 const.STAGE_GOAROUND] or \ 1125 (flight.stage==const.STAGE_LANDING and 1126 state.groundSpeed>50.0) or \ 1124 const.STAGE_LANDING, const.STAGE_GOAROUND] or \ 1127 1125 ((not state.autoXPDR or \ 1128 1126 (self._liftOffTime is not None and … … 1241 1239 class OverspeedChecker(PatientFaultChecker): 1242 1240 """Check if Vne has been exceeded.""" 1243 def __init__(self, timeout = 30.0):1241 def __init__(self, timeout = 5.0): 1244 1242 """Construct the checker.""" 1245 1243 super(OverspeedChecker, self).__init__(timeout = timeout) … … 1310 1308 return flight.stage in [const.STAGE_DESCENT, const.STAGE_LANDING, 1311 1309 const.STAGE_TAXIAFTERLAND] and \ 1312 state.reverser and \1313 1310 state.groundSpeed<aircraft.reverseMinSpeed and max(state.reverser) 1314 1311
Note:
See TracChangeset
for help on using the changeset viewer.