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

#140: implemented the more concise logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.