Changeset 518:e17dbb8daa6a


Ignore:
Timestamp:
06/04/13 15:44:31 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The transponder is checked only when the aircraft is airborne in stage TAKEOFF (re #203)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/checks.py

    r480 r518  
    11221122                  [const.STAGE_CRUISE, const.STAGE_DESCENT,
    11231123                   const.STAGE_GOAROUND] or \
    1124                   (flight.stage==const.STAGE_LANDING  and
     1124                  (flight.stage==const.STAGE_LANDING and
    11251125                   state.groundSpeed>50.0) or \
    11261126                  ((not state.autoXPDR or \
    11271127                    (self._liftOffTime is not None and
    11281128                     state.timestamp > (self._liftOffTime+8))) and \
    1129                    flight.stage in
    1130                    [const.STAGE_TAKEOFF, const.STAGE_RTO, const.STAGE_CLIMB])
     1129                   ((flight.stage==const.STAGE_TAKEOFF and
     1130                     not state.onTheGround) or flight.stage==const.STAGE_CLIMB))
    11311131                  )
    11321132                 )
Note: See TracChangeset for help on using the changeset viewer.