Changeset 507:840c09a60253 for src/mlx


Ignore:
Timestamp:
05/12/13 11:38:17 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The transponder mode value is taken into account after its having a value other than 0 (re #198)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/fsuipc.py

    r476 r507  
    12641264        flapsNotches is a list of degrees of flaps that are available on the aircraft."""
    12651265        self._flapsNotches = flapsNotches
     1266        self._xpdrReliable = False
    12661267
    12671268    @property
     
    14081409        state.cog = data[self._monidx_cog]
    14091410
    1410         state.xpdrC = data[self._monidx_xpdrC]!=1
     1411        if not self._xpdrReliable:
     1412            self._xpdrReliable = data[self._monidx_xpdrC]!=0
     1413
     1414        state.xpdrC = data[self._monidx_xpdrC]!=1 \
     1415                      if self._xpdrReliable else None
    14111416        state.autoXPDR = False
    14121417
Note: See TracChangeset for help on using the changeset viewer.