Ignore:
Timestamp:
09/18/13 04:52:50 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The no-strobe speed checker also works for models without strobe and transponder (re #211)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/fsuipc.py

    r535 r539  
    16261626        return "FSUIPC/Generic Boeing 737"
    16271627
     1628    # Note: the function below should be enabled if testing the speed-based
     1629    # takeoff on Linux
     1630    # def getAircraftState(self, aircraft, timestamp, data):
     1631    #     """Get the aircraft state.
     1632
     1633    #     Get it from the parent, and then check some PMDG-specific stuff."""
     1634    #     state = super(B737Model, self).getAircraftState(aircraft,
     1635    #                                                     timestamp,
     1636    #                                                     data)
     1637    #     state.strobeLightsOn = None
     1638    #     state.xpdrC = None
     1639
     1640    #     return state
     1641
    16281642#------------------------------------------------------------------------------
    16291643
     
    16901704            apalthold = data[self._pmdgidx_apalthold]
    16911705            state.apAltitudeHold = apalthold>=3 and apalthold<=6
     1706            state.xpdrC = data[self._pmdgidx_xpdr]==4
     1707
     1708            # Uncomment the following to test the speed-based takeoff
     1709            # state.strobeLightsOn = None
     1710            # state.xpdrC = None
    16921711        else:
    16931712            state.apMaster = data[self._pmdgidx_cmda]!=0
    16941713            state.apHeadingHold = data[self._pmdgidx_aphdgsel]!=0
    16951714            state.apAltitudeHold = data[self._pmdgidx_apalthold]!=0
    1696             #state.strobeLightsOn = data[self._pmdgidx_lts_positionsw]==0x02
     1715
     1716            # state.strobeLightsOn = data[self._pmdgidx_lts_positionsw]==0x02
     1717            # state.xpdrC = data[self._pmdgidx_xpdr]==4
    16971718            state.strobeLightsOn = None
    1698 
    1699         state.xpdrC = data[self._pmdgidx_xpdr]==4
     1719            state.xpdrC = None
     1720
    17001721        state.apHeading = data[self._pmdgidx_aphdg]
    17011722        state.apAltitude = data[self._pmdgidx_apalt]
Note: See TracChangeset for help on using the changeset viewer.