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