Commit Graph

860 Commits

Author SHA1 Message Date
Klaus Basan
f252f7542d Ref T118, for x64 P3D do not show SimConnect dll details 2017-10-31 15:39:32 +01:00
Klaus Basan
9d66062f05 Ref T118, set correct P3Dv4 default model and description 2017-10-31 15:39:30 +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
Mathew Sutcliffe
a8d2c05f99 Ref T111 Fixed mistake detected by Clang warning. 2017-10-19 00:37:07 +01:00
Mathew Sutcliffe
3523944782 Ref #136 Restored asserts for preconditions in X-Plane driver
now that the precondition violations have been fixed.
2017-10-18 23:24:43 +01:00
Klaus Basan
7b50917410 Ref T171, fetch interpolator values in emulated driver.
This allows to test and monitor the interpolator in the emulated driver.

* UI allows to start/stop interpolator logging
* Fetch data from interpolator
2017-10-18 22:58:53 +02:00
Klaus Basan
c5da828679 Ref T171, typo and formatting for interpolation logger/multi 2017-10-18 22:58:38 +02:00
Klaus Basan
ecc4789855 Ref T171, Ref T136, renaming "swift driver" -> "emulated driver" 2017-10-18 22:58:37 +02:00
Klaus Basan
418d0aa628 Ref T171, Ref T136, removed the remote provider's "remove aircraft part", as it is not used:
* remove is handled by context call logicallyRemoveRemoteAircraft
* so far no need to use the remote provider function
* can be used again whenever needed
2017-10-18 22:58:36 +02:00
Klaus Basan
bef47bf8ed Ref T171, Ref T136, moved statistics counter to base class
* removed from emulated driver
* since we have the remote access providers functions, the counter functions have been moved to the base class. Therby we can use them for all drivers.
2017-10-18 22:58:35 +02:00
Klaus Basan
4cfa6189da Ref T171, added statistics in emulated driver
* UI part
* fixed minor typo
* fixed setting of rendered flag
* UI connections Qt::QueuedConnection
2017-10-18 22:58:28 +02:00
Klaus Basan
c553d5cdfd Ref T171, FS9 driver: made "private slots" -> "private" 2017-10-18 22:58:25 +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
1b9a79fe1b Ref T171, emulated driver formatting 2017-10-18 22:58:21 +02:00
Klaus Basan
099afba8a7 Found during T149, use QScopedPointer to destroy QNetworkReply 2017-09-24 19:54:17 +01:00
Mathew Sutcliffe
f1211d328e Delete QDBusServiceWatcher when unloading X-Plane driver.
Summary:
When unloading a sim driver, first its threads are killed, then the driver object is destroyed.

This means that when the `QDBusServiceWatcher` child object is destroyed, it deadlocks waiting for a thread that was already killed (T147).

This change causes the `QDBusServiceWatcher` to be deleted before the driver is unloaded.

Reviewers: #swift_pilot_client, kbasan, rwinklmeier

Reviewed By: #swift_pilot_client, kbasan, rwinklmeier

Subscribers: kbasan, jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D50
2017-09-24 19:53:38 +01:00
Roland Winklmeier
27f97e8ac8 Implement interpolator mode for FS9
Summary:
This implementation will always return true if we were setting the mode,
since we cannot easily access the return value from
CInterpolatorMulti::setMode in a thread safe manner.

Reviewers: #swift_pilot_client, kbasan, msutcliffe

Reviewed By: #swift_pilot_client, kbasan, msutcliffe

Subscribers: kbasan, jenkins

Differential Revision: https://dev.swift-project.org/D52
2017-09-24 19:53:35 +01:00
Klaus Basan
d4b027b6bd Ref T125, X-Plane config now only XSwiftBus settings, no longer installation 2017-09-24 19:53:21 +01:00
Klaus Basan
65bd2d20ad Ref T125, X-Plan utility functions and moved XSwiftBus settings in own file 2017-09-24 19:53:03 +01:00
Mathew Sutcliffe
2387edb5a0 Removed C++14 digit separator as it confuses doxygen.
See https://bugzilla.gnome.org/show_bug.cgi?id=786382
2017-09-24 19:52:54 +01:00
Mathew Sutcliffe
1888367e95 T37 T134 Removed asserts that reflect broken assumptions. 2017-09-24 19:52:53 +01:00
Mathew Sutcliffe
98e0f8c875 T37 T127 Send timestamps to XSwiftBus as separate timestamp and offset
as the offset is needed for reliable interpolation.
2017-09-24 19:52:46 +01:00
Mathew Sutcliffe
05c0d046aa Removed outdated todos. 2017-09-24 19:52:37 +01:00
Klaus Basan
f972fdf715 Ref T111, show sending and receiving API calls by LED
* monitor and log own signals
* indcated receiving and sending
2017-09-24 19:52:10 +01:00
Klaus Basan
753bbc1847 Ref T111, using a simulated aircraft to represent emulated driver's own aircraft (this is the aircraft a user would fly in a real simulator)
* change functions for that aircraft
* support for SELCAL
* removed unused function
* adjusted simulated aircraft monitor
** unified naming of functions
** support for text/status messages
2017-09-24 19:52:00 +01: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
f3847bd33c Ref T121, check if Internet is accessible
* in case the internet provider is down, this is not detected
* extended test to detect if access is possible
* in case of downtime this indicated in status component
2017-09-24 19:51:44 +01:00
Klaus Basan
b70fb70d60 Ref T111, renamed dummy driver to CSimulatorEmulated 2017-09-24 19:51:43 +01:00
Klaus Basan
2ede2633b8 Ref T111, use aircraft parts form in dummy driver 2017-09-24 19:51:41 +01:00
Klaus Basan
6572c12016 Ref T111, set situation from form in simulator 2017-09-24 19:51:36 +01:00
Klaus Basan
c8a21629f1 Ref T111, added situation form supporting pitch/bank 2017-09-24 19:51:35 +01:00
Klaus Basan
d597dcec15 Ref T111, improved dot commands (e.g. ".drv") handling
* register help implementation to .cpp file
* tooltip HTML formatting
2017-09-24 19:51:17 +01:00
Klaus Basan
52805965cd Ref T111, swift driver plugin 2017-09-24 19:51:16 +01:00
Klaus Basan
c8d6ebb318 Ref T111, swift driver config plugin 2017-09-24 19:51:15 +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
29e1d54e05 Ref T111, some fixes in the vicinity of plugin / drivers
* mostly style / doxygen / formatting
* assert/verify
2017-09-24 19:51:02 +01:00
Roland Winklmeier
3481949a46 Add missing library dependency for P3D plugin
Summary:
There were a couple of unresolved symbols when building swift with 64 bit
MSVC. Those are resolved by linking against Advapi32.

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Subscribers: jenkins

Differential Revision: https://dev.swift-project.org/D37
2017-09-24 19:50:44 +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
Klaus Basan
0e3a06c24e Ref T107, some minor fixes while investigating T107 2017-09-24 19:50:20 +01:00
Klaus Basan
4e4d33a755 Ref T105, adjusted CDirectPlayPeer
* log cats
* and log messages
2017-09-24 19:50:10 +01:00
Klaus Basan
a9198e4f13 Ref T103, Unified naming of directory functions
* some started with get/some not (removed get, get is normally used for our getters)
* some used swift, getSwiftXZY dir (removed swift)
* used full word "directory", not dir/directory mixed
2017-09-24 19:49:53 +01:00
Klaus Basan
debd9c802f Ref T103, moved directory functions from CBuildConfig to CDirectoryUtils
getApplicationDir renamed to getBinDir() as it works different on MacOs
see https://dev.swift-project.org/w/dev/swiftpc/dirstructure/
2017-09-24 19:49:51 +01:00
Klaus Basan
3780bc18e0 Formatting, minor tweaks 2017-09-24 19:49:40 +01:00
Mathew Sutcliffe
1400f38aa9 Add missing PRE_TARGETDEPS in simulator plugin projects
Summary:
This fixes issue reported by Klaus in Slack:
> when I change something in the plugin driver, I always have to rebuild the plugins before I can debug again.

Also refactored `libraries.pri` to remove duplication.

Reviewers: #swift_pilot_client, rwinklmeier

Reviewed By: #swift_pilot_client, rwinklmeier

Subscribers: kbasan, jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D31
2017-09-24 19:49:18 +01:00
Roland Winklmeier
574d4056ce Initialize NewVis::Spare member variable
Summary: This struct variable is not used yet, but initializing it fixes a warning in cppcheck.

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Subscribers: msutcliffe, kbasan, jenkins

Differential Revision: https://dev.swift-project.org/D32
2017-09-24 19:49:17 +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