- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/checks.py
r453 r416 940 940 if n1>5: numEnginesRunning += 1 941 941 942 if flight.stage==const.STAGE_PARKING or \ 943 (flight.stage==const.STAGE_TAXIAFTERLAND and state.parking): 942 if flight.stage==const.STAGE_PARKING: 944 943 return numEnginesRunning<len(state.n1) \ 945 944 and state.antiCollisionLightsOn … … 1051 1050 def isCondition(self, flight, aircraft, oldState, state): 1052 1051 """Check if the fault condition holds.""" 1053 return state.gLoad>2.0 and not state.onTheGround and\1054 (flight.stage!=const.STAGE_LANDING orstate.radioAltitude>=50)1052 return state.gLoad>2.0 and (flight.stage!=const.STAGE_LANDING or \ 1053 state.radioAltitude>=50) 1055 1054 1056 1055 def logFault(self, flight, aircraft, logger, oldState, state): … … 1119 1118 (flight.stage in 1120 1119 [const.STAGE_CRUISE, const.STAGE_DESCENT, 1121 const.STAGE_GOAROUND] or \ 1122 (flight.stage==const.STAGE_LANDING and 1123 state.groundSpeed>50.0) or \ 1120 const.STAGE_LANDING, const.STAGE_GOAROUND] or \ 1124 1121 ((not state.autoXPDR or \ 1125 1122 (self._liftOffTime is not None and … … 1238 1235 class OverspeedChecker(PatientFaultChecker): 1239 1236 """Check if Vne has been exceeded.""" 1240 def __init__(self, timeout = 30.0):1237 def __init__(self, timeout = 5.0): 1241 1238 """Construct the checker.""" 1242 1239 super(OverspeedChecker, self).__init__(timeout = timeout) … … 1307 1304 return flight.stage in [const.STAGE_DESCENT, const.STAGE_LANDING, 1308 1305 const.STAGE_TAXIAFTERLAND] and \ 1309 state.reverser and \1310 1306 state.groundSpeed<aircraft.reverseMinSpeed and max(state.reverser) 1311 1307 … … 1354 1350 If, during the PUSHANDTAXI stage the speed exceeds 50 knots, the state as 1355 1351 saved as a provisional takeoff state. If the speed then decreases below 50 1356 knots, or the plane remains on the ground for more than 40 seconds, a taxi1352 knots, or the plane remains on the ground for more than 20 seconds, a taxi 1357 1353 speed error is logged with the highest ground speed detected. This state is 1358 1354 also stored in the flight object as a possible 1359 1355 1360 If the plane becomes airborne within 40 seconds, the stage becomes TAKEOFF,1356 If the plane becomes airborne within 20 seconds, the stage becomes TAKEOFF, 1361 1357 and the previously saved takeoff state is logged. 1362 1358 … … 1390 1386 aircraft.setStage(self._takeoffState, const.STAGE_TAKEOFF) 1391 1387 self._takeoffState = None 1392 elif state.timestamp > (self._takeoffState.timestamp + 40):1388 elif state.timestamp > (self._takeoffState.timestamp + 30): 1393 1389 flight.setRTOState(self._highestSpeedState) 1394 1390 elif self._takeoffState is not None:
Note:
See TracChangeset
for help on using the changeset viewer.