Changeset 548:bcb90fca2956 for src/mlx


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

Removed the logging in the Tu-134 anti-collision lights checker and changed the conditions to match procedures. The logged text is also changed to reflect reality (re #220)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/checks.py

    r546 r548  
    932932        flight.handleFault(AntiCollisionLightsChecker, state.timestamp,
    933933                           FaultChecker._appendDuring(flight,
    934                                                       "Anti-collision lights were off"),
     934                                                      "Anti-collision lights were %s" %
     935                                                      ("on" if state.antiCollisionLightsOn else "off",)),
    935936                           1)
    936937
     
    955956            if n1>5: numEnginesRunning += 1
    956957
    957         print "TupolevAntiCollisionLightsChecker: n1", state.n1,
    958         print ", numEnginesRunning:", numEnginesRunning,
    959         print ", stage:", flight.stage,
    960         print ", antiCollisionLightsOn:", state.antiCollisionLightsOn,
    961         print ", parking:", state.parking,
    962         print
    963 
    964958        if flight.stage==const.STAGE_PARKING or \
    965            (flight.stage==const.STAGE_TAXIAFTERLAND and state.parking):
     959           flight.stage==const.STAGE_TAXIAFTERLAND:
    966960            return numEnginesRunning<len(state.n1) \
    967961                   and state.antiCollisionLightsOn
Note: See TracChangeset for help on using the changeset viewer.