(submit a new question for the FAQ)
Questions:
Answers:
<top>"Back of the Envelope ", JSBSim Newsletter, Issue #2
"Aircraft Dynamics and Control" course material by Dr. Wayne Durham, Virginia Tech (an excellent resource)
<?xml version="1.0"?>
<runscript name="C172-01A takeoff run">
<use aircraft="c172x"/>
<use initialize="reset00"/>
<run dt= "0.0083333" end="200" start="0.0">
<when>
<parameter name="sim-time-sec" value="0.25" comparison="ge"/>
<parameter name="sim-time-sec" value="1.00" comparison="le"/>
<set name="fcs/throttle-cmd-norm" value="1.0" action="FG_RAMP" tc="0.05"/>
<set name="fcs/mixture-cmd-norm" value="0.87" action="FG_RAMP" tc="0.05"/>
<set name="propulsion/magneto_cmd" value="3"/>
<set name="propulsion/starter_cmd" value= "1"/>
</when>
...
</run>
</runscript>
The above
script causes the c172x.xml aircraft definition to be read, the reset00.xml
initialization file to be used, and a 200 second run made. The initial set of
commands tells the aircraft to take the steps to
start its engine.