Ignore:
Timestamp:
02/06/14 16:47:52 (10 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added debug printout to see what is read from FS when the flaps settings change (re #225)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/fsuipc.py

    r545 r559  
    11781178                      ("flapsLeft", 0x0be0, "d"),
    11791179                      ("flapsRight", 0x0be4, "d"),
     1180                      ("flapsAxis", 0x3414, "H"),
     1181                      ("flapsIncrement", 0x3bfa, "H"),
    11801182                      ("lights", 0x0d0c, "H"),
    11811183                      ("pitot", 0x029c, "b"),
     
    12701272        self._flapsNotches = flapsNotches
    12711273        self._xpdrReliable = False
     1274        self._flapsSet = -1
    12721275
    12731276    @property
     
    13581361                flapsIndex += 1
    13591362        state.flapsSet = self._flapsNotches[flapsIndex]
     1363        if state.flapsSet != self._flapsSet:
     1364            print "flapsControl: %d, flapsLeft: %d, flapsRight: %d, flapsAxis: %d, flapsIncrement: %d, flapsSet: %d, numNotchesM1: %d" % \
     1365                  (flapsControl, data[self._monidx_flapsLeft],
     1366                   data[self._monidx_flapsRight], data[self._monidx_flapsAxis],
     1367                   data[self._monidx_flapsIncrement], state.flapsSet, numNotchesM1)
     1368            self._flapsSet = state.flapsSet
    13601369
    13611370        flapsLeft = data[self._monidx_flapsLeft]
Note: See TracChangeset for help on using the changeset viewer.