Ref T717, functions to zero "0" PBH and GS

This commit is contained in:
Klaus Basan
2019-09-15 15:44:00 +02:00
committed by Mat Sutcliffe
parent b408c8ffed
commit dac696bf69
2 changed files with 9 additions and 0 deletions

View File

@@ -1025,6 +1025,12 @@ namespace BlackMisc
this->setHeading(zh);
}
void CAircraftSituation::setZeroPBHandGs()
{
this->setZeroPBH();
this->setGroundSpeed(CSpeed(0, CSpeedUnit::defaultUnit()));
}
QString CAircraftSituation::getPBHInfo() const
{
return QStringLiteral("P: %1 %2 B: %3 %4 H: %5 %6").arg(

View File

@@ -415,6 +415,9 @@ namespace BlackMisc
//! Set PBH values to 0 (zero)
void setZeroPBH();
//! Set PBH and GS values to 0 (zero)
void setZeroPBHandGs();
//! Get PBH info (all together)
QString getPBHInfo() const;