mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 18:55:38 +08:00
Formatting
This commit is contained in:
@@ -28,13 +28,13 @@
|
|||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
#include <QCommandLineOption>
|
#include <QCommandLineOption>
|
||||||
#include <QCommandLineParser>
|
#include <QCommandLineParser>
|
||||||
#include <QList>
|
|
||||||
#include <QNetworkAccessManager>
|
#include <QNetworkAccessManager>
|
||||||
#include <QObject>
|
|
||||||
#include <QReadWriteLock>
|
#include <QReadWriteLock>
|
||||||
#include <QScopedPointer>
|
|
||||||
#include <QString>
|
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
#include <QString>
|
||||||
|
#include <QList>
|
||||||
|
#include <QObject>
|
||||||
|
#include <QScopedPointer>
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
|
|||||||
@@ -268,13 +268,14 @@ namespace BlackSimPlugin
|
|||||||
HRESULT initDataDefinitionsWhenConnected();
|
HRESULT initDataDefinitionsWhenConnected();
|
||||||
|
|
||||||
//! Update remote aircraft
|
//! Update remote aircraft
|
||||||
//! \remark this is where the interpolated data are set
|
//! \remark this is where the interpolated data are send
|
||||||
void updateRemoteAircraft();
|
void updateRemoteAircraft();
|
||||||
|
|
||||||
//! Update remote aircraft parts (send to FSX)
|
//! Update remote aircraft parts (send to FSX)
|
||||||
bool updateRemoteAircraftParts(const CSimConnectObject &simObject, const BlackMisc::Simulation::CInterpolationResult &result);
|
bool updateRemoteAircraftParts(const CSimConnectObject &simObject, const BlackMisc::Simulation::CInterpolationResult &result);
|
||||||
|
|
||||||
//! Send parts to simulator
|
//! Send parts to simulator
|
||||||
|
//! \remark does not send if there is no change
|
||||||
bool sendRemoteAircraftPartsToSimulator(const CSimConnectObject &simObject, DataDefinitionRemoteAircraftPartsWithoutLights &ddRemoteAircraftParts, const BlackMisc::Aviation::CAircraftLights &lights);
|
bool sendRemoteAircraftPartsToSimulator(const CSimConnectObject &simObject, DataDefinitionRemoteAircraftPartsWithoutLights &ddRemoteAircraftParts, const BlackMisc::Aviation::CAircraftLights &lights);
|
||||||
|
|
||||||
//! Send lights to simulator (those which have to be toggled)
|
//! Send lights to simulator (those which have to be toggled)
|
||||||
@@ -390,7 +391,7 @@ namespace BlackSimPlugin
|
|||||||
bool m_simConnected = false; //!< Is simulator connected?
|
bool m_simConnected = false; //!< Is simulator connected?
|
||||||
bool m_simSimulating = false; //!< Simulator running?
|
bool m_simSimulating = false; //!< Simulator running?
|
||||||
bool m_useSbOffsets = true; //!< with SB offsets
|
bool m_useSbOffsets = true; //!< with SB offsets
|
||||||
bool m_traceSendId = false; //!< trace the send ids, meant for dedugging
|
bool m_traceSendId = false; //!< trace the send ids, meant for debugging
|
||||||
qint64 m_simulatingChangedTs = -1; //!< timestamp, when simulating changed (used to avoid jitter)
|
qint64 m_simulatingChangedTs = -1; //!< timestamp, when simulating changed (used to avoid jitter)
|
||||||
int m_syncDeferredCounter = 0; //!< Set when synchronized, used to wait some time
|
int m_syncDeferredCounter = 0; //!< Set when synchronized, used to wait some time
|
||||||
int m_skipCockpitUpdateCycles = 0; //!< skip some update cycles to allow changes in simulator cockpit to be set
|
int m_skipCockpitUpdateCycles = 0; //!< skip some update cycles to allow changes in simulator cockpit to be set
|
||||||
|
|||||||
@@ -294,7 +294,7 @@ namespace BlackSimPlugin
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break; // SIMCONNECT_RECV_ID_SIMOBJECT_DATA
|
||||||
}
|
}
|
||||||
case SIMCONNECT_RECV_ID_AIRPORT_LIST:
|
case SIMCONNECT_RECV_ID_AIRPORT_LIST:
|
||||||
{
|
{
|
||||||
@@ -322,7 +322,7 @@ namespace BlackSimPlugin
|
|||||||
simulatorFsxP3D->m_airportsInRangeFromSimulator.sortByDistanceToOwnAircraft();
|
simulatorFsxP3D->m_airportsInRangeFromSimulator.sortByDistanceToOwnAircraft();
|
||||||
simulatorFsxP3D->m_airportsInRangeFromSimulator.truncate(simulatorFsxP3D->maxAirportsInRange());
|
simulatorFsxP3D->m_airportsInRangeFromSimulator.truncate(simulatorFsxP3D->maxAirportsInRange());
|
||||||
}
|
}
|
||||||
break;
|
break; // SIMCONNECT_RECV_ID_AIRPORT_LIST
|
||||||
}
|
}
|
||||||
case SIMCONNECT_RECV_ID_CLIENT_DATA:
|
case SIMCONNECT_RECV_ID_CLIENT_DATA:
|
||||||
{
|
{
|
||||||
@@ -334,7 +334,7 @@ namespace BlackSimPlugin
|
|||||||
DataDefinitionClientAreaSb *sbData = (DataDefinitionClientAreaSb *) &clientData->dwData;
|
DataDefinitionClientAreaSb *sbData = (DataDefinitionClientAreaSb *) &clientData->dwData;
|
||||||
simulatorFsxP3D->updateOwnAircraftFromSimulator(*sbData);
|
simulatorFsxP3D->updateOwnAircraftFromSimulator(*sbData);
|
||||||
}
|
}
|
||||||
break;
|
break; // SIMCONNECT_RECV_ID_CLIENT_DATA
|
||||||
}
|
}
|
||||||
case SIMCONNECT_RECV_ID_EVENT_FILENAME:
|
case SIMCONNECT_RECV_ID_EVENT_FILENAME:
|
||||||
{
|
{
|
||||||
@@ -344,7 +344,7 @@ namespace BlackSimPlugin
|
|||||||
case SystemEventFlightLoaded: break;
|
case SystemEventFlightLoaded: break;
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
break;
|
break; // SIMCONNECT_RECV_ID_EVENT_FILENAME
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user