Changeset 409:c580507072c1
- Timestamp:
- 12/28/12 12:23:53 (12 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/acft.py
r407 r409 289 289 "Takeoff weight: %.0f kg, MTOW: %.0f kg" % \ 290 290 (aircraftState.grossWeight, self.mtow)) 291 self._logQNH(aircraftState) 291 292 self.logger.message(aircraftState.timestamp, 292 293 "Wind %03.0f/%.0f" % \ … … 299 300 elif newStage==const.STAGE_DESCENT or newStage==const.STAGE_LANDING: 300 301 self._logRadios(aircraftState) 302 if newStage==const.STAGE_LANDING: 303 self._logQNH(aircraftState) 301 304 elif newStage==const.STAGE_TAXIAFTERLAND: 302 305 flight = self._flight … … 350 353 self.logger.message(self._aircraftState.timestamp, 351 354 "Visibility: %.0f metres" % (visibility,)) 352 self.logger.message(self._aircraftState.timestamp, 353 "Altimeter setting: %.0f hPa" % \ 354 (self._aircraftState.altimeter,)) 355 self._logQNH(self._aircraftState) 355 356 self._logVRef() 356 357 self._logLandingAntiIce(self._aircraftState) … … 569 570 self._adf2Logger.forceLog(flight, logger, aircraftState) 570 571 572 def _logQNH(self, aircraftState): 573 """Log the current QNH along with the altimeter setting.""" 574 self.logger.message(aircraftState.timestamp, 575 "QNH: %.2f hPa, altimeter: %.2f hPa" % \ 576 (aircraftState.qnh, aircraftState.altimeter)) 577 571 578 def _logNameAndModel(self, timestamp): 572 579 """Log the aircraft's name and model with taking the timestamp from the -
src/mlx/checks.py
r405 r409 465 465 logState = self._lastChangeState if \ 466 466 self._lastChangeState is not None else state 467 message = "Altimeter: %. 0f hPa at %.0f feet" % \467 message = "Altimeter: %.2f hPa at %.0f feet" % \ 468 468 (logState.altimeter, logState.altitude) 469 469 if not logState.altimeterReliable: -
test/test1.txt
r391 r409 1 set qnh=1004 2 set altimeter=1013 1 3 set n1_1=0 2 4 set n1_2=0 … … 24 26 set adf1=540 25 27 set xpdrC=0 28 set altimeter=1004 26 29 set lights=23 27 30 set gs=60 ias=60 … … 40 43 set nav1=111.5 41 44 set flapsControl=0 45 set altimeter=1013.25 42 46 set altitude=10000 43 47 set lights=19 … … 46 50 set vs=-200 47 51 set altitude=15000 52 set qnh=1007 48 53 set nav1=116.3 49 54 set altitude=10000 55 set altimeter=1007 50 56 set adf2=540 51 57 set ias=160 gs=170
Note:
See TracChangeset
for help on using the changeset viewer.