Changeset 539:750f64278751 for src/mlx/fsuipc.py
- Timestamp:
- 09/18/13 04:52:50 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/fsuipc.py
r535 r539 1626 1626 return "FSUIPC/Generic Boeing 737" 1627 1627 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 1628 1642 #------------------------------------------------------------------------------ 1629 1643 … … 1690 1704 apalthold = data[self._pmdgidx_apalthold] 1691 1705 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 1692 1711 else: 1693 1712 state.apMaster = data[self._pmdgidx_cmda]!=0 1694 1713 state.apHeadingHold = data[self._pmdgidx_aphdgsel]!=0 1695 1714 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 1697 1718 state.strobeLightsOn = None 1698 1699 state.xpdrC = data[self._pmdgidx_xpdr]==4 1719 state.xpdrC = None 1720 1700 1721 state.apHeading = data[self._pmdgidx_aphdg] 1701 1722 state.apAltitude = data[self._pmdgidx_apalt]
Note:
See TracChangeset
for help on using the changeset viewer.