mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 02:35:38 +08:00
Ref T261, guess push back
This commit is contained in:
committed by
Roland Winklmeier
parent
6a2f76f4d7
commit
0b7706471c
@@ -310,11 +310,21 @@ namespace BlackMisc
|
|||||||
|
|
||||||
// Non VTOL aircraft have to move to be not on ground
|
// Non VTOL aircraft have to move to be not on ground
|
||||||
const bool vtol = model.isVtol();
|
const bool vtol = model.isVtol();
|
||||||
if (!vtol && !this->isMoving())
|
if (!vtol)
|
||||||
{
|
{
|
||||||
this->setOnGround(OnGround, CAircraftSituation::OnGroundByGuessing);
|
if (this->getGroundSpeed().isNegativeWithEpsilonConsidered())
|
||||||
if (details) { *details = QStringLiteral("No VTOL, not moving => on ground"); }
|
{
|
||||||
return true;
|
this->setOnGround(OnGround, CAircraftSituation::OnGroundByGuessing);
|
||||||
|
if (details) { *details = QStringLiteral("No VTOL, push back"); }
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!this->isMoving())
|
||||||
|
{
|
||||||
|
this->setOnGround(OnGround, CAircraftSituation::OnGroundByGuessing);
|
||||||
|
if (details) { *details = QStringLiteral("No VTOL, not moving => on ground"); }
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// not on ground is default
|
// not on ground is default
|
||||||
|
|||||||
Reference in New Issue
Block a user