mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Ref T261, a global altitude offset can be enabled for testing
This commit is contained in:
committed by
Roland Winklmeier
parent
a2ab62a25a
commit
2d66fd470a
@@ -617,6 +617,14 @@ namespace BlackMisc
|
||||
return altCor;
|
||||
}
|
||||
|
||||
CAltitude CAircraftSituation::addAltitudeOffset(const CLength &offset)
|
||||
{
|
||||
if (offset.isNull()) { return this->getAltitude(); }
|
||||
const CAltitude alt = this->getAltitude().withOffset(offset);
|
||||
this->setAltitude(alt);
|
||||
return alt;
|
||||
}
|
||||
|
||||
void CAircraftSituation::setPressureAltitude(const CAltitude &altitude)
|
||||
{
|
||||
Q_ASSERT(altitude.getAltitudeType() == CAltitude::PressureAltitude);
|
||||
|
||||
Reference in New Issue
Block a user