mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 23:35:33 +08:00
Ref T717, functions to zero "0" PBH and GS
This commit is contained in:
committed by
Mat Sutcliffe
parent
b408c8ffed
commit
dac696bf69
@@ -1025,6 +1025,12 @@ namespace BlackMisc
|
|||||||
this->setHeading(zh);
|
this->setHeading(zh);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CAircraftSituation::setZeroPBHandGs()
|
||||||
|
{
|
||||||
|
this->setZeroPBH();
|
||||||
|
this->setGroundSpeed(CSpeed(0, CSpeedUnit::defaultUnit()));
|
||||||
|
}
|
||||||
|
|
||||||
QString CAircraftSituation::getPBHInfo() const
|
QString CAircraftSituation::getPBHInfo() const
|
||||||
{
|
{
|
||||||
return QStringLiteral("P: %1 %2 B: %3 %4 H: %5 %6").arg(
|
return QStringLiteral("P: %1 %2 B: %3 %4 H: %5 %6").arg(
|
||||||
|
|||||||
@@ -415,6 +415,9 @@ namespace BlackMisc
|
|||||||
//! Set PBH values to 0 (zero)
|
//! Set PBH values to 0 (zero)
|
||||||
void setZeroPBH();
|
void setZeroPBH();
|
||||||
|
|
||||||
|
//! Set PBH and GS values to 0 (zero)
|
||||||
|
void setZeroPBHandGs();
|
||||||
|
|
||||||
//! Get PBH info (all together)
|
//! Get PBH info (all together)
|
||||||
QString getPBHInfo() const;
|
QString getPBHInfo() const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user