Ref T681, preparations to use CG from DB

* renamed to "getSimulatorCG" ...
* pass simulator settings to sim.env.provider to decide what CG to use
* store DB CG and init it when aircraft is added
* style
This commit is contained in:
Klaus Basan
2019-06-10 19:54:35 +02:00
parent c89aa553d8
commit 86431a46c7
14 changed files with 196 additions and 64 deletions

View File

@@ -58,7 +58,7 @@ namespace BlackMisc
template<typename Derived>
CLength CInterpolator<Derived>::getAndFetchModelCG()
{
const CLength cg = this->getCG(m_callsign);
const CLength cg = this->getSimulatorCG(m_callsign); // simulation environment
m_model.setCG(cg);
m_model.setCallsign(m_callsign);
return cg;