Commit Graph

1079 Commits

Author SHA1 Message Date
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
5881e81d56 Ref T610, support for XPlane COM volume and receive/transmit
* proxy and
* DBus service functions
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
b1c0712f6f Fixed FS9/FSX message handling as reported here: https://discordapp.com/channels/539048679160676382/567139633964646411/612104936574156870 2019-08-17 21:01:11 +02:00
Klaus Basan
20266b7338 FS9 style 2019-08-17 21:01:11 +02:00
Klaus Basan
e78ad0e0d1 Style 2019-08-17 21:01:11 +02:00
Klaus Basan
33ac40eb9d Ref T709, UI for settings "lights" and "message box margins" 2019-08-17 21:01:10 +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
bd49f5151a Ref T709, doxygen 2019-08-14 00:22:36 +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
a596121ea2 Ref T715, setting for "night texture"
* settings class
* UI
2019-08-11 23:16:07 +01:00
Klaus Basan
0596782926 Ref T609, change COM transmission values in UI/emulated driver 2019-08-11 23:15:59 +01:00
Klaus Basan
04be93f8c0 Ref T609, UI to set Tx/Receive for COM unit in emulated driver 2019-08-11 23:15:58 +01:00
Klaus Basan
3d8bc7b8c7 Ref T609, renamed to Transmit/Receive for COM sync. 2019-08-11 23:15:58 +01:00
Klaus Basan
917d9bb3e7 Ref T709, style 2019-08-11 23:15:55 +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
15c8207dee Minor UI tweak 2019-08-11 23:15:51 +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
a5cefcf18c Ref T709, style 2019-08-11 23:15:47 +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
f416285c62 Ref T709, UI for XPlane settings (plugin config window) 2019-08-11 23:15:46 +01:00
Klaus Basan
dab3e03d0b Ref T709, change XPlane driver to TXSwiftBusSettings, send/receive functions 2019-08-11 23:15:46 +01:00
Klaus Basan
44d8e043e0 Ref T709, added DBus signatures and use CSettings class in service class
* CSettings objects will be shared among all services (traffic, weather, service)
* It is "global" for plugin
2019-08-11 23:15:44 +01:00
Klaus Basan
73808d696e Clang warnings (QtC) static_cast 2019-08-11 23:15:13 +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
Klaus Basan
0f9f088d98 Added network to UNIT tests (needed for CUrl
Other includes where needed
2019-06-30 23:52:20 +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
Roland Rossgotterer
7b9d94f78c [GFS] Properly validate cloud pressure levels
For some reason, the parser returned 0.0 instead of 9.998e20 for undefined values.
Atmospheric pressure levels cannot be lower than 1000, hence use this as the lower boundary.
In all other circumstances, the pressure level needs to be set (either to real value or to nan) for the follow up code to detect undefined values.
2019-06-25 23:57:45 +02:00
Roland Rossgotterer
4ff449a4d3 [GFS] Handle added parameters in GFS 0.25 files
Template 4.0 did not use to have TCDC, PRATE, CSNOW and CRAIN parameters. Ignore them for now.
2019-06-25 23:57:45 +02:00
Roland Rossgotterer
e60fc6730c [GFS] Update NOAA GFS download url to reflect new directory query 2019-06-25 23:57:45 +02:00
Roland Rossgotterer
54d406d620 Style 2019-06-25 23:57:44 +02:00
Lars Toenning
1837815f30 Ref T686 Adding check for model set before adding plane to FG. 2019-06-19 17:09:45 +02:00
Klaus Basan
1ae585fc9d Avoid issues if simulator is NOT yet set in emulateed driver 2019-06-16 03:03:04 +02:00
Klaus Basan
c893e0fa2b Ref T683, moved m_skipCockpitUpdateCycles to FS common so it can be used with P3D/FSX and FS9 2019-06-13 17:37:29 +02:00
Klaus Basan
bddbc1a690 Ref T683, use slow updates in FS9 for thins not to be updated every cycle 2019-06-13 17:37:28 +02: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
85eae8c8cb Ref T683, move "m_ownAircraftUpdateCycles" one level up so it can be used in FS9 2019-06-13 01:18:10 +02:00
Klaus Basan
43f3ac8a4e Ref T683, FSUIPC calculate CG 2019-06-13 01:18:09 +02:00