YASim: Difference between revisions

Jump to navigation Jump to search
327 bytes added ,  19 March 2017
Update description of aircraft version
mNo edit summary
(Update description of aircraft version)
Line 15: Line 15:
<!-- To future editors:  The all lowercase headings are XML tags and should ''probably'' be left that way -->
<!-- To future editors:  The all lowercase headings are XML tags and should ''probably'' be left that way -->
=== airplane ===
=== airplane ===
The top-level element for the file. It contains only one attribute:  
The top-level element for the file. It contains the following attributes:  
* '''mass:''' The empty (no fuel) weight, in pounds. It does include the weight of the engine(s), so when you add the engine weight in its tag, it acts just like a ballast.
* '''mass:''' The empty (no fuel) weight, in pounds. It does include the weight of the engine(s), so when you add the engine weight in its tag, it acts just like a ballast.
* '''version:''' Several bugfixes to YASim were implemented in FlightGear 3.2 (see [[FlightGear Newsletter April 2014]]). This attribute tells the solver which version of YASim to use. Setting this to <code>YASIM_VERSION_ORIGINAL</code>, the old buggy calculations will be used. Setting this to <code>YASIM_VERSION_CURRENT</code> will use the new fixes. If this attribute i not given, the old version will be used.
* '''version:''' The version attribute is used to maintain compatibility when updating yasim (e.g. bugfixes). If this attribute i not given, the original version will be used. Several bugfixes to YASim were implemented in FlightGear 3.2 (see [[FlightGear Newsletter April 2014]]), some more are fixed in FlightGear 2017.2.  
Available versions are:
* <code>YASIM_VERSION_ORIGINAL</code> explicitly use the old buggy calculations (same as no version attribute at all)
* <code>YASIM_VERSION_32</code> enable bugfixes up to version 3.2
* <code>2017.2</code> enable bugfixes up to version 2017.2
* <code>YASIM_VERSION_CURRENT</code> use latest version compiled into the users FlightGear. This might be dangerous in case of future changes.


=== approach ===
=== approach ===
Line 363: Line 368:
== New features and bugfixes in version 2017.2 ==
== New features and bugfixes in version 2017.2 ==
The following is under development and hopefully finds its way into FG 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 ===
=== 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.
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.
Line 372: Line 378:
* <code><tank {capacity, capacity-lbs, capacity-kg}="12345" ></code>
* <code><tank {capacity, capacity-lbs, capacity-kg}="12345" ></code>
* <code><ballast {mass, mass-lbs, mass-kg}="1234" ></code>
* <code><ballast {mass, mass-lbs, mass-kg}="1234" ></code>


=== Export of YASim internals to property tree ===
=== Export of YASim internals to property tree ===
252

edits

Navigation menu