Klaus Basan
bd82065f0a
Ref T717, simulator "is test" conditions where required
2019-09-15 16:53:02 +02:00
Klaus Basan
8392252236
Ref T717, XPlane function to push back situation/parts (surfaces)
...
* directly update after an aircraft has been added
* push_back functions
2019-09-15 16:53:02 +02:00
Roland Rossgotterer
0c72fbbb65
[MinGW] Fix many unresolved symbols
2019-09-06 19:35:42 +02:00
Klaus Basan
fb4cce8e9e
Ref T610, added COM async getter functions and bundled async calls
...
* reduced the number of async XSwiftBus calls by getting multiple values at once
* the concept was already used for getOwnAircraftSituationDataAsync
* now also used for COM, parts, model and lights
* As Qt restricts to 8 parameters not further bundled
* new COM1 getter functions for receive/volume/transmit
2019-08-28 02:51:32 +02:00
Klaus Basan
09a82cb6d2
Avoid ASSERT in XPlane "rapid shutdown"
2019-08-21 14:57:31 +02:00
Klaus Basan
e78ad0e0d1
Style
2019-08-17 21:01:11 +02:00
Klaus Basan
6c2d140b1b
Ref T709, added support for taxi lights in XPlane, using the "bundle lights" flag
2019-08-15 23:08:19 +02:00
Klaus Basan
f9e7449fdd
Ref T709, smaller style changes
2019-08-15 20:32:57 +02:00
Klaus Basan
eb67310b04
Improved logging of "adding aircraft" so we can see details such as the model string
2019-08-14 00:25:31 +02:00
Klaus Basan
d5b1eab55a
Make sure listener does NOT restart when settings are updated, but DBus address did not change (set member correctly)
2019-08-11 23:16:08 +01:00
Klaus Basan
2fc01bc568
Ref T709, style
2019-08-11 23:16:07 +01:00
Klaus Basan
5a8f41611b
Ref T709, changed DBus function to get/setSettingsJson, disambiguate from get/setSettings (returning CSettings)
2019-08-11 23:15:54 +01:00
Klaus Basan
c0b4d38331
Ref T709, added "follow aircraft distance" and timestamp, removed old settings
2019-08-11 23:15:48 +01:00
Klaus Basan
f2bf038501
Ref T709, send XSwiftBusSettings when driver is connected
...
* send from swift -> XPlane side
* also send if settings on swift side are updated
2019-08-11 23:15:47 +01:00
Klaus Basan
dab3e03d0b
Ref T709, change XPlane driver to TXSwiftBusSettings, send/receive functions
2019-08-11 23:15:46 +01:00
Mat Sutcliffe
eaa24952d1
Ref T710 Propagate libxplanemp CSL load error messages as swift validation errors.
2019-07-29 23:36:58 +01:00
Mat Sutcliffe
8f036b1442
fixup! Improved the readability of the loadCslPackages function.
2019-07-29 23:36:58 +01:00
Mat Sutcliffe
0431be49b6
Improved the readability of the loadCslPackages function.
...
Summary:
In this function, a local class `Prefix` is used to represent the path
of a CSL package and to test whether a model path is a subpath of that
path. To avoid false positives, a trailing `/` character is appended.
This lead to confusing code where a `/` is appended in the first loop
and then chopped in the second loop. Instead, encapsulate the append
and the chop inside the `Prefix` class.
Differential Revision: https://dev.swift-project.org/D107
2019-07-26 21:44:40 +01:00
Klaus Basan
f92e7688af
Style
2019-07-23 02:08:42 +02:00
Klaus Basan
c7f3122d58
Style
2019-07-16 20:22:39 +02:00
Klaus Basan
3dcdd7b2a6
Ref T554, changed signature to pass model (object) and not only modelstring
...
Allows to test if data have changed before "remembering them for auto publish"
2019-07-16 20:22:39 +02:00
Klaus Basan
495312019d
Smaller improvements in matching messages/style
2019-07-16 20:22:38 +02:00
Klaus Basan
0be7dafdd2
Renamed function id Directory utils and added string only version
2019-07-16 20:22:37 +02:00
Klaus Basan
a0d5fcdf42
Minor performance improvement of subdir check
...
* follow T689
* no need to always get and init simulator directory as it will not change
2019-07-01 19:32:46 +02:00
Mat Sutcliffe
b3be42da45
fixup! Ref T689 Add validation that XP model directories are within the XP sim directory.
2019-06-29 15:36:35 +01:00
Mat Sutcliffe
982861f132
Ref T689 Add validation that XP model directories are within the XP sim directory.
2019-06-26 22:08:51 +01:00
Klaus Basan
bf8de29762
Ref T683, "updateOwnSituationAndGroundElevation"
...
* function to use own positions "on ground" to calculate ground elevation
* use this based on settings
* adjusted simulators code
2019-06-13 17:37:28 +02:00
Klaus Basan
24e9ffb398
Ref T683, style
2019-06-13 01:18:09 +02:00
Klaus Basan
1a9ec78bb3
Ref T681, renamed to rememberElevationAndSimulatorCG and style
2019-06-13 01:18:07 +02:00
Klaus Basan
03fce676be
Ref T669, also interpolation Ref T668, remove last sent values if aircraft is removed
2019-05-23 13:13:00 +02:00
Roland Rossgotterer
8943db5b2b
Revert "[xSwiftBus] Automatically find and load CSL packages"
...
This reverts commit 61adfefa7a .
2019-05-15 17:19:56 +02:00
Roland Rossgotterer
61adfefa7a
[xSwiftBus] Automatically find and load CSL packages
...
ref T657
2019-05-13 11:21:05 +02:00
Roland Rossgotterer
d21e9e60e8
Don't stop connection to xswiftbus if versions do not match
...
Keep the version error to bring it to the users attenion and convince him
to upgrade. But let the connection proceed since the interface changes so
rarely.
This also adds version information for swift and xswiftbus sides.
Reviewers: #gatekeepers, msutcliffe
Subscribers: msutcliffe
Maniphest Tasks: T628
Differential Revision: https://dev.swift-project.org/D104
2019-05-13 11:20:47 +02:00
Klaus Basan
2519241da8
Ref T632, remove invalid callsigns
2019-05-13 11:20:43 +02:00
Klaus Basan
94a5741537
Ref T632, verify empty callsign
...
THis is the fix:
"if (!simulatedAircraft.hasCallsign()) { continue; } // removed in provider"
2019-05-13 11:20:42 +02:00
Klaus Basan
599064fe6c
Use models from centralized model cache
...
* no copy needed
* cache is synchronized when loading models
2019-05-13 11:20:40 +02:00
Klaus Basan
a553dfc708
Ref T632, minor improvements for no callsign
2019-05-13 11:20:40 +02:00
Mat Sutcliffe
7e25360d3c
Ref T603 Different message if xswiftbus version string is empty.
2019-05-13 11:20:32 +02:00
Roland Rossgotterer
ac90b3c069
Replace Q_ASSERT with BLACK_VERIFY
2019-04-11 22:12:07 +01:00
Roland Rossgotterer
6b17f847e9
Fix and improve xswiftbus version mismatch warning
2019-04-11 22:12:03 +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
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
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
Mat Sutcliffe
225ff81252
Ref T485 Adjust CLogMessage and CStatusMessage call sites to use the new API.
2019-02-22 20:34:55 +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
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
c591728e88
Aircraft ICAO code of own model is wrong
...
Although the reverse lookup of a model is correct, it's aircraft ICAO code is wrong
Issues found
* in the driver the ICAO code is permanently overridden -> commented out
* there are two contexts, own aircraft and simulator, but only one uses reverse lookup -> now both
* using Qt::QueuedConnection for context -> GUI
2018-12-11 00:51:31 +01:00