mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 11:05:44 +08:00
Ref T786, test code for the CSLOT crash
Can be removed if the issue is solved.
This commit is contained in:
committed by
Mat Sutcliffe
parent
e63129267d
commit
387d47ebf8
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user