Ignore:
Timestamp:
11/17/12 13:08:43 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

#142: added the reading and logging of the elevator trim

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/fsuipc.py

    r339 r340  
    1111import sys
    1212import codecs
     13import math
    1314
    1415if os.name == "nt" and "FORCE_PYUIPC_SIM" not in os.environ:
     
    11941195                      ("apHeading", 0x07cc, "H"),
    11951196                      ("apAltitudeHold", 0x07d0, "d"),
    1196                       ("apAltitude", 0x07d4, "u")]
     1197                      ("apAltitude", 0x07d4, "u"),
     1198                      ("elevatorTrim", 0x2ea0, "f")]
    11971199
    11981200    specialModels = []
     
    13991401        state.apAltitude = data[self._monidx_apAltitude] / \
    14001402                           const.FEETTOMETRES / 65536.0
     1403
     1404
     1405        state.elevatorTrim = data[self._monidx_elevatorTrim] * 180.0 / math.pi
    14011406
    14021407        return state
Note: See TracChangeset for help on using the changeset viewer.