Changeset 545:6fcdb292a9a0


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

Removed ADF tricks (re #219)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/fsuipc.py

    r539 r545  
    20372037        """Construct the model."""
    20382038        super(PTT154Model, self).__init__()
    2039         self._adf1 = None
    2040         self._adf2 = None
    2041         self._lastValue = None
    20422039        self._fsType = None
    20432040
     
    20602057        This removes the reverser value for the middle engine."""
    20612058        state = super(PTT154Model, self).getAircraftState(aircraft, timestamp, data)
    2062 
    2063         adf1 = state.adf1
    2064         if self._adf1 is None:
    2065             self._adf1 = self._adf2 = adf1
    2066         elif adf1 != self._lastValue and adf1 != self._adf1 and \
    2067              adf1 != self._adf2:
    2068             if self._lastValue==self._adf2:
    2069                 self._adf1 = adf1
    2070             else:
    2071                 self._adf2 = adf1
    2072 
    2073         self._lastValue = adf1
    2074         state.adf1 = self._adf1
    2075         state.adf2 = self._adf2
    20762059
    20772060        if self._fsType==const.SIM_MSFSX:
Note: See TracChangeset for help on using the changeset viewer.