Changeset 545:6fcdb292a9a0 for src/mlx
- Timestamp:
- 12/22/13 15:21:05 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/fsuipc.py
r539 r545 2037 2037 """Construct the model.""" 2038 2038 super(PTT154Model, self).__init__() 2039 self._adf1 = None2040 self._adf2 = None2041 self._lastValue = None2042 2039 self._fsType = None 2043 2040 … … 2060 2057 This removes the reverser value for the middle engine.""" 2061 2058 state = super(PTT154Model, self).getAircraftState(aircraft, timestamp, data) 2062 2063 adf1 = state.adf12064 if self._adf1 is None:2065 self._adf1 = self._adf2 = adf12066 elif adf1 != self._lastValue and adf1 != self._adf1 and \2067 adf1 != self._adf2:2068 if self._lastValue==self._adf2:2069 self._adf1 = adf12070 else:2071 self._adf2 = adf12072 2073 self._lastValue = adf12074 state.adf1 = self._adf12075 state.adf2 = self._adf22076 2059 2077 2060 if self._fsType==const.SIM_MSFSX:
Note:
See TracChangeset
for help on using the changeset viewer.