YASim: Difference between revisions

Jump to navigation Jump to search
1,810 bytes added ,  18 March 2017
no edit summary
No edit summary
Line 360: Line 360:
== YASim design notes ==
== YASim design notes ==
Andy Ross's original design notes for YASim can be found in [ftp://ftp.uni-duisburg.de/FlightGear/Docs/YASim-simnotes.pdf this PDF file]. These provide some useful background for how YASim works.
Andy Ross's original design notes for YASim can be found in [ftp://ftp.uni-duisburg.de/FlightGear/Docs/YASim-simnotes.pdf this PDF file]. These provide some useful background for how YASim works.
== New features in version 2017.2 ==
The following is under development and hopefully finds its way into FG version 2017.2
=== XML parser support for metric and imperial units ===
To make live easier for aircraft developers, the parser supports new additional attributes with a unit suffix, e.g. speed-kt for knots and speed-kmh for kilometer per hour.
* <code><aircraft {mass, mass-lbs, mass-kg}="12345" ></code>
* <code><approach {speed, speed-kt, speed-kmh}="123" ></code>
* <code><cruise {speed, speed-kt, speed-kmh}="123" ></code>
* <code><solve-weight {weight, weight-lbs, weight-kg}="123" ></code>
* <code><jet {mass, mass-lbs, mass-kg}="1234" ></code>
* <code><tank {capacity, capacity-lbs, capacity-kg}="12345" ></code>
* <code><ballast {mass, mass-lbs, mass-kg}="1234" ></code>
=== Export of YASim internals to property tree ===
Ever wondered what is going on inside yasim. Lots of information will be available in the property tree soon
in <code> /fdm/yasim/ </code>.
Some information is static and shows what yasim has compiled from your XML.
Other information is "run-time" like forces, speed, acceleration, c.g., mass you-name-it
(2DO: write details here)
=== aircraft developer helpers ===
The command line utility got some new options. For some strange reason, the -a parameter expects altitude in meters instead of ft. This is now visible in the usage message but left unchanged for compatibility.
<code>
Usage
  yasim <aircraft.xml> [-g [-a meters] [-s kts] [-approach | -cruise] ]
  yasim <aircraft.xml> [-d [-a meters] [-approach | -cruise] ]
  yasim <aircraft.xml> [-m]
  -g print lift/drag table: aoa, lift, drag, lift/drag
  -d print drag over TAS: kts, drag
    -a set altitude in meters!
    -s set speed in knots
  -m print mass distribution table: id, x, y, z, mass
</code>


== Related content ==
== Related content ==
252

edits

Navigation menu