wiki:jsb

Version 4 (modified by Levi, 4 years ago) (diff)

--

JSBSim interface (jsb)

JSBSim interface does not contain any events or methods, but it handles setting and getting properties. These properties are routed to JSBSim and are specific for selected JSBSim configuration file. To find out which properties are available please check out the JSBSim Reference Manual (pdf) and the configuration files of your selected aircraft. A few selected native properties are listed below.

Propulsion

/engine[0] - First engine. Replace "0" with desired engine number.
/tank[0] - First fuel tank. Replace "0" with desired fuel tank number.


General

Property Description Units Usage
propulsion/engine[0]/thrust-lbs Thrust lbs jsb['propulsion/engine[0]/thrust-lbs']
propulsion/tank[0]/contents-lbs Fuel content in selected tank lbs jsb['propulsion/tank[0]/contents-lbs']
propulsion/total-fuel-lbs Total amount of fuel lbs jsb['propulsion/total-fuel-lbs']


Piston engine specific

Property Description Units Usage
propulsion/engine[0]/engine-rpm Engine revolutions RPM jsb['propulsion/engine[0]/engine-rpm']
propulsion/engine[0]/propeller-rpm Propeller revolutions RPM jsb['propulsion/engine[0]/propeller-rpm']
propulsion/engine[0]/power-hp Power HP jsb['propulsion/engine[0]/power-hp']
propulsion/engine[0]/map-pa Manifold Absolute Pressure pa jsb['propulsion/engine[0]/map-pa']
propulsion/engine[0]/map-inhg Manifold Absolute Pressure inHg jsb['propulsion/engine[0]/map-inhg']
propulsion/engine[0]/oil-pressure-psi Oil Pressure psi jsb['propulsion/engine[0]/oil-pressure-psi']
propulsion/engine[0]/oil-temperature-degF Oil Temperature ºF jsb['propulsion/engine[0]/oil-temperature-degF']
propulsion/engine[0]/egt-degF Exhaust Gas Temperature ºF jsb['propulsion/engine[0]/egt-degF']
propulsion/engine[0]/cht-degF Cylinder Head Temperature ºF jsb['propulsion/engine[0]/cht-degF']


Turbine & Turboprop engine specific

Property Description Units Usage
propulsion/engine[0]/n1 Nozzle 1 - jsb['propulsion/engine[0]/n1']
propulsion/engine[0]/n2 Nozzle 2 - jsb['propulsion/engine[0]/n2']


Velocities

Property Description Units Usage
velocities/vc-kts Airspeed kts jsb['velocities/vc-kts']
velocities/v-down-fps Vertical speed fps jsb['velocities/v-down-fps']


jsb interface is used in aircraft