Ignore:
Timestamp:
04/17/12 18:00:09 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Added the collection of some further statistics and the finish page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/fsuipc.py

    r61 r89  
    746746    object describing the aircraft's state."""
    747747    monitoringData = [("paused", 0x0264, "H"),
     748                      ("latitude", 0x0560, "l"),
     749                      ("longitude", 0x0568, "l"),
    748750                      ("frozen", 0x3364, "H"),
    749751                      ("replay", 0x0628, "d"),
     
    872874       
    873875        state.timestamp = timestamp
     876
     877        state.latitude = data[self._monidx_latitude] * \
     878                         90.0 / 10001750.0 / 65536.0 / 65536.0
     879
     880        state.longitude = data[self._monidx_longitude] * \
     881                          360.0 / 65536.0 / 65536.0 / 65536.0 / 65536.0
     882        if state.longitude>180.0: state.longitude = 360.0 - state.longitude
    874883       
    875884        state.paused = data[self._monidx_paused]!=0 or \
Note: See TracChangeset for help on using the changeset viewer.