Mat Sutcliffe
9bfcf13ef8
Issues #72 , #110 Use label and text colors settings in xswiftbus and XP driver
2021-08-21 18:38:55 +01:00
Mat Sutcliffe
33209fa1eb
Use std::as_const (C++17 feature)
2021-07-13 17:56:31 +01:00
Mat Sutcliffe
184c0e53fb
[XPlane] Improve error message
2021-07-13 17:51:56 +01:00
Mat Sutcliffe
b80114213d
Issue #77 Move mixin classes to separate files
...
By separating them from unrelated code, their dependents
can use them without depending on unrelated code, which
in turn helps to reduce cyclic dependencies.
2020-08-29 14:16:17 +01:00
Mat Sutcliffe
802576eda9
Issue #77 Rename
2020-08-29 14:16:11 +01:00
Klaus Basan
1fb97755ce
[Weather] Only send weather if activated
2020-06-12 18:42:54 +01:00
Klaus Basan
114b36e611
[FSX/P3D] Simplified listener
...
* removed inner SimConnect_CallDispatch loop/CApplication::processEventsFor
* keep connection open, and check dispatch queue
2020-06-12 18:42:53 +01:00
Klaus Basan
2aa8e55b4b
[XPlane] log listener
...
We ca see the listener working in the log,
as there are sometimes issue with that in MacOS
2020-06-12 18:42:52 +01:00
Klaus Basan
17cebfb8d3
Ref T786, further checks (shutdown, empty values)
2020-06-12 18:42:51 +01:00
Klaus Basan
026e19add0
Ref T786, use identifier based requestWeatherGrid in simulator plugins
2020-06-12 18:42:50 +01:00
Klaus Basan
fbf63457c1
Ref T786, make sure injectWeather is called in the correct thread
2020-06-12 18:42:49 +01:00
Klaus Basan
ea4a8f2462
[XP] Minor fixes/style XPlane driver
2020-06-12 18:42:49 +01:00
Klaus Basan
70f487cd01
Ref T778, turn XCSL models offset NULL into 0 (zero)
2020-06-12 18:42:45 +01:00
Klaus Basan
03dc641a5e
Ref T778, CSimulatorXPlane::handleProbeValue use isWater
2020-06-12 18:42:45 +01:00
Klaus Basan
0e4938ebc5
[XP] Remove ASSERTs from XPlane driver
...
Based on https://discordapp.com/channels/539048679160676382/539486309882789888/697813600903102464
2020-06-12 18:42:44 +01:00
Mat Sutcliffe
22ebf6c5ea
Ref T778 XSwiftBus traffic service prodives water/land flag for elevations
2020-06-12 18:42:44 +01:00
Klaus Basan
8206fc6bb9
Ref T778, special terrain probe value handling for XP
...
* only request terrain probe up to a max. distance
* detect "isSuspiciousTerrainValue"
* See also https://discordapp.com/channels/539048679160676382/539925070550794240/696786452855390218
2020-06-12 18:42:44 +01:00
Klaus Basan
829777bf3a
Ref T778, added "likelyOnGroundElevation" as parameter for "ememberElevationAndSimulatorCG"
2020-06-12 18:42:43 +01:00
Klaus Basan
4d75c1576e
[XPlane] Avoid elevation requests and minor style fixes in XPlane driver
2020-06-12 18:42:39 +01:00
Klaus Basan
08ef16e1a9
Ref T773, check for "nan" for elevations
2020-06-12 18:42:35 +01:00
Klaus Basan
fe1e976093
Ref T773, style
2020-06-12 18:42:34 +01:00
Klaus Basan
25b30ccf34
Ref T773, style/typo
2020-06-12 18:42:33 +01:00
Mat Sutcliffe
ecc38fede7
[XP driver] Fixed failure to find CSL package in certain directory layouts
...
Issue reported by Richard Åsberg on Discord. If one package is located
two subdirectories below the parent directory of another, the first one
might not be loaded.
2020-06-12 18:42:31 +01:00
Mat Sutcliffe
e50bb6d5c7
[xplane] Add monitoring of the number of minutes behind due to low FPS
2020-06-12 18:42:23 +01:00
Mat Sutcliffe
377b2f6a3e
[xplane] Add monitoring of the number of track miles lost due to low FPS
2020-06-12 18:42:23 +01:00
Klaus Basan
785dc7f016
[XPlane][FG] Q_UNREACHABLE removal follow up
...
* removed CSimulatorXPlane::connectionFromString as this only works for session DBus
* renamed to "checkConnectionViaSessionBus"
* discussed around here: https://discordapp.com/channels/539048679160676382/539925070550794240/668105458300485652
2020-01-18 18:46:19 +01:00
Mat Sutcliffe
20a2f3b9e7
[XP driver] Using unsigned for timer call counters, to avoid UB on overflow
2020-01-13 18:53:30 +00:00
Mat Sutcliffe
35cfaebc7d
[xplane] Added display of simulation time ratio in simulator component
2020-01-13 18:53:30 +00:00
Klaus Basan
72c3abb1e7
[xswiftbus] display FPS in simulator data window
...
* added driver getAverageFPS function
* display in simulator component
2020-01-07 19:57:28 +00:00
Mat Sutcliffe
836eb107a3
Smart xswiftbus compatibility check based on git commit SHA-1
...
This is more tolerant that the simple check based on version numbers.
Different versions can be compatible if they have the same SHA-1 when
considering only those files that can influence xswiftbus.
2020-01-07 19:57:25 +00:00
Mat Sutcliffe
48d1521d3a
Correct filename extension
2020-01-07 19:57:25 +00:00
Klaus Basan
a924b5e78b
Improved (error) message if owner is empty
2020-01-07 19:57:23 +00:00
Klaus Basan
f80e093a0a
Ref T717, function to send parts/situation for testing and in the model browser
2019-09-16 22:41:37 +01:00
Klaus Basan
6151f434c6
Ref T717, simulator "is test" conditions where required
2019-09-16 22:41:37 +01:00
Klaus Basan
6f27032f5c
Ref T717, XPlane function to push back situation/parts (surfaces)
...
* directly update after an aircraft has been added
* push_back functions
2019-09-16 22:41:36 +01:00
Roland Rossgotterer
e0b52db77a
[MinGW] Fix many unresolved symbols
2019-09-16 22:41:33 +01:00
Klaus Basan
9ec1d54908
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-09-16 22:41:26 +01:00
Klaus Basan
105db27fa8
Avoid ASSERT in XPlane "rapid shutdown"
2019-09-16 22:41:23 +01:00
Klaus Basan
aa765e9adb
Style
2019-09-16 22:41:20 +01:00
Klaus Basan
0da1881003
Ref T709, added support for taxi lights in XPlane, using the "bundle lights" flag
2019-09-16 22:41:19 +01:00
Klaus Basan
0b728053f0
Ref T709, smaller style changes
2019-09-16 22:41:17 +01:00
Klaus Basan
26afc5160d
Improved logging of "adding aircraft" so we can see details such as the model string
2019-09-16 22:41:17 +01:00
Klaus Basan
741843d0c6
Make sure listener does NOT restart when settings are updated, but DBus address did not change (set member correctly)
2019-09-16 22:41:14 +01:00
Klaus Basan
e908593847
Ref T709, style
2019-09-16 22:41:13 +01:00
Klaus Basan
79f347cc1b
Ref T709, changed DBus function to get/setSettingsJson, disambiguate from get/setSettings (returning CSettings)
2019-09-16 22:41:03 +01:00
Klaus Basan
5ebf119acb
Ref T709, added "follow aircraft distance" and timestamp, removed old settings
2019-09-16 22:40:57 +01:00
Klaus Basan
cbd93da1c6
Ref T709, send XSwiftBusSettings when driver is connected
...
* send from swift -> XPlane side
* also send if settings on swift side are updated
2019-09-16 22:40:56 +01:00
Klaus Basan
49a9a767a3
Ref T709, change XPlane driver to TXSwiftBusSettings, send/receive functions
2019-09-16 22:40:55 +01:00
Mat Sutcliffe
b36172437b
Ref T710 Propagate libxplanemp CSL load error messages as swift validation errors.
2019-09-16 22:40:45 +01:00
Mat Sutcliffe
cb8eb6569e
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-09-16 22:40:43 +01:00