UNPKG

jsbsim.js

Version:

JSBSim flight dynamics model ported to JavaScript

58 lines (52 loc) 1.89 kB
<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="http://jsbsim.sf.net/JSBSimScript.xsl"?> <runscript xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://jsbsim.sf.net/JSBSimScript.xsd" name="ball test"> <description>Simplest of all tests</description> <use aircraft="ball" initialize="reset01"/> <run start="0.0" end="600" dt="0.008333"> <event name="Reef 1"> <description> Test of parachute reefing </description> <condition> position/h-agl-ft lt 5000 </condition> <set name="fcs/parachute_reef_pos_norm" value="0.2" action="FG_RAMP" tc="1.0"/> <notify> <property>simulation/sim-time-sec</property> </notify> </event> <event name="Reef 2"> <description> Test of parachute reefing </description> <condition> position/h-agl-ft lt 4000 </condition> <set name="fcs/parachute_reef_pos_norm" value="0.6" action="FG_RAMP" tc="1.0"/> <notify> <property>simulation/sim-time-sec</property> </notify> </event> <event name="Reef Final"> <description> Test of parachute reefing </description> <condition> position/h-agl-ft lt 2000 </condition> <set name="fcs/parachute_reef_pos_norm" value="1.0" action="FG_RAMP" tc="1.0"/> <set name="atmosphere/wind-north-fps" value="40"/> <set name="atmosphere/wind-east-fps" value="40"/> <notify> <property>simulation/sim-time-sec</property> </notify> </event> <event name="Terminate"> <description> End condition </description> <condition> gear/unit[0]/WOW eq 1 </condition> <set name="simulation/terminate" value="1.0"/> <notify> <property>simulation/sim-time-sec</property> </notify> </event> </run> </runscript>