Commit Graph

1092 Commits

Author SHA1 Message Date
Roland Winklmeier
c553d24d0e Move GFS weather data url into global setup
Summary:
The GFS weather data url so far was hard coded. With this commit, it is
moved into the global setup (bootstrap file).
Also the url type was changed from QUrl to CUrl, which simplified the
generation of the url including its query by using CUrl::appendQuery().
Finally it fixes sampleweatherdata, which did not have a CApplication yet.

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Subscribers: jenkins

Tags: #swift_pilot_client

Maniphest Tasks: T151

Differential Revision: https://dev.swift-project.org/D57
2017-11-20 15:57:08 +01:00
Mathew Sutcliffe
a7124ec589 Removed unused code. 2017-11-12 13:48:09 +00:00
Klaus Basan
f7c714b153 Ref T180, FSX/P3D driver formatting 2017-11-10 19:28:17 +01:00
Klaus Basan
868ae7ec74 Ref T180, stop requesting data when aircraft is removed 2017-11-09 20:02:58 +01:00
Klaus Basan
cd838b2cb6 Ref T180, function to stop requesting remote aircraft data
Also added details to trace function
2017-11-09 20:02:57 +01:00
Klaus Basan
fd4ac74738 Ref T180, renaming for request remote aircraft data 2017-11-09 20:02:55 +01:00
Klaus Basan
fd0eec689f Ref T180, trace parts and positions even if the object is not yet used with simulator
* interpolator will be prefilled with data
* in case the used SimObject is created, it can already use earlier position/parts updates
2017-11-09 20:02:55 +01:00
Klaus Basan
02c45588c3 Ref T180, CSimConnectObject improvements / added CSimConnectObject::getInterpolatedParts 2017-11-09 20:02:54 +01:00
Klaus Basan
fa50e6a8ea Ref T180, formatting 2017-11-09 20:02:40 +01:00
Klaus Basan
3afe510736 Ref T180, allow to log invalid interpolated data 2017-11-09 04:42:13 +01:00
Klaus Basan
f95eadd748 Ref T180, interpolator provides default situation on its own, no need to check 2017-11-09 04:42:13 +01:00
Klaus Basan
822ef11c02 Ref T180, formatting 2017-11-09 04:42:11 +01:00
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
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