Changeset 375:9db0cb4a0040 for src


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)

File:
1 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"),)
Note: See TracChangeset for help on using the changeset viewer.