Changeset 333:392d12995bca for src/mlx


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

#140: implemented the more concise logging

Location:
src/mlx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/acft.py

    r331 r333  
    251251                                    (aircraftState.grossWeight, self.mtow))
    252252                self.logger.message(aircraftState.timestamp,
    253                                     "Wind %03.0f degrees at %.0f knots" % \
     253                                    "Wind %03.0f/%.0f" % \
    254254                                    (aircraftState.windDirection,
    255255                                     aircraftState.windSpeed))
     
    304304        self.logger.message(self._aircraftState.timestamp, "The flare has begun")
    305305        self.logger.message(self._aircraftState.timestamp,
    306                             "Wind %03.0f degrees at %.0f knots" % \
     306                            "Wind %03.0f/%.0f" % \
    307307                            (windDirection, windSpeed))
    308308        self.logger.message(self._aircraftState.timestamp,
  • src/mlx/checks.py

    r332 r333  
    473473    def getMessage(logName, frequency, obs):
    474474        """Get the message for the given NAV radio setting."""
    475         message = u"%s frequency: %s MHz" % (logName, frequency)
     475        message = u"%s: %s" % (logName, frequency)
    476476        if obs is not None: message += u" (%d\u00b0)" % (obs,)
    477477        return message
     
    546546        """Construct the ADF logger."""
    547547        GenericStateChangeLogger.__init__(self, attr,
    548                                           "%s frequency: %%s kHz" % (logName,),
     548                                          "%s: %%s" % (logName,),
    549549                                          minDelay = 3.0, maxDelay = 10.0)
    550550        ForceableLoggerMixin.__init__(self)
     
    644644        """Get the message to log on a change."""
    645645        speed = state.groundSpeed if state.groundSpeed<80.0 else state.ias
    646         return "Flaps set to %.0f at %.0f %s" % \
     646        return "Flaps %.0f - %.0f %s" % \
    647647               (state.flapsSet, flight.speedFromKnots(speed),
    648648                flight.getEnglishSpeedUnit())
Note: See TracChangeset for help on using the changeset viewer.