mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +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);
|
||||
}
|
||||
|
||||
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(
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user