Changeset 1130:c250200b0d03 for src/mlx


Ignore:
Timestamp:
02/11/24 13:10:15 (9 months ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

The state of the reverser is taken from the lever, and idle is not reported as on for the Zibo Boeing 737-800 model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/xplane.py

    r1129 r1130  
    17991799                                        TYPE_FLOAT)
    18001800
     1801        self._reverserIndex = len(data)
     1802        self._addDatarefWithIndexMember(data,
     1803                                        "laminar/B738/flt_ctrls/reverse_lever1",
     1804                                        TYPE_FLOAT)
     1805        self._addDatarefWithIndexMember(data,
     1806                                        "laminar/B738/flt_ctrls/reverse_lever2",
     1807                                        TYPE_FLOAT)
     1808
    18011809
    18021810    def getAircraftState(self, aircraft, timestamp, data):
     
    18481856
    18491857        state.apAltitudeHold = data[self._apAltitudeIndex]==1
     1858        state.reverser = [data[self._reverserIndex+0]>=0.2,
     1859                          data[self._reverserIndex+1]>=0.2]
    18501860
    18511861        return state
Note: See TracChangeset for help on using the changeset viewer.