1
0
Fork 0

YASim export config version used by aircraft to property tree.

Gives /fdm/yasim/config-version as integer (see enum in Version.hpp to decode).
This commit is contained in:
Henning Stahlke 2017-03-07 20:45:46 +01:00
parent 80462d23c5
commit 1e92c33a9e
2 changed files with 2 additions and 0 deletions

View file

@ -130,6 +130,7 @@ void FGFDM::init()
// alias to older name
fgGetNode("/yasim/gross-weight-lbs", true)->alias(_gross_weight_lbs);
_yasimN->getNode("config-version",true)->setIntValue(_airplane.getVersion());
_cg_x = _yasimN->getNode("cg-x-m", true);
_cg_y = _yasimN->getNode("cg-y-m", true);
_cg_z = _yasimN->getNode("cg-z-m", true);

View file

@ -16,6 +16,7 @@ public:
} YASIM_VERSION;
void setVersion( const char * version );
int getVersion() { return _version; }
bool isVersion( YASIM_VERSION version );
bool isVersionOrNewer( YASIM_VERSION version );