Changeset 333:392d12995bca for src
- Timestamp:
- 11/13/12 16:36:44 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/acft.py
r331 r333 251 251 (aircraftState.grossWeight, self.mtow)) 252 252 self.logger.message(aircraftState.timestamp, 253 "Wind %03.0f degrees at %.0f knots" % \253 "Wind %03.0f/%.0f" % \ 254 254 (aircraftState.windDirection, 255 255 aircraftState.windSpeed)) … … 304 304 self.logger.message(self._aircraftState.timestamp, "The flare has begun") 305 305 self.logger.message(self._aircraftState.timestamp, 306 "Wind %03.0f degrees at %.0f knots" % \306 "Wind %03.0f/%.0f" % \ 307 307 (windDirection, windSpeed)) 308 308 self.logger.message(self._aircraftState.timestamp, -
src/mlx/checks.py
r332 r333 473 473 def getMessage(logName, frequency, obs): 474 474 """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) 476 476 if obs is not None: message += u" (%d\u00b0)" % (obs,) 477 477 return message … … 546 546 """Construct the ADF logger.""" 547 547 GenericStateChangeLogger.__init__(self, attr, 548 "%s frequency: %%s kHz" % (logName,),548 "%s: %%s" % (logName,), 549 549 minDelay = 3.0, maxDelay = 10.0) 550 550 ForceableLoggerMixin.__init__(self) … … 644 644 """Get the message to log on a change.""" 645 645 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" % \ 647 647 (state.flapsSet, flight.speedFromKnots(speed), 648 648 flight.getEnglishSpeedUnit())
Note:
See TracChangeset
for help on using the changeset viewer.