swift
|
P3D Simulator Implementation. More...
Public Member Functions | |
CSimulatorP3D (const swift::misc::simulation::CSimulatorPluginInfo &info, swift::misc::simulation::IOwnAircraftProvider *ownAircraftProvider, swift::misc::simulation::IRemoteAircraftProvider *remoteAircraftProvider, swift::misc::network::IClientProvider *clientProvider, QObject *parent=nullptr) | |
Constructor, parameters as in. More... | |
ISimulator implementations | |
virtual bool | connectTo () |
Connect to simulator. More... | |
![]() | |
CSimulatorFsxCommon (const swift::misc::simulation::CSimulatorPluginInfo &info, swift::misc::simulation::IOwnAircraftProvider *ownAircraftProvider, swift::misc::simulation::IRemoteAircraftProvider *remoteAircraftProvider, swift::misc::network::IClientProvider *clientProvider, QObject *parent=nullptr) | |
Constructor, parameters as in. More... | |
virtual | ~CSimulatorFsxCommon () |
Destructor. | |
virtual bool | requestElevation (const swift::misc::geo::ICoordinateGeodetic &reference, const swift::misc::aviation::CCallsign &aircraftCallsign) |
Request elevation, there is no guarantee the requested elevation will be available in the provider. More... | |
bool | isTracingSendId () const |
Tracing right now? | |
bool | isTraceSendId () const |
Trace enable (can be auto enable also) | |
void | setTractingSendId (bool trace) |
Set tracing on/off. | |
bool | isUsingFsxTerrainProbe () const |
FSX Terrain probe. More... | |
void | setUsingFsxTerrainProbe (bool use) |
FSX terrain probe. | |
bool | isUsingSbOffsetValues () const |
Using the SB offsets? | |
void | setUsingSbOffsetValues (bool use) |
Use SB offset values. | |
int | receivedSBPackets () const |
Number of received SB4 packets. More... | |
bool | isAddingAsSimulatedObjectEnabled () const |
Allow adding as simulated object instead of non ATC. | |
void | setAddingAsSimulatedObjectEnabled (bool enabled) |
Allow adding as simulated object instead of non ATC. | |
virtual bool | disconnectFrom () |
Disconnect from simulator. More... | |
virtual bool | physicallyAddRemoteAircraft (const swift::misc::simulation::CSimulatedAircraft &newRemoteAircraft) |
Add new remote aircraft physically to the simulator. More... | |
virtual bool | physicallyRemoveRemoteAircraft (const swift::misc::aviation::CCallsign &callsign) |
Remove remote aircraft from simulator. More... | |
virtual int | physicallyRemoveAllRemoteAircraft () |
Remove all remote aircraft and their data via ISimulator::clearAllRemoteAircraftData. More... | |
virtual bool | updateOwnSimulatorCockpit (const swift::misc::simulation::CSimulatedAircraft &ownAircraft, const swift::misc::CIdentifier &originator) |
Update own aircraft cockpit (usually from context) More... | |
virtual bool | updateOwnSimulatorSelcal (const swift::misc::aviation::CSelcal &selcal, const swift::misc::CIdentifier &originator) |
Update own aircraft cockpit (usually from context) More... | |
virtual void | displayStatusMessage (const swift::misc::CStatusMessage &message) const |
Display a status message in the simulator. More... | |
virtual void | displayTextMessage (const swift::misc::network::CTextMessage &message) const |
Display a text message. More... | |
virtual bool | isPhysicallyRenderedAircraft (const swift::misc::aviation::CCallsign &callsign) const |
Is the aircraft rendered (displayed in simulator)? This shall only return true if the aircraft is really visible in the simulator. More... | |
virtual swift::misc::aviation::CCallsignSet | physicallyRenderedAircraft () const |
Physically rendered (displayed in simulator) This shall only return aircraft handled in the simulator. More... | |
virtual swift::misc::CStatusMessageList | debugVerifyStateAfterAllAircraftRemoved () const |
Debug function to check state after all aircraft have been removed. More... | |
virtual QString | getStatisticsSimulatorSpecific () const |
Allows to print out simulator specific statistics. More... | |
virtual void | resetAircraftStatistics () |
Reset the statistics. More... | |
virtual void | setFlightNetworkConnected (bool connected) |
Flight network has been connected. More... | |
virtual swift::misc::CStatusMessageList | getInterpolationMessages (const swift::misc::aviation::CCallsign &callsign) const |
Interpolation messages for callsign. More... | |
virtual bool | testSendSituationAndParts (const swift::misc::aviation::CCallsign &callsign, const swift::misc::aviation::CAircraftSituation &situation, const swift::misc::aviation::CAircraftParts &parts) |
Send situation/parts for testing. More... | |
![]() | |
virtual | ~CSimulatorFsCommon () |
Destructor. | |
virtual bool | isPaused () const |
Simulator paused? | |
![]() | |
virtual | ~CSimulatorPluginCommon () |
Destructor. | |
virtual void | unload () |
Driver will be unloaded. | |
![]() | |
~ISimulator () | |
Destructor. | |
virtual SimulatorStatus | getSimulatorStatus () const |
Combined status. | |
virtual const swift::misc::simulation::CSimulatorInternals & | getSimulatorInternals () const |
Get the simulator current internal state. | |
virtual bool | logicallyAddRemoteAircraft (const swift::misc::simulation::CSimulatedAircraft &remoteAircraft) |
Logically add a new aircraft. Depending on max. aircraft, enabled status etc. it will physically added to the simulator. More... | |
virtual bool | logicallyRemoveRemoteAircraft (const swift::misc::aviation::CCallsign &callsign) |
Logically remove remote aircraft from simulator. Depending on max. aircraft, enabled status etc. it will physically added to the simulator. | |
virtual bool | logicallyReAddRemoteAircraft (const swift::misc::aviation::CCallsign &callsign) |
Removes and adds again the aircraft. More... | |
int | removeAllRemoteAircraft () |
Public version to remove all aircraft. More... | |
virtual bool | changeRemoteAircraftModel (const swift::misc::simulation::CSimulatedAircraft &aircraft) |
Change remote aircraft per property. | |
virtual bool | changeRemoteAircraftEnabled (const swift::misc::simulation::CSimulatedAircraft &aircraft) |
Aircraft got enabled / disabled. | |
virtual bool | followAircraft (const swift::misc::aviation::CCallsign &callsign) |
Follow aircraft. | |
virtual void | recalculateAllAircraft () |
Recalculate all aircraft. | |
bool | isFlightNetworkConnected () const |
Is the flight network connected. | |
swift::misc::simulation::settings::CSpecializedSimulatorSettings | getSimulatorSettings () const |
Settings for current simulator. | |
void | setTestMode (bool test) |
Set test mode (driver can skip code parts etc., driver dependent) | |
bool | isTestMode () const |
Test mode? (driver can skip code parts etc., driver dependent) | |
double | getAverageFPS () const |
Average FPS (frames per second) | |
double | getSimTimeRatio () const |
Ratio of simulation time to real time, due to low FPS. | |
double | getTrackMilesShort () const |
Number of track miles over-reported, due to low FPS. | |
double | getMinutesLate () const |
Number of minutes behind schedule, due to low FPS. | |
void | setTestEnablePseudoElevation (bool enable) |
Enable pseudo elevations (testing) | |
void | setTestElevation (const swift::misc::aviation::CAltitude &altitude) |
Set an elevation for testing. | |
virtual bool | isShuttingDown () const |
Is overall (swift) application shutting down. More... | |
virtual bool | isShuttingDownOrDisconnected () const |
Shutting down or disconnected? | |
virtual bool | isShuttingDownDisconnectedOrNoAircraft () const |
Shutting down, disconnected, or no remote aircraft. | |
virtual bool | isShuttingDownDisconnectedOrNoAircraft (bool isProbe) const |
Shutting down, disconnected, or no remote aircraft. | |
bool | requestElevation (const swift::misc::aviation::CAircraftSituation &situation) |
Request elevation, there is no guarantee the requested elevation will be available in the provider. More... | |
virtual void | callbackReceivedRequestedElevation (const swift::misc::geo::CElevationPlane &plane, const swift::misc::aviation::CCallsign &callsign, bool isWater) |
A requested elevation has been received. More... | |
QObject * | asQObject () |
Return as QObject. More... | |
bool | isEmulatedDriver () const |
Is this the emulated driver just pretending to be P3D, FSX, or XPlane. | |
virtual bool | parseCommandLine (const QString &commandLine, const swift::misc::CIdentifier &originator) |
swift::misc::simulation::CInterpolationAndRenderingSetupPerCallsign | getInterpolationSetupConsolidated (const swift::misc::aviation::CCallsign &callsign, bool forceFullUpdate) const |
Consolidate setup with other data like from swift::misc::simulation::IRemoteAircraftProvider. More... | |
bool | setInterpolationSetupGlobal (const swift::misc::simulation::CInterpolationAndRenderingSetupGlobal &setup) |
Set the global setup. More... | |
const swift::misc::simulation::CAutoPublishData & | getPublishData () const |
Get the data for auto publishing. | |
int | getStatisticsPhysicallyAddedAircraft () const |
Counter added aircraft. | |
int | getStatisticsPhysicallyRemovedAircraft () const |
Counter removed aircraft. | |
qint64 | getStatisticsCurrentUpdateTimeMs () const |
Current update time in ms. | |
double | getStatisticsAverageUpdateTimeMs () const |
Average update time in ms. | |
qint64 | getStatisticsTotalUpdateTimeMs () const |
Total update time in ms. | |
qint64 | getStatisticsMaxUpdateTimeMs () const |
Max.update time in ms. | |
int | getStatisticsUpdateRuns () const |
Number of update runs. | |
qint64 | getStatisticsAircraftUpdatedRequestedDeltaMs () const |
Time between two update requests. | |
swift::misc::aviation::CAircraftSituationList | getLoopbackSituations (const swift::misc::aviation::CCallsign &callsign) const |
The traced loopback situations. | |
const swift::misc::simulation::CInterpolationLogger & | interpolationLogger () const |
Access to logger. | |
QString | latestLoggedDataFormatted (const swift::misc::aviation::CCallsign &cs) const |
The latest logged data formatted. More... | |
QString | updateAircraftLimitationInfo () const |
Info about update aircraft limitations. | |
void | resetLastSentValues () |
Reset the last sent values. | |
void | resetLastSentValues (const swift::misc::aviation::CCallsign &callsign) |
Reset the last sent values per callsign. | |
![]() | |
void | setOwnAircraftProvider (IOwnAircraftProvider *provider) |
Set the provider. | |
CSimulatedAircraft | getOwnAircraft () const |
Own aircraft. More... | |
aviation::CCallsign | getOwnCallsign () const |
Own aircraft's callsign. More... | |
aviation::CComSystem | getOwnComSystem (aviation::CComSystem::ComUnit unit) const |
Own aircraft COM unit. More... | |
aviation::CTransponder | getOwnTransponder () const |
Own aircraft XPDR. More... | |
swift::misc::geo::CCoordinateGeodetic | getOwnAircraftPosition () const |
Own aircraft's position. More... | |
aviation::CAircraftSituation | getOwnAircraftSituation () const |
Own aircraft's position. More... | |
aviation::CAircraftParts | getOwnAircraftParts () const |
Own aircraft's parts. More... | |
swift::misc::simulation::CAircraftModel | getOwnAircraftModel () const |
Own aircraft model. More... | |
swift::misc::physical_quantities::CLength | getDistanceToOwnAircraft (const swift::misc::geo::ICoordinateGeodetic &position) const |
Distance to own aircraft. More... | |
bool | updateCockpit (const swift::misc::simulation::CSimulatedAircraft &aircraft, const swift::misc::CIdentifier &originator) |
bool | updateCockpit (const aviation::CComSystem &com1, const aviation::CComSystem &com2, const aviation::CTransponder &transponder, const swift::misc::CIdentifier &originator) |
bool | updateActiveComFrequency (const swift::misc::physical_quantities::CFrequency &frequency, aviation::CComSystem::ComUnit comUnit, const swift::misc::CIdentifier &originator) |
Update cockpit, but only send signals when applicable. More... | |
bool | updateSelcal (const aviation::CSelcal &selcal, const swift::misc::CIdentifier &originator) |
Update cockpit, but only send signals when applicable. More... | |
bool | updateOwnCallsign (const aviation::CCallsign &callsign) |
Update aircraft's callsign. More... | |
bool | updateOwnIcaoCodes (const aviation::CAircraftIcaoCode &aircraftIcaoData, const aviation::CAirlineIcaoCode &airlineIcaoCode) |
Update ICAO data. More... | |
bool | updateOwnModel (const swift::misc::simulation::CAircraftModel &model) |
Update model. More... | |
bool | updateOwnSituation (const aviation::CAircraftSituation &situation) |
Update own situation. More... | |
bool | updateOwnParts (const aviation::CAircraftParts &parts) |
Update own parts. More... | |
bool | updateOwnCG (const physical_quantities::CLength &cg) |
Update own aircraft's CG (aka vertical offset) More... | |
![]() | |
virtual | ~CRemoteAircraftAware () |
Destructor. | |
CSimulatedAircraftList | getAircraftInRange () const |
All remote aircraft. More... | |
bool | isAircraftInRange (const aviation::CCallsign &callsign) const |
Is aircraft in range? More... | |
bool | isVtolAircraft (const aviation::CCallsign &callsign) const |
Is VTOL aircraft? More... | |
int | getAircraftInRangeCount () const |
Count remote aircraft. More... | |
aviation::CCallsignSet | getAircraftInRangeCallsigns () const |
Unique callsigns for aircraft in range. More... | |
CSimulatedAircraft | getAircraftInRangeForCallsign (const aviation::CCallsign &callsign) const |
Aircraft for callsign. More... | |
CAircraftModel | getAircraftInRangeModelForCallsign (const aviation::CCallsign &callsign) const |
Aircraft model for callsign. More... | |
CAirspaceAircraftSnapshot | getLatestAirspaceAircraftSnapshot () const |
Current snapshot. More... | |
aviation::CAircraftSituationList | remoteAircraftSituations (const aviation::CCallsign &callsign) const |
Rendered aircraft situations (per callsign, time history) More... | |
aviation::CAircraftSituation | remoteAircraftSituation (const aviation::CCallsign &callsign, int index) const |
Rendered aircraft situations (per callsign and index) More... | |
aviation::CAircraftSituationList | latestRemoteAircraftSituations () const |
Latest aircraft situation for all callsigns. More... | |
aviation::CAircraftSituationList | latestOnGroundProviderElevations () const |
Latest aircraft situation "on ground" having a provider elevation. More... | |
int | remoteAircraftSituationsCount (const aviation::CCallsign &callsign) const |
Number of remote aircraft situations for callsign. More... | |
aviation::CAircraftPartsList | remoteAircraftParts (const aviation::CCallsign &callsign) const |
All parts (per callsign, time history) More... | |
int | remoteAircraftPartsCount (const aviation::CCallsign &callsign) const |
All parts (per callsign, time history) More... | |
aviation::CAircraftSituationChangeList | remoteAircraftSituationChanges (const aviation::CCallsign &callsign) const |
Aircraft changes. More... | |
aviation::CCallsignSet | remoteAircraftSupportingParts () const |
Remote aircraft supporting parts. More... | |
bool | isRemoteAircraftSupportingParts (const aviation::CCallsign &callsign) const |
Is remote aircraft supporting parts? More... | |
int | getRemoteAircraftSupportingPartsCount () const |
Number of aircraft supporting parts. More... | |
bool | updateAircraftEnabled (const aviation::CCallsign &callsign, bool enabledForRendering) |
Enable/disable aircraft and follow up logic like sending signals. More... | |
bool | setAircraftEnabledFlag (const aviation::CCallsign &callsign, bool enabledForRendering) |
Just set enable/disable aircraft flag, no further logic. More... | |
bool | updateMultipleAircraftEnabled (const aviation::CCallsignSet &callsigns, bool enabledForRendering) |
Enable/disable aircraft. More... | |
bool | updateAircraftModel (const aviation::CCallsign &callsign, const CAircraftModel &model, const CIdentifier &originator) |
Change model. More... | |
bool | updateAircraftNetworkModel (const aviation::CCallsign &callsign, const CAircraftModel &model, const CIdentifier &originator) |
Change network model. More... | |
bool | updateAircraftRendered (const aviation::CCallsign &callsign, bool rendered) |
Set aircraft rendered. More... | |
bool | updateMultipleAircraftRendered (const aviation::CCallsignSet &callsigns, bool rendered) |
Set aircraft rendered. More... | |
int | updateAircraftGroundElevation (const aviation::CCallsign &callsign, const geo::CElevationPlane &elevation, aviation::CAircraftSituation::GndElevationInfo info, bool *updateAircraftGroundElevation) |
Update the ground elevation. More... | |
bool | updateCG (const aviation::CCallsign &callsign, const physical_quantities::CLength &cg) |
Update the CG. More... | |
aviation::CCallsignSet | updateCGForModel (const QString &modelString, const physical_quantities::CLength &cg) |
Update the CG for this model string. More... | |
bool | updateCGAndModelString (const aviation::CCallsign &callsign, const physical_quantities::CLength &cg, const QString &modelString) |
Update the CG and model string. More... | |
void | updateMarkAllAsNotRendered () |
Mark all as not rendered. More... | |
int | aircraftSituationsAdded () const |
Number of situations added. More... | |
int | aircraftPartsAdded () const |
Number of parts added. More... | |
qint64 | situationsLastModified (const aviation::CCallsign &callsign) const |
When last modified. More... | |
qint64 | partsLastModified (const aviation::CCallsign &callsign) const |
When last modified. More... | |
geo::CElevationPlane | averageElevationOfNonMovingAircraft (const aviation::CAircraftSituation &reference, const physical_quantities::CLength &range, int minValues=1) const |
Average elevation of aircraft in given range, which are NOT moving. More... | |
void | setRemoteAircraftProvider (IRemoteAircraftProvider *remoteAircraftProvider) |
Set remote aircraft provider. | |
IRemoteAircraftProvider * | getRemoteAircraftProvider () const |
Get the aircraft provider. | |
![]() | |
CClientList | getClients () const |
clientprovider More... | |
void | setClients (const CClientList &clients) |
Set other clients. More... | |
void | clearClients () |
Set other clients. More... | |
swift::misc::network::CClientList | getClientsForCallsigns (const aviation::CCallsignSet &callsigns) const |
Returns a list of other clients corresponding to the given callsigns. More... | |
swift::misc::network::CClient | getClientOrDefaultForCallsign (const aviation::CCallsign &callsign) const |
Other client for the given callsigns. More... | |
bool | hasClientInfo (const aviation::CCallsign &callsign) const |
Client info for given callsign? More... | |
bool | addNewClient (const CClient &client) |
Add a new client, if existing nothing will be added. More... | |
int | updateOrAddClient (const aviation::CCallsign &callsign, const CPropertyIndexVariantMap &vm, bool skipEqualValues) |
Update or add a client. More... | |
int | removeClient (const aviation::CCallsign &callsign) |
Remove client. More... | |
bool | autoAdjustCientGndCapability (const aviation::CAircraftSituation &situation) |
Adjust gnd.flag capability from situation. More... | |
bool | addClientGndCapability (const aviation::CCallsign &callsign) |
Add gnd.flag capability. More... | |
void | markAsSwiftClient (const aviation::CCallsign &callsign) |
Mark as other swift client. More... | |
void | setClientProvider (CClientProvider *provider) |
Provider. | |
![]() | |
geo::CCoordinateGeodeticList | getAllElevationCoordinates () const |
All remembered coordinates. More... | |
geo::CCoordinateGeodeticList | getElevationCoordinatesOnGround () const |
All remembered coordinates. More... | |
geo::CElevationPlane | averageElevationOfOnGroundAircraft (const aviation::CAircraftSituation &reference, const physical_quantities::CLength &range, int minValues, int sufficientValues) const |
Average elevation of "on ground" cached values. More... | |
aviation::CAltitude | highestElevation () const |
Highest elevation. More... | |
geo::CElevationPlane | findClosestElevationWithinRange (const geo::ICoordinateGeodetic &reference, const physical_quantities::CLength &range) const |
Find closest elevation (or return NULL) More... | |
geo::CElevationPlane | findClosestElevationWithinRangeOrRequest (const geo::ICoordinateGeodetic &reference, const physical_quantities::CLength &range, const aviation::CCallsign &callsign) |
Find closest elevation or request elevation. More... | |
bool | requestElevationBySituation (const swift::misc::aviation::CAircraftSituation &situation) |
Request elevation, there is no guarantee the requested elevation will be available in the provider. More... | |
QPair< int, int > | getElevationsFoundMissed () const |
Elevations found/missed statistics. More... | |
QPair< qint64, qint64 > | getElevationRequestTimes () const |
The elevation request times. More... | |
QString | getElevationsFoundMissedInfo () const |
Elevations found/missed statistics info as string. More... | |
QString | getElevationRequestTimesInfo () const |
Elevation request times. More... | |
CSimulatorPluginInfo | getSimulatorPluginInfo () const |
Get the represented plugin. More... | |
CSimulatorInfo | getSimulatorInfo () const |
Get the represented simulator. More... | |
QString | getSimulatorNameAndVersion () const |
Version and simulator details info. More... | |
CAircraftModel | getDefaultModel () const |
Default model. More... | |
aviation::CLengthPerCallsign | getSimulatorCGsPerCallsign () const |
All CGs per callsign. More... | |
QHash< QString, physical_quantities::CLength > | getSimulatorCGsPerModelString () const |
All CGs per modelstring. More... | |
physical_quantities::CLength | getSimulatorCG (const aviation::CCallsign &callsign) const |
Get CG per callsign, NULL if not found. More... | |
physical_quantities::CLength | getSimulatorOrDbCG (const aviation::CCallsign &callsign, const physical_quantities::CLength &dbCG) const |
Get CG per callsign, NULL if not found. More... | |
physical_quantities::CLength | getSimulatorCGPerModelString (const QString &modelString) const |
Get CG per model string, NULL if not found. More... | |
physical_quantities::CLength | getSimulatorOrDbCGPerModelString (const QString &modelString, const physical_quantities::CLength &dbCG) const |
Get CG per model string, NULL if not found. More... | |
physical_quantities::CLength | overriddenCGorDefault (const physical_quantities::CLength &defaultCG, const QString &modelString) const |
Return the overridden CG value or the given default CG value. More... | |
bool | hasSimulatorCG (const aviation::CCallsign &callsign) const |
Has a CG? More... | |
bool | hasSameSimulatorCG (const physical_quantities::CLength &cg, const aviation::CCallsign &callsign) const |
Has the same CG? More... | |
int | setMaxElevationsRemembered (int max) |
Set number of elevations kept. More... | |
int | getMaxElevationsRemembered () const |
Get number of max. number of elevations. More... | |
void | resetSimulationEnvironmentStatistics () |
Reset statistics. More... | |
bool | cleanElevationValues (const aviation::CAircraftSituation &reference, const physical_quantities::CLength &keptRange, bool forced=false) |
Remove cached elevations outside range, "forced" cleans always, otherwise only if max.values are reached. More... | |
int | removeElevationValues (const aviation::CAircraftSituation &reference, const physical_quantities::CLength &removeRange) |
Remove cached elevations inside range,. More... | |
![]() | |
virtual | ~IProvider () |
Dtor. | |
IProvider (const IProvider &)=delete | |
Copy constructor. | |
IProvider & | operator= (const IProvider &)=delete |
Copy assignment operator. | |
![]() | |
CInterpolationAndRenderingSetupPerCallsign | getInterpolationSetupPerCallsignOrDefault (const aviation::CCallsign &callsign) const |
Get the setup for callsign, if not existing the global setup. More... | |
CInterpolationSetupList | getInterpolationSetupsPerCallsign () const |
Get all setups per callsign. More... | |
bool | hasSetupsPerCallsign () const |
Get all setups per callsign. More... | |
bool | setInterpolationSetupsPerCallsign (const CInterpolationSetupList &setups, bool ignoreSameAsGlobal=true) |
Set all setups per callsign. More... | |
virtual CInterpolationAndRenderingSetupGlobal | getInterpolationSetupGlobal () const |
The global setup. More... | |
aviation::CCallsignSet | getLogCallsigns () const |
All callsigns marked to be logged. More... | |
bool | isLogCallsign (const aviation::CCallsign &callsign) const |
Is callsign marked for logging. More... | |
bool | setInterpolationMode (const QString &modeAsString, const aviation::CCallsign &callsign) |
Set mode as string. More... | |
bool | setLogInterpolation (bool log, const aviation::CCallsign &callsign) |
Enable/disable logging. More... | |
![]() | |
const CIdentifier & | identifier () const |
Get identifier. | |
void | setIdentifier (const CIdentifier &identifier) |
Set identifier, allows to set an external identifier. | |
bool | isMyIdentifier (const CIdentifier &otherIdentifier) const |
My identifier? | |
Protected Member Functions | |
virtual HRESULT | initEventsP3D () |
Specific P3D events. More... | |
![]() | |
virtual void | timerEvent (QTimerEvent *event) |
Timer event (our SimConnect event loop), runs dispatch. More... | |
virtual bool | parseDetails (const swift::misc::CSimpleCommandParser &parser) |
bool | triggerAutoTraceSendId (qint64 traceTimeMs=AutoTraceOffsetMs) |
Trigger tracing ids for some while. More... | |
swift::misc::aviation::CCallsign | getCallsignForPendingProbeRequests (DWORD requestId, bool remove) |
Callsign for pending request. | |
SIMCONNECT_DATA_REQUEST_ID | obtainRequestIdForSimObjAircraft () |
Get new request id, overflow safe. | |
SIMCONNECT_DATA_REQUEST_ID | obtainRequestIdForSimObjTerrainProbe () |
Get new request id, overflow safe. | |
virtual bool | releaseAIControl (const CSimConnectObject &simObject, SIMCONNECT_DATA_REQUEST_ID requestId) |
Release AI control. More... | |
bool | isValidSimObjectNotPendingRemoved (const CSimConnectObject &simObject) const |
Valid CSimConnectObject which is NOT pendig removed. | |
CSimConnectObject | getSimObjectForTrace (const TraceFsxSendId &trace) const |
CSimConnectObject for trace. | |
bool | removeSimObjectForTrace (const TraceFsxSendId &trace) |
Remove the CSimConnectObject linked in the trace. | |
virtual void | removeCamera (CSimConnectObject &simObject) |
Remove camera if any. | |
virtual void | removeObserver (CSimConnectObject &simObject) |
Remove observer if any. | |
HRESULT | logAndTraceSendId (HRESULT hr, const QString &warningMsg, const QString &functionName, const QString &functionDetails={}) |
Trace if required, log errors. | |
HRESULT | logAndTraceSendId (HRESULT hr, const CSimConnectObject &simObject, const QString &warningMsg, const QString &functionName, const QString &functionDetails={}) |
Trace if required, log errors. | |
HRESULT | logAndTraceSendId (HRESULT hr, bool traceSendId, const CSimConnectObject &simObject, const QString &warningMsg, const QString &functionName, const QString &functionDetails={}) |
Trace if required, log errors. | |
virtual bool | isConnected () const |
Are we connected to the simulator? | |
virtual bool | isSimulating () const |
Simulator running? | |
virtual void | reset () |
Full reset of state. More... | |
virtual void | initSimulatorInternals () |
Init the internal objects. | |
virtual void | clearAllRemoteAircraftData () |
Clear all aircraft related data, but do not physically remove the aircraft. | |
virtual void | onOwnModelChanged (const swift::misc::simulation::CAircraftModel &newModel) |
Own model has been changed. | |
![]() | |
CSimulatorFsCommon (const swift::misc::simulation::CSimulatorPluginInfo &info, swift::misc::simulation::IOwnAircraftProvider *ownAircraftProvider, swift::misc::simulation::IRemoteAircraftProvider *renderedAircraftProvider, swift::misc::network::IClientProvider *clientProvider, QObject *parent=nullptr) | |
Constructor. | |
![]() | |
CSimulatorPluginCommon (const swift::misc::simulation::CSimulatorPluginInfo &info, swift::misc::simulation::IOwnAircraftProvider *ownAircraftProvider, swift::misc::simulation::IRemoteAircraftProvider *renderedAircraftProvider, swift::misc::network::IClientProvider *clientProvider, QObject *parent=nullptr) | |
Constructor. | |
![]() | |
ISimulator (const swift::misc::simulation::CSimulatorPluginInfo &pluginInfo, swift::misc::simulation::IOwnAircraftProvider *ownAircraftProvider, swift::misc::simulation::IRemoteAircraftProvider *remoteAircraftProvider, swift::misc::network::IClientProvider *clientProvider, QObject *parent=nullptr) | |
Constructor with all the providers. | |
virtual void | onRecalculatedRenderedAircraft (const swift::misc::simulation::CAirspaceAircraftSnapshot &snapshot) |
Recalculate the rendered aircraft, this happens when restrictions are applied (max. aircraft, range) | |
virtual int | physicallyRemoveMultipleRemoteAircraft (const swift::misc::aviation::CCallsignSet &callsigns) |
Remove remote aircraft from simulator. | |
void | rememberElevationAndSimulatorCG (const swift::misc::aviation::CCallsign &callsign, const swift::misc::simulation::CAircraftModel &model, bool likelyOnGroundElevation, const swift::misc::geo::CElevationPlane &elevation, const swift::misc::physical_quantities::CLength &simulatorCG) |
Set elevation and CG in the providers and for auto publishing. More... | |
void | emitSimulatorCombinedStatus (SimulatorStatus oldStatus=Unspecified) |
Emit the combined status. More... | |
void | emitInterpolationSetupChanged () |
Pseudo signal, override to emit signal. More... | |
void | debugLogMessage (const QString &msg) |
Display a debug log message based on swift::misc::simulation::CInterpolationAndRenderingSetup remark shows log messages of functions calls. | |
void | debugLogMessage (const QString &funcInfo, const QString &msg) |
Display a debug log message based on swift::misc::simulation::CInterpolationAndRenderingSetup remark shows log messages of functions calls. | |
bool | showDebugLogMessage () const |
Show log messages? | |
void | resetAircraftFromProvider (const swift::misc::aviation::CCallsign &callsign) |
Restore aircraft from the provider data. | |
virtual void | clearData (const swift::misc::aviation::CCallsign &callsign) |
Clear the related data as statistics etc. | |
bool | addLoopbackSituation (const swift::misc::aviation::CAircraftSituation &situation) |
Add a loopback situation if logging is enabled. | |
bool | addLoopbackSituation (const swift::misc::aviation::CCallsign &callsign, const swift::misc::geo::CElevationPlane &elevationPlane, const swift::misc::physical_quantities::CLength &cg) |
Add a loopback situation if logging is enabled. | |
bool | isUpdateAllRemoteAircraft (qint64 currentTimestamp=-1) const |
Do update all remote aircraft? | |
void | setUpdateAllRemoteAircraft (qint64 currentTimestamp=-1, qint64 forMs=-1) |
Update all aircraft for ms. | |
void | resetUpdateAllRemoteAircraft () |
Reset. | |
void | safeKillTimer () |
Kill timer if id is valid. | |
bool | isEqualLastSent (const swift::misc::aviation::CAircraftSituation &compare) const |
Equal to last sent situation. | |
bool | isEqualLastSent (const swift::misc::aviation::CAircraftParts &compare, const swift::misc::aviation::CCallsign &callsign) const |
Equal to last sent situation. | |
void | rememberLastSent (const swift::misc::aviation::CAircraftSituation &sent) |
Remember as last sent. | |
void | rememberLastSent (const swift::misc::aviation::CAircraftParts &sent, const swift::misc::aviation::CCallsign &callsign) |
Remember as last sent. | |
swift::misc::aviation::CAircraftSituationList | getLastSentCanLikelySkipNearGroundInterpolation () const |
Last sent situations. | |
bool | isUpdateAircraftLimited (qint64 timestamp=-1) |
Limit reached (max number of updates by token bucket if enabled) | |
bool | isUpdateAircraftLimitedWithStats (qint64 startTime=-1) |
Limited as ISimulator::isUpdateAircraftLimited plus updating statistics. | |
bool | limitToUpdatesPerSecond (int numberPerSecond) |
Limit to updates per second. | |
void | reverseLookupAndUpdateOwnAircraftModel (const swift::misc::simulation::CAircraftModel &model) |
Set own model. | |
void | reverseLookupAndUpdateOwnAircraftModel (const QString &modelString) |
Set own model. | |
QString | getInvalidSituationLogMessage (const swift::misc::aviation::CCallsign &callsign, const swift::misc::simulation::CInterpolationStatus &status, const QString &details={}) const |
Info about invalid situation. | |
void | finishUpdateRemoteAircraftAndSetStatistics (qint64 startTime, bool limited=false) |
Update stats and flags. | |
bool | updateOwnSituationAndGroundElevation (const swift::misc::aviation::CAircraftSituation &situation) |
Update own aircraft position and if suitable use it to update ground elevation. | |
swift::misc::simulation::CAircraftModelList | getModelSet () const |
Get the model set. | |
bool | validateModelOfAircraft (const swift::misc::simulation::CSimulatedAircraft &aircraft) const |
Validate if model has callsign and such. | |
void | logAddingAircraftModel (const swift::misc::simulation::CSimulatedAircraft &aircraft) const |
Unified qeeing aircraft message. | |
bool | isAircraftInRangeOrTestMode (const swift::misc::aviation::CCallsign &callsign) const |
Test version aware version of isAircraftInRange. | |
virtual void | onSwiftDbAllDataRead () |
When swift DB data are read. | |
virtual void | onSwiftDbModelMatchingEntitiesRead () |
When swift DB data are read. | |
![]() | |
COwnAircraftAware (IOwnAircraftProvider *ownAircraftProvider) | |
Constructor. | |
![]() | |
IProviderAware (IOwnAircraftProvider *provider=nullptr) | |
Ctor. | |
virtual | ~IProviderAware () |
Dtor. | |
bool | hasProvider () const |
Has provider? | |
IOwnAircraftProvider * | getProvider () const |
Provider. | |
void | setProvider (IOwnAircraftProvider *provider) |
Set the provider. More... | |
IOwnAircraftProvider * | provider () |
Provider. | |
const IOwnAircraftProvider * | provider () const |
Const provider. | |
![]() | |
CRemoteAircraftAware () | |
Default constructor. | |
CRemoteAircraftAware (IRemoteAircraftProvider *remoteAircraftProvider) | |
Constructor. | |
![]() | |
IProviderAware (IRemoteAircraftProvider *provider=nullptr) | |
Ctor. | |
virtual | ~IProviderAware () |
Dtor. | |
bool | hasProvider () const |
Has provider? | |
IRemoteAircraftProvider * | getProvider () const |
Provider. | |
void | setProvider (IRemoteAircraftProvider *provider) |
Set the provider. More... | |
IRemoteAircraftProvider * | provider () |
Provider. | |
const IRemoteAircraftProvider * | provider () const |
Const provider. | |
![]() | |
CClientAware () | |
Default constructor. | |
CClientAware (IClientProvider *clientProvider) | |
Constructor. | |
![]() | |
IProviderAware (IClientProvider *provider=nullptr) | |
Ctor. | |
virtual | ~IProviderAware () |
Dtor. | |
bool | hasProvider () const |
Has provider? | |
IClientProvider * | getProvider () const |
Provider. | |
void | setProvider (IClientProvider *provider) |
Set the provider. More... | |
IClientProvider * | provider () |
Provider. | |
const IClientProvider * | provider () const |
Const provider. | |
![]() | |
ISimulationEnvironmentProvider (const CSimulatorPluginInfo &pluginInfo) | |
Ctor. | |
ISimulationEnvironmentProvider (const CSimulatorPluginInfo &pluginInfo, const settings::CSimulatorSettings &settings, bool supportElevation, bool supportCG) | |
Ctor. | |
geo::CCoordinateGeodeticList | getAllElevationCoordinates (int &maxRemembered) const |
All remembered coordiantes plus max.remembered ground situations. More... | |
void | setNewPluginInfo (const CSimulatorPluginInfo &info, const settings::CSimulatorSettings &settings, const CAircraftModel &defaultModel) |
New plugin info and default model. More... | |
void | setNewPluginInfo (const CSimulatorPluginInfo &info, const settings::CSimulatorSettings &settings) |
New plugin info and default model. More... | |
void | setSimulatorDetails (const QString &name, const QString &details, const QString &version) |
Set version and simulator details from running simulator. More... | |
QString | getSimulatorName () const |
Simulator name as set from the running simulator. More... | |
QString | getSimulatorVersion () const |
Simulator version as set from the running simulator. More... | |
QString | getSimulatorDetails () const |
Simulator details as set from the running simulator. More... | |
void | setDefaultModel (const CAircraftModel &defaultModel) |
Default model. More... | |
void | clearDefaultModel () |
Clear default model. More... | |
void | clearElevations () |
Clear elevations. | |
void | clearCGs () |
Clear CGs. More... | |
void | clearSimulationEnvironmentData () |
Clear data. More... | |
int | cleanUpElevations (const geo::ICoordinateGeodetic &referenceCoordinate, int maxNumber=-1) |
Only keep closest ones. More... | |
bool | rememberGroundElevation (const aviation::CCallsign &requestedForCallsign, bool likelyOnGroundElevation, const geo::ICoordinateGeodetic &elevationCoordinate, const physical_quantities::CLength &epsilon=geo::CElevationPlane::singlePointRadius()) |
Remember a given elevation. More... | |
bool | rememberGroundElevation (const aviation::CCallsign &requestedForCallsign, bool likelyOnGroundElevation, const geo::CElevationPlane &elevationPlane) |
Remember a given elevation. More... | |
bool | insertCG (const physical_quantities::CLength &cg, const aviation::CCallsign &cs) |
Insert or replace a CG. More... | |
bool | insertCG (const physical_quantities::CLength &cg, const QString &modelString, const aviation::CCallsign &cs) |
Insert or replace a CG. More... | |
bool | insertCGOverridden (const physical_quantities::CLength &cg, const aviation::CCallsign &cs) |
Insert or replace a CG. More... | |
bool | insertCGOverridden (const physical_quantities::CLength &cg, const aviation::CCallsignSet &callsigns) |
Insert or replace an overridden CG. More... | |
bool | insertCGForModelString (const physical_quantities::CLength &cg, const QString &modelString) |
Insert or replace a CG. More... | |
bool | insertCGForModelStringOverridden (const physical_quantities::CLength &cg, const QString &modelString) |
Insert or replace a CG (overridden mode) More... | |
aviation::CLengthPerCallsign | clearCGOverrides () |
Clear all overridden values. More... | |
int | removeSimulatorCG (const aviation::CCallsign &cs) |
Remove a CG for a given callsign. More... | |
void | removePendingElevationRequest (const aviation::CCallsign &cs) |
Remove pending timestamp. More... | |
bool | isCgProviderEnabled () const |
Provider enabled. More... | |
bool | isElevationProviderEnabled () const |
Provider enabled. More... | |
void | setCgProviderEnabled (bool enabled) |
Provider enabled. More... | |
void | setElevationProviderEnabled (bool enabled) |
Provider enabled. More... | |
void | setSimulationProviderEnabled (bool elvEnabled, bool cgEnabled) |
Provider enabled. More... | |
![]() | |
IProvider () | |
Constructor. | |
![]() | |
virtual bool | setInterpolationSetupPerCallsign (const CInterpolationAndRenderingSetupPerCallsign &setup, const aviation::CCallsign &callsign, bool removeGlobalSetup=true) |
Insert specialized setup per callsign. More... | |
void | setLogCallsign (bool log, const aviation::CCallsign &callsign) |
Log/un-log given callsign. More... | |
bool | removeInterpolationSetupPerCallsign (const aviation::CCallsign &callsign) |
Remove specialized setup per callsign. | |
void | clearInterpolationLogCallsigns () |
Clear all interpolation log callsigns. More... | |
int | clearInterpolationSetupsPerCallsign () |
Clear all setups. More... | |
bool | logAnyCallsign () const |
Log any callsign? More... | |
SetupsPerCallsign | getSetupsPerCallsign () const |
The setups per callsign. More... | |
![]() | |
CIdentifiable (const QString &objectName) | |
Use literal based object name. | |
CIdentifiable (QObject *nameProvider) | |
Connect with QObject providing the name. | |
CIdentifiable () | |
Construct without a name. | |
~CIdentifiable () | |
Destructor. | |
CIdentifiable (const CIdentifiable &)=default | |
Copy constructor. | |
CIdentifiable & | operator= (const CIdentifiable &)=default |
Copy assignment operator. | |
Static Protected Member Functions | |
static void CALLBACK | SimConnectProc (SIMCONNECT_RECV *pData, DWORD cbData, void *pContext) |
SimConnect Callback. | |
![]() | |
static void CALLBACK | SimConnectProc (SIMCONNECT_RECV *pData, DWORD cbData, void *pContext) |
SimConnect callback. More... | |
static QByteArray | toFsxChar (const QString &string) |
Convert to FSX char array. | |
static void | registerHelp () |
Register help. | |
static SIMCONNECT_DATA_INITPOSITION | aircraftSituationToFsxPosition (const swift::misc::aviation::CAircraftSituation &situation, bool sendGnd=true, bool forceUnderflowDetection=false, swift::misc::CStatusMessage *details=nullptr) |
Format conversion. More... | |
static SIMCONNECT_DATA_PBH | aircraftSituationToFsxPBH (const swift::misc::aviation::CAircraftSituation &situation) |
Format conversion. More... | |
static SIMCONNECT_DATA_INITPOSITION | coordinateToFsxPosition (const swift::misc::geo::ICoordinateGeodetic &coordinate) |
Format conversion. | |
static SIMCONNECT_DATA_LATLONALT | coordinateToFsxLatLonAlt (const swift::misc::geo::ICoordinateGeodetic &coordinate) |
Format conversion. | |
static bool | isValidFsxPosition (const SIMCONNECT_DATA_INITPOSITION &fsxPos) |
Valid FSX/P3D position. | |
static bool | isValid180Deg (double deg) |
Valid 180degrees value. | |
static bool | is32bit () |
Word size. | |
static bool | is64bit () |
Word size. | |
![]() | |
static void | registerHelp () |
Register help. | |
![]() | |
static void | registerHelp () |
Register help. | |
![]() | |
static swift::misc::simulation::CAircraftModel | reverseLookupModel (const swift::misc::simulation::CAircraftModel &model) |
Lookup against DB data. | |
![]() | |
static physical_quantities::CLength | minRange (const physical_quantities::CLength &range) |
Min.range considered as single point. | |
Additional Inherited Members | |
![]() | |
enum | SimulatorStatusFlag { Unspecified = 0 , Disconnected = 1 << 0 , Connected = 1 << 1 , Simulating = 1 << 2 , Paused = 1 << 3 } |
ISimulator status. More... | |
![]() | |
using | SetupsPerCallsign = QMap< aviation::CCallsign, CInterpolationAndRenderingSetupPerCallsign > |
setups per callsign | |
![]() | |
void | simulatorStatusChanged (swift::core::ISimulator::SimulatorStatus status) |
Simulator combined status. | |
void | ownAircraftModelChanged (const swift::misc::simulation::CAircraftModel &model) |
Emitted when own aircraft model has changed. | |
void | renderRestrictionsChanged (bool restricted, bool enabled, int maxAircraft, const swift::misc::physical_quantities::CLength &maxRenderedDistance) |
Render restrictions have been changed. | |
void | interpolationAndRenderingSetupChanged () |
Interpolation or rendering setup changed. | |
void | aircraftRenderingChanged (const swift::misc::simulation::CSimulatedAircraft &aircraft) |
Aircraft rendering changed. | |
void | physicallyAddingRemoteModelFailed (const swift::misc::simulation::CSimulatedAircraft &remoteAircraft, bool disabled, bool requestFailover, const swift::misc::CStatusMessage &message) |
Adding the remote model failed. | |
void | airspaceSnapshotHandled () |
An airspace snapshot was handled. | |
void | driverMessages (const swift::misc::CStatusMessageList &messages) |
Relevant simulator messages to be explicitly displayed. | |
void | requestedElevation (const swift::misc::aviation::CCallsign &callsign) |
Requested elevation, call pending. | |
void | receivedRequestedElevation (const swift::misc::geo::CElevationPlane &plane, const swift::misc::aviation::CCallsign &callsign) |
A requested elevation has been received. | |
void | autoPublishDataWritten (const swift::misc::simulation::CSimulatorInfo &simulator) |
Auto publish data written for simulator. | |
void | insufficientFrameRateDetected (bool fatal) |
Frame rate has fallen too far below the threshold to maintain consistent sim rate. | |
![]() | |
static bool | isRequestForSimObjAircraft (DWORD requestId) |
Request for sim data (request in range of sim data)? | |
static bool | isRequestForSimObjTerrainProbe (DWORD requestId) |
Request for probe (elevation)? | |
static bool | isRequestForSimConnectObject (DWORD requestId) |
Request for any CSimConnectObject? | |
static CSimConnectDefinitions::SimObjectRequest | requestToSimObjectRequest (DWORD requestId) |
Sub request type. | |
static QString | fsxCharToQString (const char *fsxChar, int size=-1) |
Encapsulates creating QString from FSX string data. | |
static DWORD | offsetSimObjAircraft (CSimConnectDefinitions::SimObjectRequest req) |
Offsets. | |
static DWORD | offsetSimObjTerrainProbe (CSimConnectDefinitions::SimObjectRequest req) |
Offsets. | |
![]() | |
static const QStringList & | getLogCategories () |
Log categories. | |
static void | registerHelp () |
Register help. | |
static QString | statusToString (SimulatorStatus status) |
Status to string. | |
static bool | isAnyConnectedStatus (SimulatorStatus status) |
Any connected status? | |
static const swift::misc::aviation::CCallsign & | getTestCallsign () |
Get a test callsign. | |
![]() | |
HANDLE | m_hSimConnect = nullptr |
handle to SimConnect object | |
DispatchProc | m_dispatchProc = &CSimulatorFsxCommon::SimConnectProc |
called function for dispatch, can be overriden by specialized P3D function | |
CSimConnectObjects | m_simConnectObjects |
AI objects and their object and request ids. | |
bool | m_useFsxTerrainProbe = is32bit() |
Use FSX Terrain probe? | |
bool | m_initFsxTerrainProbes = false |
initialized terrain probes | |
int | m_addedProbes = 0 |
added probes | |
QMap< DWORD, swift::misc::aviation::CCallsign > | m_pendingProbeRequests |
pending elevation requests: requestId/aircraft callsign | |
swift::misc::physical_quantities::CLength | m_altitudeDelta |
FS2020 effect of temperature on altitude. | |
![]() | |
int | m_ownAircraftUpdateCycles |
own aircraft updates, even with 50 updates/sec long enough even for 32bit More... | |
int | m_skipCockpitUpdateCycles = 0 |
skip some update cycles to allow changes in simulator cockpit to be set | |
bool | m_simPaused = false |
simulator paused? | |
swift::misc::aviation::CComSystem | m_simCom1 |
cockpit COM1 state in simulator | |
swift::misc::aviation::CComSystem | m_simCom2 |
cockpit COM2 state in simulator | |
swift::misc::aviation::CTransponder | m_simTransponder |
cockpit xpdr state in simulator | |
swift::misc::aviation::CSelcal | m_selcal |
SELCAL as in cockpit. | |
![]() | |
bool | m_updateRemoteAircraftInProgress = false |
currently updating remote aircraft | |
bool | m_enablePseudoElevation = false |
return faked elevations (testing) | |
int | m_timerId = -1 |
dispatch timer id | |
int | m_statsUpdateAircraftRuns = 0 |
statistics update count | |
int | m_statsUpdateAircraftLimited = 0 |
skipped because of max.update limitations | |
double | m_statsUpdateAircraftTimeAvgMs = 0 |
statistics average update time | |
double | m_averageFps = -1.0 |
FPS. | |
double | m_simTimeRatio = 1.0 |
ratio of simulation time to real time, due to low FPS (X-Plane) | |
double | m_trackMilesShort = 0.0 |
difference between real and reported groundspeed, multiplied by time | |
double | m_minutesLate = 0.0 |
difference between real and reported groundspeed, integrated over time | |
qint64 | m_updateAllRemoteAircraftUntil = 0 |
force an update of all remote aircraft, used when own aircraft is moved, paused to make sure all remote aircraft are updated | |
qint64 | m_statsUpdateAircraftTimeTotalMs = 0 |
statistics total update time | |
qint64 | m_statsCurrentUpdateTimeMs = 0 |
statistics current update time | |
qint64 | m_statsMaxUpdateTimeMs = 0 |
statistics max.update time | |
qint64 | m_lastRecordedGndElevationMs = 0 |
when gnd.elevation was last modified | |
qint64 | m_statsLastUpdateAircraftRequestedMs = 0 |
when was the last aircraft update requested | |
qint64 | m_statsUpdateAircraftRequestedDeltaMs = 0 |
delta time between 2 aircraft updates | |
swift::misc::aviation::CAltitude | m_pseudoElevation |
pseudo elevation for testing purposes More... | |
swift::misc::simulation::CSimulatorInternals | m_simulatorInternals |
setup read from the sim | |
swift::misc::simulation::CInterpolationLogger | m_interpolationLogger |
log.interpolation | |
swift::misc::simulation::CAutoPublishData | m_autoPublishing |
for the DB | |
swift::misc::aviation::CAircraftSituationPerCallsign | m_lastSentSituations |
last situations sent to simulator | |
swift::misc::aviation::CAircraftPartsPerCallsign | m_lastSentParts |
last parts sent to simulator | |
swift::misc::simulation::CSimulatedAircraftList | m_addAgainAircraftWhenRemoved |
add this model again when removed, normally used to change model | |
swift::misc::aviation::CAircraftSituationListPerCallsign | m_loopbackSituations |
traced loopback situations | |
swift::misc::CTokenBucket | m_limitUpdateAircraftBucket { 5, 100, 5 } |
means 50 per second | |
bool | m_limitUpdateAircraft = false |
limit the update frequency by using swift::misc::CTokenBucket | |
swift::misc::simulation::settings::CMultiSimulatorSettings | m_multiSettings |
simulator settings for all simulators More... | |
![]() | |
static constexpr qint64 | AutoTraceOffsetMs = 10 * 1000 |
how long do we trace? | |
P3D Simulator Implementation.
Definition at line 24 of file simulatorp3d.h.
swift::simplugin::p3d::CSimulatorP3D::CSimulatorP3D | ( | const swift::misc::simulation::CSimulatorPluginInfo & | info, |
swift::misc::simulation::IOwnAircraftProvider * | ownAircraftProvider, | ||
swift::misc::simulation::IRemoteAircraftProvider * | remoteAircraftProvider, | ||
swift::misc::network::IClientProvider * | clientProvider, | ||
QObject * | parent = nullptr |
||
) |
Constructor, parameters as in.
Definition at line 27 of file simulatorp3d.cpp.
|
virtual |
Connect to simulator.
KB 2018-11 that would need to go to updateOwnAircraftFromSimulator if the simulator ever supports SELCAL KB 2018-11 als we would need to send the value to FS9/FSX (currently we only deal with it on FS9/FSX level)
Reimplemented from swift::simplugin::fsxcommon::CSimulatorFsxCommon.
Definition at line 44 of file simulatorp3d.cpp.
|
protectedvirtual |
Specific P3D events.
Reimplemented from swift::simplugin::fsxcommon::CSimulatorFsxCommon.
Definition at line 278 of file simulatorp3d.cpp.