Changeset 902:91ae223c5ce8


Ignore:
Timestamp:
05/06/18 08:29:02 (6 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
version_0.39_maint
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, '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.