Changeset 415:77d406d7d593


Ignore:
Timestamp:
01/26/13 09:48:29 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Modified the landing lights checking (re #181)

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/checks.py

    r414 r415  
    10771077                 state.landingLightsOn and state.altitude>12500) or \
    10781078                (flight.stage==const.STAGE_LANDING and \
    1079                  not state.landingLightsOn and not state.onTheGround) or \
     1079                 not state.landingLightsOn and state.onTheGround and
     1080                 state.groundSpeed>50.0) or \
    10801081                (flight.stage==const.STAGE_PARKING and \
    10811082                 state.landingLightsOn and state.onTheGround))
  • test/test1.txt

    r409 r415  
    6868set altitude=517
    6969set latitude=47.49 longitude=21.62
     70set lights=23
    7071set onTheGround=yes
    7172set n1_1=-10
     
    7475set n1_2=0
    7576set ias=45 gs=45
     77set lights=19
    7678set ias=35 gs=35
    7779set ias=20 gs=20
Note: See TracChangeset for help on using the changeset viewer.