Changeset 394:d85637f7b989 for src/mlx
- Timestamp:
- 12/22/12 10:26:57 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/checks.py
r389 r394 465 465 logState = self._lastChangeState if \ 466 466 self._lastChangeState is not None else state 467 return "Altimeter: %.0f hPa at %.0f feet" % \ 468 (logState.altimeter, logState.altitude) 467 message = "Altimeter: %.0f hPa at %.0f feet" % \ 468 (logState.altimeter, logState.altitude) 469 if not logState.altimeterReliable: 470 message += " (u/r)" 471 return message 469 472 470 473 #--------------------------------------------------------------------------------------- -
src/mlx/fs.py
r390 r394 229 229 (float) 230 230 - altimeter: the altimeter setting in hPa (float) 231 - altimeterReliable: a boolean indicating if the altimeter setting is 232 reliable 231 233 - ils: the frequency of the ILS radio in MHz (string). Can be None, if 232 234 the frequency is unreliable or meaningless. -
src/mlx/fsuipc.py
r390 r394 1374 1374 1375 1375 state.altimeter = data[self._monidx_altimeter] / 16.0 1376 state.altimeterReliable = True 1376 1377 1377 1378 state.ils = None … … 1805 1806 state.navLightsOn = None 1806 1807 state.landingLightsOn = None 1808 1809 state.altimeterReliable = False 1807 1810 1808 1811 state.ils = state.nav1
Note:
See TracChangeset
for help on using the changeset viewer.