Ref T786, test code for the CSLOT crash

Can be removed if the issue is solved.
This commit is contained in:
Klaus Basan
2020-04-21 15:38:22 +02:00
committed by Mat Sutcliffe
parent e63129267d
commit 387d47ebf8

View File

@@ -336,6 +336,7 @@ namespace BlackSimPlugin
{ {
m_lastWeatherPosition = currentPosition; m_lastWeatherPosition = currentPosition;
requestWeatherGrid(currentPosition, this->identifier()); requestWeatherGrid(currentPosition, this->identifier());
} }
} }
} }
@@ -584,6 +585,12 @@ namespace BlackSimPlugin
this->getOwnAircraftPosition(); this->getOwnAircraftPosition();
const CCoordinateGeodetic currentPosition = this->getOwnAircraftPosition(); const CCoordinateGeodetic currentPosition = this->getOwnAircraftPosition();
this->requestWeatherGrid(currentPosition, this->identifier()); this->requestWeatherGrid(currentPosition, this->identifier());
// crashing version
// kept for testing purposes
// CWeatherGrid g(currentPosition);
// this->requestWeatherGrid(g, { this, &CSimulatorEmulated::injectWeatherGrid});
return true; return true;
} }