Klaus Basan
49a9a767a3
Ref T709, change XPlane driver to TXSwiftBusSettings, send/receive functions
2019-09-16 22:40:55 +01:00
Klaus Basan
f6690136f2
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-09-16 22:40:54 +01:00
Klaus Basan
9b424d7287
Clang warnings (QtC) static_cast
2019-09-16 22:40:51 +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
Klaus Basan
08d7cddfe5
Style
2019-09-16 22:40:40 +01:00
Klaus Basan
b8ba7940ff
Style
2019-09-16 22:40:35 +01:00
Klaus Basan
fab65c23b1
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-09-16 22:40:34 +01:00
Klaus Basan
7ee2814c73
Smaller improvements in matching messages/style
2019-09-16 22:40:30 +01:00
Klaus Basan
cb77279b4d
Renamed function id Directory utils and added string only version
2019-09-16 22:40:27 +01:00
Klaus Basan
58b7c875bc
Minor performance improvement of subdir check
...
* follow T689
* no need to always get and init simulator directory as it will not change
2019-09-16 22:40:12 +01:00
Klaus Basan
74be3fa8c2
Added network to UNIT tests (needed for CUrl
...
Other includes where needed
2019-09-16 22:40:09 +01:00
Mat Sutcliffe
73d3a341da
Ref T689 Add validation that XP model directories are within the XP sim directory.
2019-09-16 22:40:06 +01:00
Roland Rossgotterer
f4a147a5bc
[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-09-16 22:40:00 +01:00
Roland Rossgotterer
d79e090d46
[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-09-16 22:39:59 +01:00
Roland Rossgotterer
0a17b48f8d
[GFS] Update NOAA GFS download url to reflect new directory query
2019-09-16 22:39:59 +01:00
Roland Rossgotterer
d3a02069c6
Style
2019-09-16 22:39:58 +01:00
Lars Toenning
680a663444
Ref T686 Adding check for model set before adding plane to FG.
2019-09-16 22:39:56 +01:00
Klaus Basan
6cefb5175d
Avoid issues if simulator is NOT yet set in emulateed driver
2019-09-16 22:39:54 +01:00
Klaus Basan
718221b90e
Ref T683, moved m_skipCockpitUpdateCycles to FS common so it can be used with P3D/FSX and FS9
2019-09-16 22:39:51 +01:00
Klaus Basan
fa6101d02b
Ref T683, use slow updates in FS9 for thins not to be updated every cycle
2019-09-16 22:39:51 +01:00
Klaus Basan
0360704b0b
Ref T683, "updateOwnSituationAndGroundElevation"
...
* function to use own positions "on ground" to calculate ground elevation
* use this based on settings
* adjusted simulators code
2019-09-16 22:39:50 +01:00
Klaus Basan
fc2f7b4a12
Ref T683, move "m_ownAircraftUpdateCycles" one level up so it can be used in FS9
2019-09-16 22:39:50 +01:00
Klaus Basan
dc790cee8d
Ref T683, FSUIPC calculate CG
2019-09-16 22:39:49 +01:00
Klaus Basan
daeea07090
Ref T683, style
2019-09-16 22:39:49 +01:00
Klaus Basan
71e09b008f
Ref T681, renamed to rememberElevationAndSimulatorCG and style
2019-09-16 22:38:08 +01:00
Klaus Basan
6d490e9a49
Ref T681, preparations to use CG from DB
...
* renamed to "getSimulatorCG" ...
* pass simulator settings to sim.env.provider to decide what CG to use
* store DB CG and init it when aircraft is added
* style
2019-09-16 22:38:07 +01:00
Klaus Basan
718d186e46
Emulated driver UI/situation form size
2019-09-16 20:29:58 +01:00
Klaus Basan
a646e122af
Avoid ASSERT from emulated driver
...
* not all plugins are installed
* use default simulator if there is no simulator info
2019-09-16 20:29:44 +01:00
Klaus Basan
c1ffad33bd
Ref T650, using FSX SimulatedObject type decrease exeption counter when successfully added
...
* normally adding the SimObject fails first,
* then the workaround is used (but exception counter is 1)
* this means a 2nd time the object cannot be changed, as there is already a counter number > 0
2019-09-16 20:29:42 +01:00
Klaus Basan
7340301c29
No ASSERT when missing callsign/ids, VERIFY is enough
2019-09-16 20:29:41 +01:00
Klaus Basan
2e67b94512
Added P3D v4.5 SimConnect
2019-09-16 20:29:38 +01:00
Klaus Basan
05805f4d89
Slow parts update and using event for flaps, as sim. variable sets the flaps, but then always retracts it.
...
https://swift-project.slack.com/archives/G96QTUBEG/p1558454646002200
2019-09-16 20:29:37 +01:00
Klaus Basan
f7add9f33e
Slow parts update and using event for flaps, as sim. variable sets the flaps, but then always retracts it.
...
https://swift-project.slack.com/archives/G96QTUBEG/p1558454646002200
2019-09-16 20:29:37 +01:00
Klaus Basan
b1d265bc0b
Renamed FSX data definition
2019-09-16 20:29:36 +01:00
Klaus Basan
a86e98ca3a
Ref T669, also interpolation Ref T668, remove last sent values if aircraft is removed
2019-09-16 20:29:35 +01:00
Klaus Basan
f1ff410e64
FlightGear, applied agreed style
2019-09-16 20:29:34 +01:00
Roland Rossgotterer
8943db5b2b
Revert "[xSwiftBus] Automatically find and load CSL packages"
...
This reverts commit 61adfefa7a .
2019-05-15 17:19:56 +02:00
Klaus Basan
2e6d415c14
Allow to enable trace for P3D/FSX SB offsets
2019-05-13 11:21:09 +02:00
Klaus Basan
2c4133316a
Minor FSX/P3D style changes
2019-05-13 11:21:07 +02:00
Roland Rossgotterer
61adfefa7a
[xSwiftBus] Automatically find and load CSL packages
...
ref T657
2019-05-13 11:21:05 +02:00
Roland Rossgotterer
99bcee87aa
[FS9] Properly set onground flag when converting situation to FS9
2019-05-13 11:21:04 +02:00
Klaus Basan
dd7930337a
Better detect simExit on FSX, dispatch error just warning in that case
2019-05-13 11:21:03 +02:00
Klaus Basan
669402c7e0
Log simulator status for dispatch errors (FSX/P3D)
2019-05-13 11:21:02 +02:00
Klaus Basan
da2b3e05fd
Minor interpolator improvements, display 2nd invalid version instead of first
2019-05-13 11:21:02 +02:00
Klaus Basan
7d025c6293
Ref T650, also remember SB offset setting
2019-05-13 11:21:01 +02:00
Klaus Basan
b9634f9927
Minor FSX driver updates
2019-05-13 11:21:00 +02:00
Klaus Basan
cbf5c1c445
Ref T650, save FSX/P3D specific settings
2019-05-13 11:20:56 +02:00
Klaus Basan
0cefe1d1e4
Ref T650, simulator setting UI of SimulatedObject can be used
2019-05-13 11:20:56 +02:00
Klaus Basan
680c47074f
Ref T650, driver class support for SimulatedObject type AI aircraft
...
* use SimulatedObject object if NON ATC type failed (for helicopters)
* SimObject can handle SimulatedObject type (compared to NonATC)
* Send ATC data to simulator
2019-05-13 11:20:56 +02:00