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

Implemented the new, more flexible way of storing the log during flight (#143)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/acft.py

    r344 r345  
    259259                                     aircraftState.windSpeed))
    260260                self._logRadios(aircraftState)
    261                 self._logV1R2()
     261                self._logV1R2(aircraftState)
    262262            elif newStage==const.STAGE_DESCENT or newStage==const.STAGE_LANDING:
    263263                self._logRadios(aircraftState)
     
    396396            return str(speed) + " " + self._flight.getEnglishSpeedUnit()
    397397
    398     def _logV1R2(self):
     398    def _logV1R2(self, state = None):
    399399        """Log the V1, Vr and V2 value either newly, or by updating the
    400400        corresponding line."""
     
    405405
    406406        if self._v1r2LineIndex is None:
     407            if state is None:
     408                state = self._aircraftState
    407409            self._v1r2LineIndex = \
    408                 self.logger.message(self._aircraftState.timestamp, message)
     410                self.logger.message(state.timestamp, message)
    409411        else:
    410412            self.logger.updateLine(self._v1r2LineIndex, message)
Note: See TracChangeset for help on using the changeset viewer.