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