Changeset 666:bb1cfa673969


Ignore:
Timestamp:
08/17/15 16:23:05 (9 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

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

Location:
src/mlx
Files:
2 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):
  • src/mlx/fs.py

    r501 r666  
    227227    the detection of the state of the landing lights is unreliable, and should
    228228    not be considered, this is set to None.
    229     - pitotHeatOn: a boolean indicating if the pitot heat is on
     229    - pitotHeatOn: a boolean indicating if the pitot heat is on. Maybe None, if
     230      the pitot heat setting cannot be read
    230231    - parking: a boolean indicating if the parking brake is set
    231232    - gearControlDown: a boolean indicating if the gear control is set to down
Note: See TracChangeset for help on using the changeset viewer.