Ref T259, Ref T243 return unit by reference

This commit is contained in:
Klaus Basan
2018-04-03 23:58:32 +02:00
parent bedfb5eb67
commit cf98c46231
3 changed files with 6 additions and 9 deletions

View File

@@ -257,6 +257,9 @@ namespace BlackMisc
//! Get altitude
const CAltitude &getAltitude() const { return m_position.geodeticHeight(); }
//! Get altitude unit
const PhysicalQuantities::CLengthUnit &getAltitudeUnit() const { return m_position.geodeticHeight().getUnit(); }
//! Get altitude under consideration of ground elevation and ground flag
//! \remark with dragToGround it will also compensate overflows, otherwise ony underflow
CAltitude getCorrectedAltitude(const PhysicalQuantities::CLength &centerOfGravity = PhysicalQuantities::CLength::null(), bool enableDragToGround = true, AltitudeCorrection *correctetion = nullptr) const;