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

Added support for smoothed IAS and VS values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/monitor.py

    r89 r197  
    7272        table.attach(self._bank, 9, 10, 1, 2)
    7373
    74         (label, self._vs) = self._createLabeledEntry("VS:", 5)
     74        (label, self._vs) = self._createLabeledEntry("VS:", 13)
    7575        table.attach(label, 10, 11, 1, 2)
    7676        table.attach(self._vs, 11, 12, 1, 2)
    7777
    78         (label, self._ias) = self._createLabeledEntry("IAS:", 4)
     78        (label, self._ias) = self._createLabeledEntry("IAS:", 11)
    7979        table.attach(label, 0, 1, 2, 3)
    8080        table.attach(self._ias, 1, 2, 2, 3)
     
    259259            self._pitch.set_text("%.0f" % (aircraftState.pitch,))
    260260            self._bank.set_text("%.0f" % (aircraftState.bank,))
    261             self._vs.set_text("%.0f" % (aircraftState.vs,))
    262             self._ias.set_text("%.0f" % (aircraftState.ias,))
     261            self._vs.set_text("%.0f (%.0f)" % (aircraftState.vs,
     262                                               aircraftState.smoothedVS))
     263            self._ias.set_text("%.0f (%.0f)" % (aircraftState.ias,
     264                                                aircraftState.smoothedIAS))
    263265            self._mach.set_text("%.2f" % (aircraftState.mach,))
    264266            self._groundSpeed.set_text("%.0f" % (aircraftState.groundSpeed,))
Note: See TracChangeset for help on using the changeset viewer.