Changeset 5:90eade9afbcb for src/fs.py
- Timestamp:
- 01/31/12 18:01:43 (12 years ago)
- Branch:
- default
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/fs.py
r4 r5 25 25 #------------------------------------------------------------------------------- 26 26 27 def createSimulator(type, connectionListener ):27 def createSimulator(type, connectionListener, aircraft): 28 28 """Create a simulator instance for the given simulator type with the given 29 29 connection listener. … … 34 34 assert type==const.TYPE_MSFS9, "Only MS Flight Simulator 2004 is supported" 35 35 import fsuipc 36 return fsuipc.Simulator(connectionListener )36 return fsuipc.Simulator(connectionListener, aircraft) 37 37 38 38 #------------------------------------------------------------------------------- … … 60 60 negative means bank right (float) 61 61 - ias: the indicated airspeed in knots (float) 62 - groundSpeed: the ground speed (float) 62 63 - vs: the vertical speed in feet/minutes (float) 63 64 - altitude: the altitude of the aircraft in feet (float) 65 - gLoad: G-load (float) 64 66 - flapsSet: the selected degrees of the flaps (float) 65 67 - 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) 66 70 - n1[]: the N1 values of the turbine engines (array of floats 67 71 of as many items as the number of engines, present only for aircraft with … … 83 87 - spoilersExtension: the percentage of how much the spoiler is extended 84 88 (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) 85 92 86 93 FIXME: needed when taxiing only: 87 94 - zfw: the Zero Fuel Weight in klograms (float) 95 - payload weight 88 96 89 97 FIXME: needed for touchdown only: … … 91 99 - ambientWindSpeed: the ambient wind speed around the aircraft in knowns (float) 92 100 - tdRate: the touchdown rate calculated by FSUIPC (float) 101 102 FIXME: needed rarely: 103 - latitude, longitude 104 - transporter 105 - visibility 93 106 """ 94 107
Note:
See TracChangeset
for help on using the changeset viewer.