Changeset 15:579098859ff8 for src
Legend:
- Unmodified
- Added
- Removed
-
src/fs.py
r11 r15 25 25 #------------------------------------------------------------------------------- 26 26 27 def createSimulator(type, connectionListener , aircraft):27 def createSimulator(type, connectionListener): 28 28 """Create a simulator instance for the given simulator type with the given 29 29 connection listener. … … 32 32 FIXME: add info 33 33 """ 34 assert type==const.SIM_MSFS9, "Only MS Flight Simulator 2004 is supported" 34 assert type in [const.SIM_MSFS9, const.SIM_MSFSX], \ 35 "Only MS Flight Simulator 2004 and X are supported" 35 36 import fsuipc 36 return fsuipc.Simulator(connectionListener , aircraft)37 return fsuipc.Simulator(connectionListener) 37 38 38 39 #------------------------------------------------------------------------------- … … 83 84 - antiCollisionLightsOn: a boolean indicating if the anti-collision lights are on 84 85 - strobeLightsOn: a boolean indicating if the strobe lights are on 85 - lan gingLightsOn: a boolean indicating if the landing lights are on86 - landingLightsOn: a boolean indicating if the landing lights are on 86 87 - pitotHeatOn: a boolean indicating if the pitot heat is on 87 88 - parking: a boolean indicating if the parking brake is set … … 94 95 - nav1: the frequency of the NAV1 radio in MHz (string) 95 96 - nav2: the frequency of the NAV1 radio in MHz (string) 96 - squawk: the transponder code 97 - squawk: the transponder code (string) 97 98 - windSpeed: the speed of the wind at the aircraft in knots (float) 98 99 - windDirection: the direction of the wind at the aircraft in degrees (float)
Note:
See TracChangeset
for help on using the changeset viewer.