mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15: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
|
||||
const bool vtol = model.isVtol();
|
||||
if (!vtol && !this->isMoving())
|
||||
if (!vtol)
|
||||
{
|
||||
this->setOnGround(OnGround, CAircraftSituation::OnGroundByGuessing);
|
||||
if (details) { *details = QStringLiteral("No VTOL, not moving => on ground"); }
|
||||
return true;
|
||||
if (this->getGroundSpeed().isNegativeWithEpsilonConsidered())
|
||||
{
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user