mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
Ref T335, misc improvements in value objects
* allow to reset PBH for terrain probe * check for null altitude before converting * function isTerrainProbe for model/aircraft
This commit is contained in:
committed by
Roland Winklmeier
parent
916f2f6180
commit
651ead5b51
@@ -979,6 +979,15 @@ namespace BlackMisc
|
||||
m_pressureAltitude = altitude;
|
||||
}
|
||||
|
||||
void CAircraftSituation::setZeroPBH()
|
||||
{
|
||||
static const CAngle za(0, CAngleUnit::deg());
|
||||
static const CHeading zh(za, CHeading::True);
|
||||
this->setPitch(za);
|
||||
this->setBank(za);
|
||||
this->setHeading(zh);
|
||||
}
|
||||
|
||||
QString CAircraftSituation::getPBHInfo() const
|
||||
{
|
||||
static const QString pbh("P: %1 %2 B: %3 %4 H: %5 %6");
|
||||
|
||||
Reference in New Issue
Block a user