Commit Graph

106 Commits

Author SHA1 Message Date
Klaus Basan
6273892b84 Ref T180, update situation of pending aircraft 2017-11-09 04:42:10 +01:00
Klaus Basan
46a7b67ae5 Ref T180, interpolator status can check validity of situation and provide an info string 2017-11-09 04:42:10 +01:00
Klaus Basan
40dcd9c167 Ref T180, remove aircraft
* utility function getAllCallsigns
* allow to trace sendId (in removing)
* make sure aircraft are not added again by upfront clearing lists
2017-11-09 04:42:09 +01:00
Klaus Basan
fd62ef80e0 Ref T180, formatting and renaming of member/function 2017-11-09 04:42:08 +01:00
Klaus Basan
4fb30fdbc3 Ref T180, log pattern for cmd. line and logging some cmd line activities 2017-11-09 04:42:07 +01:00
Klaus Basan
4b082ac99a Ref T180, renamed function removeFromPendingAndAddAgainAircraft 2017-11-05 20:02:34 +01:00
Klaus Basan
57a7407ef9 Ref T180, check result of removing aircraft 2017-11-05 20:02:33 +01:00
Klaus Basan
986110b50b Ref T180, use SIMCONNECT_DATA_REQUEST_ID as type for request id 2017-11-05 20:02:32 +01:00
Klaus Basan
93a29b2b11 Ref T180, formatting 2017-11-05 20:02:06 +01:00
Klaus Basan
6b3cdf52ee Ref T180, adjusted FSX/P3D includes
* the fix header belongs into fsxcommon (not fsx) dir
* P3D is purely P3D, we do not build a P3D x86 driver
2017-11-05 20:02:03 +01:00
Klaus Basan
05ec07edf3 Ref T180, allow to trace send ids
(Rational: hope to get more details about exceptions of FSX)

* trace functions
* command line parsing to set tracing on/off
2017-11-05 20:02:01 +01:00
Klaus Basan
ce7ae9701d Ref T180, formatting and minor fixes of FSX driver
* timer no longer a pointer
* formatting/comments
* unified naming to simObject
* default model initialized in derived class (P3D/FSX)
2017-11-04 21:44:45 +01:00
Klaus Basan
68225e7bf6 Ref T180, FSX driver validates situation to check if there are any problems with that 2017-11-04 21:44:44 +01:00
Klaus Basan
924d4aab7f Ref T180, get interpolated situation utility function in CSimConnectObject, returning the aircraft situation if there is no interpolation value 2017-11-04 21:44:44 +01:00
Klaus Basan
e5261c3e99 Ref T180, added utility function getInterpolatorInfo() allowing to log some info about interpolator 2017-11-04 21:44:42 +01:00
Klaus Basan
350c210d97 Ref T180, driver settings (FSX/P3D) supports SimConnect.ini file 2017-11-04 21:44:39 +01:00
Klaus Basan
5560d6cb78 Ref T180, support for SimConnect.ini files and some renamings in CSimConnectUtilities 2017-11-04 21:44:39 +01:00
Klaus Basan
1018d06f70 Ref T180, do not disconnect from dispatch (SimConnectProc) function
This causes a crash in P3Dv4 and has been wrong all the time because it closes itself from within the dispatcher
2017-11-04 21:44:38 +01:00
Klaus Basan
df3dbff8e3 Ref T180, directly add parts/situation in CSimConnectObject ctor 2017-11-04 21:44:17 +01:00
Klaus Basan
d5bb1733f4 Ref T180, formatting / const 2017-11-04 16:03:40 +01:00
Klaus Basan
f252f7542d Ref T118, for x64 P3D do not show SimConnect dll details 2017-10-31 15:39:32 +01:00
Klaus Basan
c6d184cd3b Ref T118, fix for simconnect.h not including windows.h 2017-10-31 15:39:11 +01:00
Klaus Basan
41f5999094 Ref T118, changed to P3D v4.1 2017-10-31 15:39:10 +01:00
Klaus Basan
c5da828679 Ref T171, typo and formatting for interpolation logger/multi 2017-10-18 22:58:38 +02:00
Klaus Basan
b6333e69d8 Ref T171, made remote aircraft provider and web service "protected slots" -> "protected"
* Unlike in other cases, the remote aircraft provider slots are also very frequently called. So besides "style", it might be also useful here to avoid the extra MOC layers.
* Also renamed 2 web service signals and made web service connections Qt::QueuedConnection
2017-10-18 22:58:24 +02:00
Klaus Basan
61a23d700b Ref T171, driver formatting 2017-10-18 22:58:22 +02:00
Klaus Basan
66773d7593 Ref T111, allow to set SELCAL in simulator 2017-09-24 19:51:55 +01:00
Klaus Basan
1387573e5b Ref T112, moved simulator settings in subdir/settings namespace 2017-09-24 19:51:46 +01:00
Klaus Basan
654c35f666 Ref T111, use Q_DECLARE_FLAGS SimulatorStatus instead of int
* changed emitSimulatorCombinedStatu
* changed connected slots/functions
2017-09-24 19:51:10 +01:00
Klaus Basan
380da41544 Handling during shuttdown
* Do not start new event loop when shutting down
* FSX Listener end checking when shutting down
* in same step fixed: FSX driver can connect to P3D and FSX but not vice versa
2017-09-24 19:50:35 +01:00
Roland Winklmeier
984b30aef3 Enable P3D-v4 64 bit build
Summary:
This commit enables P3D-v4 for 64 bit including all dependent libraries.
Those binaries are not yet installed, since they are considered
experimental.

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Differential Revision: https://dev.swift-project.org/D30
2017-09-24 19:49:16 +01:00
Klaus Basan
645faf8373 Ref T27, improved adding of sim objects
* only add one object at a time
* only query object values (from sim) when object is confirmed
* better debug logging (can be switched on)
* physicallyAddRemoteAircraftImpl for better tracing of added objects
* wait until light state is available
2017-09-24 19:48:57 +01:00
Klaus Basan
6d26c96569 Ref T27, preparation for refactoring, turned private slots into normal member functions
* Motivation: slots no longer required, and in the driver the (small) slot overhead might matter
* renamed some members to better reflect future use
* timer intervals as constexpr
* fixed some typos and comments
2017-06-27 20:50:26 +02:00
Roland Winklmeier
5a40e86ecf Add 32 and 64 bit FSUIPC library projects
Summary:
So far we were linking against the prebuilt FSUIPC user library,
compiled with VS2010 many years ago. The source of this user library is
part of the FSUIPC SDK, so we can benefit from modern compilers and
include it into our source tree.
This version contains some very small wide char fixes compared to the
official FSUIPC SDK source.
It also includes the new 64 bit version.

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Differential Revision: https://dev.swift-project.org/D29
2017-06-27 13:37:52 +02:00
Roland Winklmeier
79556260bd Remove QtConcurrent from list of Qt modules
Summary:
QtConcurrent isn't used any longer in swift code, so we can remove it
from the list of enabled modules. Disabling it causes the QtConcurrent
header path to be removed from the include paths and we no longer
unnecessarily link against it.

Reviewers: msutcliffe

Reviewed By: msutcliffe

Subscribers: jenkins

Differential Revision: https://dev.swift-project.org/D25
2017-06-09 12:29:59 +02:00
Mathew Sutcliffe
a89e042ff8 Prevent inserting default-constructed elements in CSimulatorFsxCommon::m_simConnectObjects.
Hopefully this fixes null pointer dereference of CSimConnectObject::m_interpolator.
2017-05-14 15:04:31 +01:00
Klaus Basan
f34e80ea62 refs #935, avoid issues when shutting down 2017-04-19 19:31:02 +01:00
Roland Winklmeier
aafe211b5c Make simulator listeners safe against multiple starts
refs #909
2017-04-18 00:06:03 +01:00
Klaus Basan
0fb96206c5 refs #916, interpolator mode for FSX 2017-04-18 00:01:05 +01:00
Klaus Basan
3a6df31c99 refs #916, interpolator mode utility functions for SimObjects 2017-04-18 00:00:56 +01:00
Klaus Basan
622a2f0937 refs #911, backend function in listener
Can provide information of the system which was connected
2017-04-18 00:00:47 +01:00
Klaus Basan
8a2eef66ae refs #911, formatting FSX/P3D connect info 2017-04-18 00:00:45 +01:00
Klaus Basan
566b6aabf3 refs #911, settings UI for simConnect.cfg improved
* only work with local file, a remote file can be adjusted in the core`s settings
* set UI port/address from file
* formatting/renaming
2017-04-18 00:00:41 +01:00
Klaus Basan
b21f5f18e7 refs #911, fixed some UI strings 2017-04-18 00:00:37 +01:00
Mathew Sutcliffe
6e488533f5 refs #896 Using CInterpolatorMulti in simulator drivers. 2017-04-18 00:00:30 +01:00
Klaus Basan
61dc32e894 refs #910, display SimConnect info in settings 2017-04-18 00:00:11 +01:00
Klaus Basan
83c0dd6dfa refs #910, check SimConnect DLL in listener
(preliminary version before we know P3D string variety)
2017-04-18 00:00:09 +01:00
Klaus Basan
0f2680ba2a Formatting #910 2017-04-18 00:00:06 +01:00
Klaus Basan
c277b26c05 refs #908, detect and check version of P3D or FSX in listener
* added version simulator name etc. to listener
* checking simulator
* simplified CSimulatorFsxCommonListener::SimConnectProc
2017-04-17 23:59:30 +01:00
Klaus Basan
4a984ea1de refs #908, formatting 2017-04-17 23:59:28 +01:00