Changeset 89:ef4711a984fe for src/mlx/fsuipc.py
- Timestamp:
- 04/17/12 18:00:09 (12 years ago)
- Branch:
- default
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/fsuipc.py
r61 r89 746 746 object describing the aircraft's state.""" 747 747 monitoringData = [("paused", 0x0264, "H"), 748 ("latitude", 0x0560, "l"), 749 ("longitude", 0x0568, "l"), 748 750 ("frozen", 0x3364, "H"), 749 751 ("replay", 0x0628, "d"), … … 872 874 873 875 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 874 883 875 884 state.paused = data[self._monidx_paused]!=0 or \
Note:
See TracChangeset
for help on using the changeset viewer.