-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
98 lines (98 loc) · 6.84 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html>
<head>
<title>Aeromatic for the JSBSim Open Source Flight Dynamics Model</title>
<meta charset="UTF-8"/>
<script src="https://code.jquery.com/jquery-2.2.1.min.js"></script>
<script src="aeromatic.js"></script>
<link rel="stylesheet" href="aeromatic.css"/>
</head>
<section>
<div id="header">
<h1>Aeromatic</h1>
<p></p>
</div>
<div id="instructions">
<p>This form can be used to create aircraft configuration files for use with the <a href="http://www.jsbsim.org">JSBSim</a> Flight Dynamics Model, the default FDM for the <a href="http://www.flightgear.org">FlightGear</a>, <a href="http://www.outerra.com">Outerra</a> and <a href="http://www.openeaagles.org">OpenEaagles</a> (etc.) flight simulators. The configuration file format produced using this utility is version 2.0, and is incompatable with older formats because of an extensive overhaul of JSBSim's XML code that occured in December of 2004.</p>
<p>You will need at least two files for a complete configuration, an aircraft file containing information on the aircraft's mass properties, propulsion, flight control, aerodynamic properties, etc., an engine file describing the engine(s), and in the case of a propeller-driven aircraft you will need a prop file. Aeromatic will generate plausible configuration files for your aircraft using some simplifying assumptions. Note that Aeromatic allows only one type of engine to be defined per aircraft. If you want to mix engine types you'll have to make the necessary changes by hand. Also note that all turbine, turboprop and rocket engines use the default "direct" thruster.</p>
<p><b>Note: After a configuration file has been generated and is displayed in your browser, you should select (via the menu) "View Source". This is needed because when viewing aircraft configuration files (for instance), some formatting is performed for web browser viewing, but if the file is saved in that format it will not work. The source for the page needs to be viewed, and the file saved with a '.xml' extension.</b></p>
<p>For more detailed instructions see the <a href="https://github.com/JSBSim-Team/aeromatic#how-to-use-aeromatic">How-to</a></p>
</div>
<div id="engine">
<h2>Step 1: The Engine configuration ...</h2>
<p>This step is not necessary if you are using an already existing engine configuration file. In any case you will have to edit the propulsion section of the aircraft configuration file to ensure that the engine name is the same as the name of the engine configuration file.</p>
<div id="name">
<label for="ac_enginename">Engine Name</label>
<input id="ac_enginename" value="my_engine"/>
</div>
<div>
<h3>Engine Type</h3>
<input name="ac_enginetype" type="radio" value="0" id="piston" checked>
<label for="piston">piston</label>
<input name="ac_enginetype" type="radio" value="1" id="turbine">
<label for="turbine">turbine</label>
<input name="ac_enginetype" type="radio" value="2" id="turboprop">
<label for="turboprop">turboprop</label>
<input name="ac_enginetype" type="radio" value="3" id="rocket">
<label for="rocket">rocket</label>
</div>
<div>
<label for="ac_enginepower">Engine Power of Thrust</label>(per engine, without afterburning)
<input id="ac_enginepower" value="1000.0" type="number">
<input name="ac_engineunits" type="radio" value="0" id="horsepower" checked>
<label for="horsepower">horsepower</label>
<input name="ac_engineunits" type="radio" value="1" id="kW">
<label for="kW">kW</label>
<input name="ac_engineunits" type="radio" value="2" id="pound">
<label for="pound">pound</label>
<input name="ac_engineunits" type="radio" value="3" id="newtons">
<label for="newtons">newtons</label>
</div>
<div>
<label for="ac_augmented">Augmentation (afterburning) installed ?</label>
<input id="ac_augmented" type="checkbox"/>
</div>
<div>
<label for="ac_injected">Water Injection installed ?</label>
<input id="ac_injected" type="checkbox"/>
</div>
<p>You are now ready to have Aeromatic generate your file. Aeromatic will create a file called <i>engine2.php</i>, which is your engine configuration file. You will need to save this file with a filename of the form <i>engine_name.xml</i></p>
<input type="button" value="Generate" id="engine_generate">
</div>
<div id="prop">
<h2>Step 2: The Prop configuration (if applicable)...</h2>
<div>
<label for="ac_enginepower2">Engine Power</label>(per engine)
<input id="ac_enginepower2" value="1000.0" type="number">
<input name="ac_engineunits2" type="radio" value="0" id="horsepower" checked>
<label for="horsepower">horsepower</label>
<input name="ac_engineunits2" type="radio" value="1" id="kW">
<label for="kW">kW</label>
</div>
<div>
<label for="ac_maxengrpm">Maximum Engine RPM</label>
<input id="ac_maxengrpm" value="2700.0" type="number">
</div>
<div>
<h3>Pitch</h3>
<input name="ac_prop_pitch" type="radio" value="0" id="fixed" checked>
<label for="fixed">fixed</label>
<input name="ac_prop_pitch" type="radio" value="1" id="variable">
<label for="variable">variable</label>
</div>
<div>
<label for="ac_diameter">Propeller Diameter</label>
<input id="ac_diameter" value="8" type="number">
<input name="ac_diaunits" type="radio" value="0" id="feet" checked>
<label for="feet">feet</label>
<input name="ac_diaunits" type="radio" value="1" id="inches">
<label for="inches">inches</label>
<input name="ac_diaunits" type="radio" value="2" id="meters">
<label for="meters">meters</label>
</div>
<p>You are now ready to have Aeromatic generate your file. Aeromatic will create a file called <i>prop2.php</i>, which is your propeller configuration file. You will need to save this file with a filename of the form <i>prop_name.xml</i>.</p>
<input type="button" value="Generate" id="prop_generate">
</div>
<a href="#" id="download-link"></a>
</section>
</html>