Commit Graph

1248 Commits

Author SHA1 Message Date
Roland Rossgotterer
6a5e59b76a [FS9] Implement time synchronisation 2019-04-11 22:11:51 +01:00
Roland Rossgotterer
464528da9a [FS9] Send position and params update right after client is connected 2019-04-11 22:11:51 +01:00
Roland Rossgotterer
e0fe7ab1d0 [FS9] Ignore DirectPlay position updates
Those position updates to not contain pressure altitude.
2019-04-11 22:11:51 +01:00
Roland Rossgotterer
6dfd0aff12 Fix gcc warning 2019-04-11 22:11:50 +01:00
Roland Rossgotterer
b0fd4e03b2 Implement CSimulatorFs9::updateOwnSimulatorCockpit 2019-04-11 22:11:49 +01:00
Klaus Basan
daf39a9835 Ref T554, FSX/P3D use "rememberElevationAndCG" for CG, so also auto publish info is written 2019-04-11 22:11:44 +01:00
Klaus Basan
5c46fa3afa CLANG style 2019-04-11 22:11:39 +01:00
Klaus Basan
4fb0db01bd Ref T554, "auto publish test data" for emulated driver 2019-04-11 22:11:34 +01:00
Klaus Basan
0e916864cb Ref T546, disable provider for FS9 2019-04-11 22:11:31 +01:00
Klaus Basan
bfc7ac97c0 Ref T546, style 2019-04-11 22:11:31 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Roland Rossgotterer
220b271b34 [GFS] Move GFS structs out of CWeatherDataGfs
In the same step, change doubles to floats since this is what GFS provides.
2019-02-22 20:36:26 +00:00
Roland Rossgotterer
5b10abd63d [GFS] Calculate cloud levels from pressure and temperature 2019-02-22 20:36:25 +00:00
Roland Rossgotterer
e68693a35e [FS9] Handle CoInitializeEx being previously called with different flags 2019-02-22 20:36:24 +00:00
Roland Rossgotterer
2503a55dae Switch to NOAA GFS 0.25 degree resolution
The 0.25 degree forecast is available every hour (compared to every 3 hours for the 0.5 resolution). Also its more detailed.
2019-02-22 20:36:22 +00:00
Roland Rossgotterer
231f4df1bf Remove surface temperature
The surface temperature had no real value since humidity and height above MSL was not available. Instead stick to the isobaric layer temperatures only.
2019-02-22 20:36:22 +00:00
Roland Rossgotterer
d6d2c0cc80 [FS9] Stop using Fs9Host and Fs9Client as CContinuousWorkers
Both were continuous workers since a blocking IDirectPlay8Peer::SendTo()
method was used. Since we use the default async method now, we don't need
the threaded implementation any longer. It still could happen that GUI
blocks for too long, but that would happen also for other simulator drivers.

ref T433
2019-02-22 20:36:21 +00:00
Roland Rossgotterer
949e013f0b [FS9] Update DirectPlay SendTo flags to use async and guaranteed delivery 2019-02-22 20:36:21 +00:00
Roland Rossgotterer
fa08c6bf15 [FS9] Enable FSUIPC by default for FS9 2019-02-22 20:36:21 +00:00
Roland Rossgotterer
a5e841f31d Style 2019-02-22 20:36:20 +00:00
Roland Rossgotterer
9d1299741e [GFS] Use Pressure at MSL instead of surface
Pressure at surface level was the wrong value. All barometers and
altimeters use pressure reduced to mean sea level. Reading that value
from GFS instead returns much more reasonable values.

ref T537
2019-02-22 20:36:20 +00:00
Klaus Basan
2031ba3d8b Ref T528, avoid crash (assert) if simulator object is not accessible (remote UI)
Also disable some UI elements in that case + display an info
2019-02-22 20:36:08 +00:00
Mat Sutcliffe
077fd8c35a Ref T525 Avoid directly calling getLogCategories. 2019-02-22 20:35:52 +00:00
Klaus Basan
341f2db406 Ref T515, allow to emit "physicallyAddingRemoteModelFailed" 2019-02-22 20:35:44 +00:00
Klaus Basan
f5cef58c03 Ref T515, emulated driver UI adjustments 2019-02-22 20:35:43 +00:00
Klaus Basan
6470c61d0a Ref T515, added failover flag for addingRemoteModelFailed
* adjusted signatures
* renamings and minor style adjustments
2019-02-22 20:35:41 +00:00
Roland Rossgotterer
9a7af86a5e Loop over the container itself instead of a temporary value list 2019-02-22 20:35:17 +00:00
Roland Rossgotterer
8df4024bde Regularly update X-Plane simulated aircraft
The simulated aircraft object has been set only once for each X-Plane aircraft as soon as adding to the simulator succeeded. Any updates to transponder codes, modes etc. were missed and never updated.
To make sure we always have the latest information available, we update all known X-Plane aircraft every second in the slow timer tasks.

Manifest Tasks: T502
2019-02-22 20:35:17 +00:00
Roland Rossgotterer
90bc693509 Handle a hypothetical relative humidity of 0.0 %
Summary:
The formular to calculate the dew point is not defined for relative
humidity of 0.0 %. It is every unlikely to ever happen in real world
weather, but is handled just in case by using the smallest possible
numerical double value.

Reviewers: #swift_pilot_client

Maniphest Tasks: T406

Differential Revision: https://dev.swift-project.org/D82
2019-02-22 20:35:16 +00:00
Klaus Basan
b5ffa57fe8 Ref T444, Ref T471 style/comment 2019-02-22 20:35:10 +00:00
Mat Sutcliffe
f4a0df315d Ref T488 Fixed undefined behaviour in g2clib and libxplanemp. 2019-02-22 20:34:58 +00:00
Mat Sutcliffe
7cb581f865 Ref T488 Fixed cppcheck warnings. 2019-02-22 20:34:57 +00:00
Mat Sutcliffe
5a17f43a5b Ref T488 Update cppcheck suppressions. 2019-02-22 20:34:56 +00:00
Mat Sutcliffe
225ff81252 Ref T485 Adjust CLogMessage and CStatusMessage call sites to use the new API. 2019-02-22 20:34:55 +00:00
Roland Rossgotterer
d639187f91 Convert static common simulator plugins to shared ones
Test Plan:
- Check that the new shared libraries are packaged in all platform installers.
- check that plugins are loaded properly on all platforms.

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Maniphest Tasks: T471

Differential Revision: https://dev.swift-project.org/D79
2019-02-22 20:34:50 +00:00
Mat Sutcliffe
d6b5dca6b2 Return a default-constructed QString instead of implicitly converting an empty string literal. 2019-02-22 20:23:49 +00:00
Mat Sutcliffe
6c05c5249d When calling arg() on a QString constructed from a literal, use QStringLiteral. 2019-02-22 20:23:47 +00:00
Mat Sutcliffe
ace7650ebe Ref T480 No need for QStringLiteral when concatenating with %, use UTF-16 string literals. 2019-02-22 20:23:46 +00:00
Mat Sutcliffe
4344ca1a77 Suppressed clazy false positives: method potentially mismarked as slot. 2019-02-22 20:23:39 +00:00
Mat Sutcliffe
462172a87f Fixed clazy warnings: unnecessary containers and containers being detached in range-for loops. 2019-02-22 20:23:37 +00:00
Mat Sutcliffe
8979b5257e Fixed clazy warnings: returning void expression. 2019-02-22 20:23:34 +00:00
Mat Sutcliffe
e32ea65a27 Fixed clazy warnings: fully-qualified signal parameter types. 2019-02-22 20:23:34 +00:00
Mat Sutcliffe
9f85a7b560 Fixed clazy warnings: pass large objects by reference to const. 2019-02-22 20:23:33 +00:00
Mat Sutcliffe
82679a3010 Replace qmake variable BLACK_CONFIG with a system based on json files.
The config is loaded from json files by qmake, and we define the qmake
function `swiftConfig` for checking whether a feature is enabled.
This function can be directly used in `buildconfig_gen.cpp.in`,
so the trick with C++ comment tokens in variables is not needed.
2019-02-22 20:23:25 +00:00
Klaus Basan
59343c6c24 Minor style fixes 2018-12-14 19:57:31 +01:00
Klaus Basan
40ae7174a7 Ref T470, detect NULL cg 2018-12-14 19:57:29 +01:00
Klaus Basan
f841d57448 Avoid crash by checking disconnected before requesting elevation 2018-12-11 21:34:14 +01:00
Roland Rossgotterer
74e084c6e8 Compare transponder and not only the transponder code
The last refactoring introduced a bug causing only X-Plane transponder code changes to be detected by swift - transponder modes were ignored.
2018-12-11 17:42:51 +01:00
Klaus Basan
39a77d9c16 Ref T443, P3D v4.4 combobox 2018-12-11 11:40:49 +01:00
Roland Rossgotterer
18ed289949 Workaround GCC 5.3 bug about constructor inheritance
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=6705 for details
2018-12-11 10:54:44 +01:00