Changeset 83:92b601c6cbf2
- Timestamp:
- 04/15/12 11:03:15 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/pyuipc_sim.py
r61 r83 532 532 self.noseGear = value / 16383.0 533 533 elif offset==0x0d0c: # Lights 534 self.navLightsOn = ( lights&0x01)!=0535 self.antiCollisionLightsOn = ( lights&0x02)!=0536 self.landingLightsOn = ( lights&0x04)!=0537 self.strobeLightsOn = ( lights&0x10)!=0534 self.navLightsOn = (value&0x01)!=0 535 self.antiCollisionLightsOn = (value&0x02)!=0 536 self.landingLightsOn = (value&0x04)!=0 537 self.strobeLightsOn = (value&0x10)!=0 538 538 elif offset==0x0e90: # Wind speed 539 539 self.windSpeed = value … … 962 962 16383.0 / 100.0)) 963 963 self._valueHandlers["lights"] = (0x0d0c, "H", 964 lambda value: value,965 lambda word: int(word))964 lambda value: value, 965 lambda word: int(word)) 966 966 self._valueHandlers["pitot"] = (0x029c, "b", CLI.bool2str, CLI.str2bool) 967 967 self._valueHandlers["parking"] = (0x0bc8, "H", CLI.bool2str, CLI.str2bool)
Note:
See TracChangeset
for help on using the changeset viewer.