Jsbsim Tutorial Site

JSBSim has a built-in PID controller system. Let's add a simple altitude hold to your XML.

</run> </runscript>

The terminal will stream initialization data, loop through the physics iterations, and close smoothly upon hitting the script limit. Look inside your working directory for flight_data.csv . You can open this file in any spreadsheet tool or parse it with Python to chart the speed and altitude curves of your vehicle. 6. Advanced Customization: Aerodynamics Tables jsbsim tutorial

<?xml version="1.0"?> <runscript> <use aircraft="c172_tutorial" initialize="reset"/> JSBSim has a built-in PID controller system

<axis name="LIFT"> <function name="aero/coefficient/CL"> <description>Lift coefficient</description> <product> <property>aero/qbar-psf</property> <!-- Dynamic pressure --> <property>fcs/alpha-rad</property> <!-- Angle of attack --> <table> <independentVar>aero/alpha-rad</independentVar> <tableData> -0.2 -0.8 0.0 0.3 0.4 1.2 </tableData> </table> </product> </function> </axis> Look inside your working directory for flight_data

Extract the contents to a local directory (e.g., C:\JSBSim or /usr/local/jsbsim ). Verify the Installation

Once you have mastered the basics above, you can explore: