Changeset 477:5d5e70fe99e2


Ignore:
Timestamp:
03/16/13 06:21:11 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Children:
478:00d38a068da9, 479:f5b5ee3e3204
Phase:
public
Message:

Made use of the transponder setting to check for the takeoff condition (re #116)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/checks.py

    r453 r477  
    5656                aircraft.setStage(state, const.STAGE_PUSHANDTAXI)
    5757        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):
    5960                aircraft.setStage(state, const.STAGE_TAKEOFF)
    6061        elif stage==const.STAGE_TAKEOFF:
     
    6364                aircraft.setStage(state, const.STAGE_CLIMB)
    6465            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 \
    6668                 state.onTheGround and \
    6769                 state.groundSpeed<50.0:
Note: See TracChangeset for help on using the changeset viewer.