252
edits
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 | 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]]). | * '''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 === |
edits