Changeset 366:21db3f9653ce for src
- Timestamp:
- 12/15/12 16:50:01 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/acft.py
r360 r366 86 86 self._checkers.append(checks.AltimeterLogger()) 87 87 88 self._ilsLogger = checks.ILSLogger() 89 self._checkers.append(self._ilsLogger) 88 90 self._nav1Logger = checks.NAV1Logger() 89 91 self._checkers.append(self._nav1Logger) … … 455 457 logger = flight.logger 456 458 459 self._ilsLogger.forceLog(flight, logger, aircraftState) 457 460 self._nav1Logger.forceLog(flight, logger, aircraftState) 458 461 self._nav2Logger.forceLog(flight, logger, aircraftState) -
src/mlx/checks.py
r364 r366 517 517 #--------------------------------------------------------------------------------------- 518 518 519 class ILSLogger(NAVLogger): 520 """Logger for the ILS radio setting.""" 521 def __init__(self): 522 """Construct the logger.""" 523 super(ILSLogger, self).__init__("ils", "ILS") 524 525 #--------------------------------------------------------------------------------------- 526 519 527 class NAV1Logger(NAVLogger): 520 528 """Logger for the NAV1 radio setting.""" -
src/mlx/const.py
r335 r366 11 11 12 12 ## The version of the program 13 VERSION="0.1 1"13 VERSION="0.12" 14 14 15 15 #------------------------------------------------------------------------------- -
src/mlx/fs.py
r361 r366 229 229 (float) 230 230 - altimeter: the altimeter setting in hPa (float) 231 - ils: the frequency of the ILS radio in MHz (string). Can be None, if 232 the frequency is unreliable or meaningless. 233 - ols_obs: the OBS setting of the ILS radio in degrees (int). Can be None, if 234 the value is unreliable or meaningless. 235 - ils_manual: a boolean indicating if the ILS radio is on manual control 231 236 - nav1: the frequency of the NAV1 radio in MHz (string). Can be None, if 232 237 the frequency is unreliable or meaningless. -
src/mlx/fsuipc.py
r361 r366 1371 1371 state.altimeter = data[self._monidx_altimeter] / 16.0 1372 1372 1373 state.ils = None 1374 state.ils_obs = None 1375 state.ils_manual = False 1373 1376 state.nav1 = AircraftModel.convertFrequency(data[self._monidx_nav1]) 1374 1377 state.nav1_obs = data[self._monidx_nav1_obs] … … 1383 1386 AircraftModel.convertADFFrequency(data[self._monidx_adf2_main], 1384 1387 data[self._monidx_adf2_ext]) 1388 1385 1389 state.squawk = AircraftModel.convertBCD(data[self._monidx_squawk], 4) 1386 1390 … … 1792 1796 state.navLightsOn = None 1793 1797 state.landingLightsOn = None 1794 state.nav2_manual = aircraft.flight.stage!=const.STAGE_CRUISE 1795 self.autoXPDR = True 1798 1799 state.ils = state.nav1 1800 state.ils_obs = state.nav1_obs 1801 state.ils_manual = state.nav1_manual 1802 1803 state.nav1 = state.nav2 1804 state.nav1_obs = state.nav2_obs 1805 state.nav1_manual = aircraft.flight.stage!=const.STAGE_CRUISE 1806 1807 state.nav2 = None 1808 state.nav2_obs = None 1809 state.nav2_manual = False 1810 1811 state.autoXPDR = True 1796 1812 1797 1813 return state
Note:
See TracChangeset
for help on using the changeset viewer.