Changeset 789:0be8d7e8f7c8


Ignore:
Timestamp:
06/16/16 18:08:35 (8 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Added some extra debug printouts to determine what is going on with the gears in case of the PMDG B737 (re #300)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/fsuipc.py

    r780 r789  
    16701670             name.find("900")!=-1 or airPath.find("900")!=-1)
    16711671
     1672    def __init__(self):
     1673        """Construct the model."""
     1674        super(PMDGBoeing737NGModel, self).__init__()
     1675        self._lastGearControl = None
     1676        self._lastNoseGear = None
     1677
    16721678    @property
    16731679    def name(self):
     
    17341740        state.apAltitude = data[self._pmdgidx_apalt]
    17351741
     1742        gearControl = data[self._monidx_gearControl]
     1743        noseGear = data[self._monidx_noseGear]
     1744
     1745        if gearControl!=self._lastGearControl or noseGear!=self._lastNoseGear:
     1746            print "gearControl:", gearControl, " noseGear:", noseGear
     1747            self._lastGearControl = gearControl
     1748            self._lastNoseGear = noseGear
     1749
    17361750        return state
    17371751
Note: See TracChangeset for help on using the changeset viewer.