Ignore:
Timestamp:
08/17/15 16:23:05 (9 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

The pitot heat cannot be detected in case of certain models, so a value of None is handled here too (re #274)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/checks.py

    r661 r666  
    14441444    def isCondition(self, flight, aircraft, oldState, state):
    14451445        """Check if the fault condition holds."""
    1446         return state.groundSpeed>80 and not state.pitotHeatOn
     1446        return state.groundSpeed>80 and state.pitotHeatOn is False
    14471447
    14481448    def logFault(self, flight, aircraft, logger, oldState, state):
Note: See TracChangeset for help on using the changeset viewer.