mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
refs #808, set internals object for FS9
(only basic code, needs to be completed)
This commit is contained in:
@@ -48,9 +48,13 @@ namespace BlackSimPlugin
|
||||
|
||||
dLow = dLow / 65536.0;
|
||||
if (dHigh > 0)
|
||||
{
|
||||
dHigh = dHigh + dLow;
|
||||
}
|
||||
else
|
||||
{
|
||||
dHigh = dHigh - dLow;
|
||||
}
|
||||
|
||||
CCoordinateGeodetic position;
|
||||
position.setLatitude(CLatitude(dHigh * 90.0 / 10001750.0, CAngleUnit::deg()));
|
||||
@@ -60,9 +64,13 @@ namespace BlackSimPlugin
|
||||
|
||||
dLow = dLow / 65536.0;
|
||||
if (dHigh > 0)
|
||||
{
|
||||
dHigh = dHigh + dLow;
|
||||
}
|
||||
else
|
||||
{
|
||||
dHigh = dHigh - dLow;
|
||||
}
|
||||
|
||||
position.setLongitude(CLongitude(dHigh * 360.0 / (65536.0 * 65536.0), CAngleUnit::deg()));
|
||||
|
||||
@@ -133,6 +141,7 @@ namespace BlackSimPlugin
|
||||
m_fsuipc->connect(); // connect FSUIPC too
|
||||
}
|
||||
reloadWeatherSettings();
|
||||
initInternalsObject();
|
||||
m_dispatchTimerId = startTimer(50);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user