Ignore:
Timestamp:
01/31/12 18:06:30 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

A bit of work on the constants

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/fsuipc.py

    r5 r6  
    254254                     pyuipc.fs_version)
    255255                Handler._callSafe(lambda:     
    256                                   self._connectionListener.connected(const.TYPE_MSFS9,
     256                                  self._connectionListener.connected(const.SIM_MSFS9,
    257257                                                                     description))
    258258                return True
     
    578578        state.onTheGround = data[self._monidx_onTheGround]!=0
    579579
    580         state.grossWeight = data[self._monidx_grossWeight] * util.LBSTOKG
     580        state.grossWeight = data[self._monidx_grossWeight] * const.LBSTOKG
    581581       
    582582        state.heading = data[self._monidx_heading]*360.0/65536.0/65536.0
     
    588588        state.ias = data[self._monidx_ias]/128.0
    589589        state.groundSpeed = data[self._monidx_groundSpeed]* 3600.0/65536.0/1852.0
    590         state.vs = data[self._monidx_vs]*60.0*3.28984/256.0
    591 
    592         state.altitude = data[self._monidx_altitude]*3.28084/65536.0/65536.0
     590        state.vs = data[self._monidx_vs]*60.0/const.FEETTOMETRES/256.0
     591
     592        state.altitude = data[self._monidx_altitude]/const.FEETTOMETRES/65536.0/65536.0
    593593
    594594        state.gLoad = data[self._monidx_gLoad] / 625.0
Note: See TracChangeset for help on using the changeset viewer.