wiki:jsb

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
inertia/weight-lbs Total aircraft weight lbs jsb['inertia/weight-lbs']
propulsion/total-fuel-lbs Total fuel weight lbs jsb['propulsion/total-fuel-lbs']
propulsion/tank[0]/contents-lbs Fuel content in selected tank lbs jsb['propulsion/tank[0]/contents-lbs']
propulsion/engine[0]/thrust-lbs Engine Thrust lbs jsb['propulsion/engine[0]/thrust-lbs']
propulsion/engine[0]/fuel-flow-rate-pps Engine Fuel Flow Rate lbs/s jsb['propulsion/engine[0]/fuel-flow-rate-pps']
propulsion/engine[0]/fuel-flow-rate-gph Engine Fuel Flow Rate gal/hr jsb['propulsion/engine[0]/fuel-flow-rate-gph']
propulsion/engine[0]/fuel-used-lbs Engine Total Fuel Used lbs jsb['propulsion/engine[0]/fuel-used-lbs']
propulsion/tat-r Total temperature, isentropic flow ºR jsb['propulsion/tat-r']
propulsion/tat-c Total temperature, isentropic flow ºC jsb['propulsion/tat-c']
propulsion/pt-lbs_sqft Total pressure lbs/sqft jsb['propulsion/pt-lbs_sqft']


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 Engine 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 engine specific

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


Turboprop engine specific

Property Description Units Usage
propulsion/engine[0]/n1 Nozzle 1 %RPM jsb['propulsion/engine[0]/n1']
propulsion/engine[0]/power-hp Horse Power HP jsb['propulsion/engine[0]/power-hp']
propulsion/engine[0]/itt-c Inter Turbine Temperature ºC jsb['propulsion/engine[0]/itt-c']
propulsion/engine[0]/engtemp-c Engine Temperature ºC jsb['propulsion/engine[0]/engtemp-c']
propulsion/engine[0]/ielu_intervent Integrated Electronic Limiter Unit true/false jsb['propulsion/engine[0]/ielu_intervent']


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']
velocities/p-rad_sec Roll speed rad/s jsb['velocities/p-rad_sec']
velocities/q-rad_sec Pitch speed rad/s jsb['velocities/q-rad_sec']
velocities/r-rad_sec Yaw speed rad/s jsb['velocities/r-rad_sec']


Attitude

Property Description Units Usage
attitude/pitch-rad Pitch rad jsb['attitude/pitch-rad']
attitude/roll-rad Roll rad jsb['attitude/roll-rad']
attitude/heading-true-rad True heading rad jsb['attitude/heading-true-rad']
aero/alpha-deg Angle of Attack deg jsb['aero/alpha-deg']
aero/beta-deg Sideslip deg jsb['aero/beta-deg']


Position

Property Description Units Usage
position/h-sl-ft Altitude above sea level ft jsb['position/h-sl-ft']
position/h-sl-meters Altitude above sea level m jsb['position/h-sl-meters']
position/h-agl-ft Altitude above ground level ft jsb['position/h-agl-ft']


Control Surfaces

Property Description Units Usage
fcs/left-aileron-pos-rad Left Aileron Position rad jsb['fcs/left-aileron-pos-rad']
fcs/right-aileron-pos-rad Right Aileron Position rad jsb['fcs/right-aileron-pos-rad']
fcs/elevator-pos-rad Elevator Position rad jsb['fcs/elevator-pos-rad']
fcs/rudder-pos-rad Rudder Position ft jsb['fcs/rudder-pos-rad']
fcs/flap-pos-rad Flap Position ft jsb['fcs/flap-pos-rad']


Landing Gear and Wheels

Property Description Units Usage
gear/unit[0]/steering-angle-deg Wheel Steering Angle rad jsb['gear/unit[0]/steering-angle-deg']
gear/gear-pos-norm Gear Command Normal 0-1 jsb['gear/gear-pos-norm']
gear/unit[0]/compression-ft Gear Compression ft jsb['gear/unit[0]/compression-ft']
gear/unit[0]/wheel-speed-fps Wheel Rolling Speed fps jsb['gear/unit[0]/wheel-speed-fps']


jsb interface is used in aircraft

Last modified 20 months ago Last modified on Apr 23, 2016, 9:16:20 PM