mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 12:55:31 +08:00
Ref T709, style
This commit is contained in:
committed by
Mat Sutcliffe
parent
cd06c52cb7
commit
917d9bb3e7
@@ -54,14 +54,14 @@ namespace BlackSimPlugin
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
QStringList callsigns; //!< List of callsigns
|
QStringList callsigns; //!< List of callsigns
|
||||||
QList<double> latitudesDeg; //!< List of latitudes
|
QList<double> latitudesDeg; //!< List of latitudes
|
||||||
QList<double> longitudesDeg; //!< List of longitudes
|
QList<double> longitudesDeg; //!< List of longitudes
|
||||||
QList<double> altitudesFt; //!< List of altitudes
|
QList<double> altitudesFt; //!< List of altitudes
|
||||||
QList<double> pitchesDeg; //!< List of pitches
|
QList<double> pitchesDeg; //!< List of pitches
|
||||||
QList<double> rollsDeg; //!< List of rolls
|
QList<double> rollsDeg; //!< List of rolls
|
||||||
QList<double> headingsDeg; //!< List of headings
|
QList<double> headingsDeg; //!< List of headings
|
||||||
QList<bool> onGrounds; //!< List of onGrounds
|
QList<bool> onGrounds; //!< List of onGrounds
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Planes surfaces
|
//! Planes surfaces
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ namespace XSwiftBus
|
|||||||
{
|
{
|
||||||
if (strcmp(section, "planes") == 0 && strcmp(name, "max_full_count") == 0)
|
if (strcmp(section, "planes") == 0 && strcmp(name, "max_full_count") == 0)
|
||||||
{
|
{
|
||||||
return s_settingsProvider->getSettings().getMaxPlanes();
|
return CTraffic::s_settingsProvider->getSettings().getMaxPlanes(); // preferences
|
||||||
}
|
}
|
||||||
else if (strcmp(section, "debug") == 0 && strcmp(name, "allow_obj8_async_load") == 0)
|
else if (strcmp(section, "debug") == 0 && strcmp(name, "allow_obj8_async_load") == 0)
|
||||||
{
|
{
|
||||||
@@ -231,7 +231,7 @@ namespace XSwiftBus
|
|||||||
{
|
{
|
||||||
if (strcmp(section, "planes") == 0 && strcmp(name, "full_distance") == 0)
|
if (strcmp(section, "planes") == 0 && strcmp(name, "full_distance") == 0)
|
||||||
{
|
{
|
||||||
return static_cast<float>(s_settingsProvider->getSettings().getMaxDrawDistanceNM());
|
return static_cast<float>(CTraffic::s_settingsProvider->getSettings().getMaxDrawDistanceNM()); // preferences
|
||||||
}
|
}
|
||||||
return def;
|
return def;
|
||||||
}
|
}
|
||||||
@@ -906,7 +906,7 @@ namespace XSwiftBus
|
|||||||
// Now calculate where the camera should be positioned to be x
|
// Now calculate where the camera should be positioned to be x
|
||||||
// meters from the plane and pointing at the plane at the pitch and
|
// meters from the plane and pointing at the plane at the pitch and
|
||||||
// heading we wanted above.
|
// heading we wanted above.
|
||||||
const double distanceMeterM = static_cast<double>(std::max(10, s_settingsProvider->getSettings().getFollowAircraftDistanceM()));
|
const double distanceMeterM = static_cast<double>(std::max(10, traffic->getSettings().getFollowAircraftDistanceM()));
|
||||||
static const double PI = std::acos(-1);
|
static const double PI = std::acos(-1);
|
||||||
traffic->m_deltaCameraPosition.dx = -distanceMeterM * sin(traffic->m_deltaCameraPosition.heading * PI / 180.0);
|
traffic->m_deltaCameraPosition.dx = -distanceMeterM * sin(traffic->m_deltaCameraPosition.heading * PI / 180.0);
|
||||||
traffic->m_deltaCameraPosition.dz = distanceMeterM * cos(traffic->m_deltaCameraPosition.heading * PI / 180.0);
|
traffic->m_deltaCameraPosition.dz = distanceMeterM * cos(traffic->m_deltaCameraPosition.heading * PI / 180.0);
|
||||||
|
|||||||
Reference in New Issue
Block a user