Jsbsim — Tutorial Fixed
<?xml version="1.0"?> <runscript> <use aircraft="c172" initialization="reset"/> <run start="0" end="60" dt="0.01"> <property value="20.0"> simulation/sim-time-sec </property> <!-- Start at 20 sec --> <property value="140.0"> velocities/vc-kts </property> <!-- 140 knots --> <property value="0.1"> fcs/elevator-cmd-norm </property> <!-- Pull back slightly --> <!-- Define a landing at 40 seconds --> <event name="Flaps Down" time="40"> <set value="1.0"> fcs/flaps-cmd-norm </set> </event>
Let's set up the environment and run a simple simulation. jsbsim tutorial
fdm = jsbsim.FGFDMExec('/path/to/root') fdm.load_model('c172') fdm['ic/h-sl-ft'] = 5000 # Initial altitude fdm.run_ic() use aircraft="c172" initialization="reset"/>
Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Price subject to change.
Subscription details below.*
Automatically renews, unless the renewal is cancelled. Subscription details below.*
Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Subscription details below.*
Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Savings compared to the renewal price. Subscription details below.*
Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Savings compared to 2 x annual renewal price of #cma_promo_renewal_price# / year. Subscription details below.*
Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Savings compared to the renewal price. Subscription details below.*
Special offer for the 1st #cma_period# until #cma_promo_end_date#. Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Subscription details below.*
Special offer for the first #cma_period# until #cma_promo_end_date#. Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Subscription details below.*
Special offer for the 1st #cma_period# until #cma_promo_end_date#. Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Subscription details below.*
Special offer until #cma_promo_end_date#: #cma_promo_price# — #cma_promo_saved_price# off the 1st #cma_period# price of #cma_promo_standard_price#. Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Savings compared to the renewal price. Subscription details below.*
Special offer until #cma_promo_end_date#: #cma_promo_price# — #cma_promo_saved_price# off the first 2 year price of #cma_promo_standard_price#. Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Savings compared to 2 x annual renewal price of #cma_promo_renewal_price# / year. Subscription details below.*
Special offer until #cma_promo_end_date#: #cma_promo_price# — #cma_promo_saved_price# off the 1st #cma_period# price of #cma_promo_standard_price#. Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Savings compared to the renewal price. Subscription details below.*
Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Savings compared to the renewal price. Subscription details below.*
Special offer for the 1st #cma_period# until #cma_promo_end_date#. Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Subscription details below.*
Special offer for the first #cma_period# until #cma_promo_end_date#. Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Subscription details below.*
Special offer for the 1st #cma_period# until #cma_promo_end_date#. Automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Subscription details below.*
Payment method required. When trial ends: paid subscription starts at #cma_promo_price# / 1st #cma_period#, and automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Offer details below.*
Payment method required. When trial ends: paid subscription starts at #cma_promo_price# / first #cma_period#, and automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Offer details below.*
Payment method required. When trial ends: paid subscription starts at #cma_promo_price# / 1st #cma_period#, and automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Offer details below.*
Payment method required. When trial ends: paid subscription starts at #cma_promo_price# / 1st #cma_period#, and automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Offer details below.*
Payment method required. When trial ends: paid subscription starts at #cma_promo_price# / first #cma_period#, and automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Offer details below.*
Payment method required. When trial ends: paid subscription starts at #cma_promo_price# / 1st #cma_period#, and automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Offer details below.*
Payment method required. Special offer for the 1st #cma_period# until #cma_promo_end_date#. When trial ends: paid subscription starts at #cma_promo_price# / 1st #cma_period# and automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Offer details below.*
Payment method required. Special offer for the first #cma_period# until #cma_promo_end_date#. When trial ends: paid subscription starts at #cma_promo_price# / first #cma_period# and automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Offer details below.*
Payment method required. Special offer for the 1st #cma_period# until #cma_promo_end_date#. When trial ends: paid subscription starts at #cma_promo_price# / 1st #cma_period# and automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Offer details below.*
Payment method required. Special offer until #cma_promo_end_date#. When trial ends: paid subscription starts at #cma_promo_price# / 1st #cma_period#, and automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Offer details below.*
Payment method required. Special offer until #cma_promo_end_date#. When trial ends: paid subscription starts at #cma_promo_price# / first #cma_period#, and automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Offer details below.*
Payment method required. Special offer until #cma_promo_end_date#. When trial ends: paid subscription starts at #cma_promo_price# / 1st #cma_period#, and automatically renews at #cma_promo_renewal_price# / #cma_renewal_period#, unless the renewal is cancelled. Offer details below.*
#cma_promo_price# — #cma_promo_saved_price# off the 1st #cma_period# price of #cma_promo_standard_price#. Then #cma_promo_renewal_price# / #cma_renewal_period#.
#cma_promo_price# — #cma_promo_saved_price# off the first 2 year price of #cma_promo_standard_price#. Then #cma_promo_renewal_price# / #cma_renewal_period#.
#cma_promo_price# — #cma_promo_saved_price# off the 1st #cma_period# price of #cma_promo_standard_price#. Then #cma_promo_renewal_price# / #cma_renewal_period#.