Ignore:
Timestamp:
11/15/12 16:51:42 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

#138: added the reading of the AP data and its displaying in the monitor window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/fsuipc.py

    r334 r337  
    11891189                      ("visibility", 0x0e8a, "H"),
    11901190                      ("cog", 0x2ef8, "f"),
    1191                       ("xpdrC", 0x7b91, "b")]
     1191                      ("xpdrC", 0x7b91, "b"),
     1192                      ("apMaster", 0x07bc, "d"),
     1193                      ("apHeadingHold", 0x07c8, "d"),
     1194                      ("apHeading", 0x07cc, "H"),
     1195                      ("apAltitudeHold", 0x07d0, "d"),
     1196                      ("apAltitude", 0x07d4, "u")]
    11921197
    11931198    specialModels = []
     
    13871392
    13881393        state.xpdrC = data[self._monidx_xpdrC]==0
     1394
     1395        state.apMaster = data[self._monidx_apMaster]!=0
     1396        state.apHeadingHold = data[self._monidx_apHeadingHold]!=0
     1397        state.apHeading = data[self._monidx_apHeading] * 360.0 / 65536.0
     1398        state.apAltitudeHold = data[self._monidx_apAltitudeHold]!=0
     1399        state.apAltitude = data[self._monidx_apAltitude] / \
     1400                           const.FEETTOMETRES / 65536.0
    13891401
    13901402        return state
Note: See TracChangeset for help on using the changeset viewer.