Changeset 5:90eade9afbcb for src/fs.py


Ignore:
Timestamp:
01/31/12 18:01:43 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added some further data to those queried and reworked a bit the way the model changes are handled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/fs.py

    r4 r5  
    2525#-------------------------------------------------------------------------------
    2626
    27 def createSimulator(type, connectionListener):
     27def createSimulator(type, connectionListener, aircraft):
    2828    """Create a simulator instance for the given simulator type with the given
    2929    connection listener.
     
    3434    assert type==const.TYPE_MSFS9, "Only MS Flight Simulator 2004 is supported"
    3535    import fsuipc
    36     return fsuipc.Simulator(connectionListener)
     36    return fsuipc.Simulator(connectionListener, aircraft)
    3737
    3838#-------------------------------------------------------------------------------
     
    6060    negative means bank right (float)
    6161    - ias: the indicated airspeed in knots (float)   
     62    - groundSpeed: the ground speed (float)
    6263    - vs: the vertical speed in feet/minutes (float)
    6364    - altitude: the altitude of the aircraft in feet (float)
     65    - gLoad: G-load (float)
    6466    - flapsSet: the selected degrees of the flaps (float)
    6567    - flaps: the actual degrees of the flaps (float)
     68    - fuelWeight[]: the fuel weights in the different tanks in kgs (array of
     69    floats of as many items as the number fuel tanks)
    6670    - n1[]: the N1 values of the turbine engines (array of floats
    6771    of as many items as the number of engines, present only for aircraft with
     
    8387    - spoilersExtension: the percentage of how much the spoiler is extended
    8488    (float)
     89    - altimeter: the altimeter setting in hPa (float)
     90    - nav1: the frequency of the NAV1 radio in MHz (string)
     91    - nav2: the frequency of the NAV1 radio in MHz (string)
    8592
    8693    FIXME: needed when taxiing only:
    8794    - zfw: the Zero Fuel Weight in klograms (float)
     95    - payload weight
    8896
    8997    FIXME: needed for touchdown only:
     
    9199    - ambientWindSpeed: the ambient wind speed around the aircraft in knowns (float)
    92100    - tdRate: the touchdown rate calculated by FSUIPC (float)
     101
     102    FIXME: needed rarely:
     103    - latitude, longitude
     104    - transporter
     105    - visibility
    93106    """
    94107   
Note: See TracChangeset for help on using the changeset viewer.