Changeset 902:91ae223c5ce8 for src


Ignore:
Timestamp:
05/06/18 08:29:02 (7 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
version_0.39_maint
Phase:
public
Message:

Adjusted the interpretation of the flaps setting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/xplane.py

    r893 r902  
    14341434
    14351435        flapsControl = data[self._monidx_flapsControl]
    1436         flapsIndex = int(flapsControl * (len(self._flapsNotches)-1))
     1436        flapsIndex = int(round(flapsControl * (len(self._flapsNotches)-1)))
    14371437        state.flapsSet = 0 if flapsIndex<1 else self._flapsNotches[flapsIndex]
    14381438
Note: See TracChangeset for help on using the changeset viewer.