Changeset 375:9db0cb4a0040


Ignore:
Timestamp:
12/18/12 10:19:15 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

If the landing light is off during takeoff, it scores only 0 (#156)

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/checks.py

    r374 r375  
    10791079    def logFault(self, flight, aircraft, logger, oldState, state):
    10801080        """Log the fault."""
    1081         score = 0 if flight.stage==const.STAGE_LANDING else 1
     1081        score = 0 if flight.stage in [const.STAGE_TAKEOFF,
     1082                                      const.STAGE_LANDING] else 1
    10821083        message = "Landing lights were %s" % \
    10831084                  (("on" if state.landingLightsOn else "off"),)
  • test/test1.txt

    r361 r375  
    3939set flapsControl=0
    4040set altitude=10000
    41 set lights=17
     41set lights=19
    4242set ias=400
    4343set altitude=22001
Note: See TracChangeset for help on using the changeset viewer.