Changeset 15:579098859ff8 for src/fs.py


Ignore:
Timestamp:
02/11/12 19:53:59 (13 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

We accept FSX too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/fs.py

    r11 r15  
    2525#-------------------------------------------------------------------------------
    2626
    27 def createSimulator(type, connectionListener, aircraft):
     27def createSimulator(type, connectionListener):
    2828    """Create a simulator instance for the given simulator type with the given
    2929    connection listener.
     
    3232    FIXME: add info
    3333    """
    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"
    3536    import fsuipc
    36     return fsuipc.Simulator(connectionListener, aircraft)
     37    return fsuipc.Simulator(connectionListener)
    3738
    3839#-------------------------------------------------------------------------------
     
    8384    - antiCollisionLightsOn: a boolean indicating if the anti-collision lights are on
    8485    - strobeLightsOn: a boolean indicating if the strobe lights are on
    85     - langingLightsOn: a boolean indicating if the landing lights are on
     86    - landingLightsOn: a boolean indicating if the landing lights are on
    8687    - pitotHeatOn: a boolean indicating if the pitot heat is on
    8788    - parking: a boolean indicating if the parking brake is set
     
    9495    - nav1: the frequency of the NAV1 radio in MHz (string)
    9596    - nav2: the frequency of the NAV1 radio in MHz (string)
    96     - squawk: the transponder code
     97    - squawk: the transponder code (string)
    9798    - windSpeed: the speed of the wind at the aircraft in knots (float)
    9899    - windDirection: the direction of the wind at the aircraft in degrees (float)
Note: See TracChangeset for help on using the changeset viewer.