- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/checks.py
r450 r478 56 56 aircraft.setStage(state, const.STAGE_PUSHANDTAXI) 57 57 elif stage==const.STAGE_PUSHANDTAXI or stage==const.STAGE_RTO: 58 if state.strobeLightsOn: 58 if state.strobeLightsOn or \ 59 (state.strobeLightsOn is None and state.xpdrC): 59 60 aircraft.setStage(state, const.STAGE_TAKEOFF) 60 61 elif stage==const.STAGE_TAKEOFF: … … 63 64 aircraft.setStage(state, const.STAGE_CLIMB) 64 65 elif not state.landingLightsOn and \ 65 not state.strobeLightsOn and \ 66 (state.strobeLightsOn is False or 67 (state.strobeLightsOn is None and not state.xpdrC)) and \ 66 68 state.onTheGround and \ 67 69 state.groundSpeed<50.0: … … 940 942 if n1>5: numEnginesRunning += 1 941 943 942 if flight.stage==const.STAGE_PARKING: 944 if flight.stage==const.STAGE_PARKING or \ 945 (flight.stage==const.STAGE_TAXIAFTERLAND and state.parking): 943 946 return numEnginesRunning<len(state.n1) \ 944 947 and state.antiCollisionLightsOn … … 1357 1360 If, during the PUSHANDTAXI stage the speed exceeds 50 knots, the state as 1358 1361 saved as a provisional takeoff state. If the speed then decreases below 50 1359 knots, or the plane remains on the ground for more than 20 seconds, a taxi1362 knots, or the plane remains on the ground for more than 40 seconds, a taxi 1360 1363 speed error is logged with the highest ground speed detected. This state is 1361 1364 also stored in the flight object as a possible 1362 1365 1363 If the plane becomes airborne within 20 seconds, the stage becomes TAKEOFF,1366 If the plane becomes airborne within 40 seconds, the stage becomes TAKEOFF, 1364 1367 and the previously saved takeoff state is logged. 1365 1368 … … 1393 1396 aircraft.setStage(self._takeoffState, const.STAGE_TAKEOFF) 1394 1397 self._takeoffState = None 1395 elif state.timestamp > (self._takeoffState.timestamp + 30):1398 elif state.timestamp > (self._takeoffState.timestamp + 40): 1396 1399 flight.setRTOState(self._highestSpeedState) 1397 1400 elif self._takeoffState is not None:
Note:
See TracChangeset
for help on using the changeset viewer.