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

Added the handling of the anti-ice values and extended the simulator to handle them too (re #159)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/fsuipc.py

    r382 r390  
    11961196                      ("apAltitudeHold", 0x07d0, "d"),
    11971197                      ("apAltitude", 0x07d4, "u"),
    1198                       ("elevatorTrim", 0x2ea0, "f")]
     1198                      ("elevatorTrim", 0x2ea0, "f"),
     1199                      ("eng1DeIce", 0x08b2, "H"),
     1200                      ("eng2DeIce", 0x094a, "H"),
     1201                      ("propDeIce", 0x337c, "b"),
     1202                      ("structDeIce", 0x337d, "b")]
    11991203
    12001204    specialModels = []
     
    14091413
    14101414        state.elevatorTrim = data[self._monidx_elevatorTrim] * 180.0 / math.pi
     1415
     1416        state.antiIceOn = data[self._monidx_eng1DeIce]!=0 or \
     1417                          data[self._monidx_eng2DeIce]!=0 or \
     1418                          data[self._monidx_propDeIce]!=0 or \
     1419                          data[self._monidx_structDeIce]!=0
    14111420
    14121421        return state
Note: See TracChangeset for help on using the changeset viewer.