Changeset 429:37d6d2b8bb18


Ignore:
Timestamp:
02/17/13 11:33:28 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
xplane
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

The CoG is returned not as a percentage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/xplane.py

    r427 r429  
    17091709        state.antiCollisionLightsOn = \
    17101710          state.antiCollisionLightsOn or state.strobeLightsOn
    1711         state.cog = 100.0 * (state.cog / 0.0254 + 21.504) / 94.512
     1711        state.cog = (state.cog / 0.0254 + 21.504) / 94.512
    17121712
    17131713        return state
Note: See TracChangeset for help on using the changeset viewer.