Changeset 642:c2d51278efcd
- Timestamp:
- 06/21/15 08:35:09 (10 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/xplane.py
r641 r642 1742 1742 return "X-Plane/FlyJSim Bombardier Dash 8-Q400" 1743 1743 1744 def addMonitoringData(self, data, fsType): 1745 """Add the model-specific monitoring data to the given array.""" 1746 super(FJSDH8DModel, self).addMonitoringData(data, fsType) 1747 1748 self._speedBrakeIndex = len(data) 1749 self._addDatarefWithIndexMember(data, 1750 "sim/flightmodel2/wing/speedbrake1_deg", 1751 (TYPE_FLOAT_ARRAY, 2)) 1752 self._addDatarefWithIndexMember(data, 1753 "sim/flightmodel2/wing/speedbrake2_deg", 1754 (TYPE_FLOAT_ARRAY, 2)) 1755 1756 1744 1757 def getAircraftState(self, aircraft, timestamp, data): 1745 1758 """Get the aircraft state. … … 1756 1769 # (maybe due to winds?) 1757 1770 state.n1 = [0 if n1<2.0 else n1 for n1 in state.n1] 1771 1772 state.spoilersExtension = \ 1773 sum(data[self._speedBrakeIndex] + data[self._speedBrakeIndex+1])/4 1758 1774 1759 1775 return state
Note:
See TracChangeset
for help on using the changeset viewer.