Ref T683, display ground elevation/CG in simulator live data view

This commit is contained in:
Klaus Basan
2019-06-13 17:19:22 +02:00
committed by Mat Sutcliffe
parent 718221b90e
commit bab053a0a2
2 changed files with 43 additions and 23 deletions

View File

@@ -386,9 +386,6 @@ namespace BlackMisc
//! Get model string
const QString &getModelString() const { return m_models[CurrentModel].getModelString(); }
//! Get CG from model
const PhysicalQuantities::CLength &getCG() const { return m_models[CurrentModel].getCG(); }
//! Set model string
void setModelString(const QString &modelString);
@@ -401,6 +398,12 @@ namespace BlackMisc
//! Set network model
void setNetworkModel(const CAircraftModel &model);
//! Get CG from model
const PhysicalQuantities::CLength &getCG() const { return m_models[CurrentModel].getCG(); }
//! Has CG from model?
bool hasCG() const { return !this->getCG().isNull(); }
//! Reset to the newtork model
bool resetToNetworkModel();