Commit Graph

637 Commits

Author SHA1 Message Date
Klaus Basan
6061a61d50 Ref T260, changed elevation handling in provider, simulator and FSX common driver
* split functions, added findClosestElevationWithinRangeOrRequest
* obtain elevation ids (separate ids are easier to track)
* also added experimental "physicallyAddAITerrainProbe" (FSX) for the FSX elevation probing
* callback / signal when requested elevation is received (async)
2018-05-08 16:06:35 +02:00
Klaus Basan
0d76cc8d3e Formatting 2018-05-08 16:06:33 +02:00
Klaus Basan
cd1ce37ec3 Ref T259, Ref T243 interpolator changes
* interpolators use providers for client/situations/parts/ground elevation
* interpolators do no longer use own situations/parts, but those from provider
* interpolators are no longer QObjects (as it is not needed)
* use gnd flag from situation for gnd interpolation, there is no longer a parts gnd flag interpolation
* guess parts during interpolation
* changed iterators to m_s[i] as it makes clearer which values are used
** the flag is transferred from parts -> situation in airspace monitor
** if the other client already provides and gnd.flag in situation this also works
* adjusted logging
* use providers in unit tests / adjusted tests
* improved situation verification/assert
2018-05-08 16:06:33 +02:00
Klaus Basan
e3d17859a0 Ref T259, Ref T243 improved utility functions so parts can be guessed in interpolator
* engine count
* aligned naming to "getEnginesCount"
* formatting
2018-05-08 16:06:32 +02:00
Klaus Basan
c3f05ea1cd Ref T259, Ref T243 details for aircraft parts 2018-05-08 16:06:32 +02:00
Klaus Basan
aa21d9ea92 Ref T259, Ref T243 unify ground details when a new situation is received 2018-05-04 23:03:32 +02:00
Klaus Basan
225d05d22f Ref T259, Ref T243 prepared sim.env.provider to request elevations 2018-05-04 23:03:28 +02:00
Klaus Basan
0b4637054a Formatting 2018-05-04 23:03:16 +02:00
Klaus Basan
bd7fd59d07 Ref T259, Ref T243 elevation provider statistics 2018-05-04 23:03:09 +02:00
Klaus Basan
dd9efc9bb1 Ref T259, Ref T243 functions for ground factor/underflow interpolation 2018-05-04 23:03:04 +02:00
Klaus Basan
a7f1e15f39 Ref T259, Ref T243 pass the providers along the hierarchy 2018-04-13 23:37:49 +02:00
Klaus Basan
785e35ee88 Formatting 2018-04-13 23:37:48 +02:00
Roland Winklmeier
b28fb0e154 Export nested CInterpolatorSpline classes 2018-04-13 23:37:46 +02:00
Klaus Basan
66b661fe9c Ref T259, Ref T243 added number of parts/situations and last modified timestamp
* the spline interpolator might need the timestamp to create a new interpolant
* number of parts/situations is for info only
2018-04-13 23:37:44 +02:00
Klaus Basan
7ae0649dd6 Ref T259, Ref T243 remove dummy interpolator
* As there are no longer situations/parts added to the interpolator /solely provided by provider) there is no overhead anymore and no need for the dummy interpolator.
* Furthermore switching the interpolator at runtime will become possible.
2018-04-13 23:37:41 +02:00
Klaus Basan
60c70c34f6 Ref T259, Ref T243 prefill provider situations, so interpolator can immediately start 2018-04-13 23:37:40 +02:00
Klaus Basan
1c89f4c8e3 Ref T259, Ref T243 created an implementation for remote aircraft provider
* this implementation is used by airspace monitor
* also used by dummy provider (advantage, unit tests test the real provider)
* some functions adjusted
2018-04-13 23:37:38 +02:00
Klaus Basan
9abc57bb3d Ref T259, Ref T243 remove aircraft parts and situations from interpolator
* no longer using the add parts/situations signals
* will use the remote aircraft provider parts directly

Result: all parts/situations are stored only once in memory and in one single place
2018-04-13 23:37:37 +02:00
Klaus Basan
bb34beed26 Ref T259, Ref T243 misc. smaller improvements of simulator environment provider 2018-04-13 23:37:33 +02:00
Klaus Basan
7d396d94bd Ref T259, Ref T243 use minimum range for elevations in provider 2018-04-13 23:37:27 +02:00
Klaus Basan
7a05a5ae3a Formatting, minor fix 2018-04-13 23:37:23 +02:00
Klaus Basan
0c06ac26f7 Ref T259, Ref T243 removed interpolation hints
* no longer needed with providers in that form
* pure refactoring commit, just guarantees compilation
* already minor adjustments to use providers
2018-04-13 23:37:18 +02:00
Klaus Basan
116d428f84 Ref T259, Ref T243 added setup provider (interpolation setup) 2018-04-13 23:36:39 +02:00
Klaus Basan
011f31ad2b Formatting 2018-04-13 23:36:37 +02:00
Klaus Basan
333a92ff63 Ref T259, Ref T243 renaming to CInterpolationAndRenderingSetupPerCallsign 2018-04-13 23:36:34 +02:00
Klaus Basan
f5d1217b48 Ref T259, Ref T243 interpolation setup list 2018-04-13 23:36:33 +02:00
Klaus Basan
cc638ca3d0 Ref T259, Ref T243 split interpolation setup into base class, global setup and setup per callsign 2018-04-13 23:36:32 +02:00
Klaus Basan
0b7683fd50 Ref T259, Ref T243 unified naming of interfaces "org.swift-project" + lowercase 2018-04-13 23:36:31 +02:00
Klaus Basan
4b7237ce1b Ref T259, Ref T243 adjusted providers to use common base classes 2018-04-06 02:56:57 +02:00
Klaus Basan
61b71599bb Ref T259, Ref T243 get latest parts from remote aircraft provider 2018-04-06 02:56:51 +02:00
Klaus Basan
42ef7c5633 Avoid long "hanging" if Windows UNC path is not reachable
Use own "isDirExisting" function checking UNC paths
2018-04-05 02:54:40 +02:00
Klaus Basan
3346a92b56 Ref T259, Ref T243 simulator environment provider
* access to elevation
* future: more data such as airport info
2018-04-05 02:54:32 +02:00
Klaus Basan
83b6578e69 Ref T259, Ref T243 use elevation plane for altitude
general idea: by using the plane class, we can set a elevation and then find a better one

* use elevation plane in situation
* adjusted depending classes such as hints, lists
* using setGroundElevationChecked so elevation can be gradually improved
2018-04-05 02:54:28 +02:00
Klaus Basan
0191f35d5a Ref T259, Ref T243 improvements in interpolator
* functions for unit tests (like clear)
* maxParts/Situations
2018-04-05 02:54:10 +02:00
Klaus Basan
01f06cb86a Ref T259, Ref T243 improved handling of removig outdated parts 2018-04-05 02:54:07 +02:00
Klaus Basan
03af49348b Ref T259, Ref T243 formatting 2018-04-05 02:53:55 +02:00
Klaus Basan
c207d589a9 Ref T131, XPlane utility functions
* find XPL files
* newer build files
* conflicting files?
* some renamings
2018-04-05 02:53:30 +02:00
Roland Winklmeier
2ab6a96d57 Adapt to libxplanemp improvements
* XPMPMultiplayerInit API change
* New CSL command 'VERT_OFFSET'
* OBJ8 objects can have multiple textures now. Therefore use the same model
name convention as with OBJ7.
2018-04-05 02:52:24 +02:00
Klaus Basan
5cc70c2903 Ref T253, utility functions to support UNC 2018-02-22 01:26:28 +01:00
Klaus Basan
640ec3a573 Ref T252, send all loading status messages as list 2018-02-22 01:26:23 +01:00
Klaus Basan
baa7f393ca Ref T252, bundled directory handling for simulators in specialized settings
* class CSpecializedSimulatorSettings and CXPlaneSimulatorSettings
* allows to combine default directory functions directly with the settings values
2018-02-22 01:26:12 +01:00
Klaus Basan
b01119cc1b Ref T252, utility functions for simulator directories 2018-02-16 12:13:53 +01:00
Klaus Basan
1970ae9f9b Ref T252, formatting 2018-02-16 12:13:50 +01:00
Klaus Basan
78e61e25ac Formatting 2018-02-16 12:13:35 +01:00
Klaus Basan
05fb937df1 More detailed info about excluded models 2018-02-11 19:46:57 +01:00
Klaus Basan
ccd7c477e2 Ref T246, unified signal handling in model caches and loader
* setSimulator as checked, simulatorChanged as unchecked version
* some renamings
* made some functions private, turned public slots -> public
2018-02-10 01:33:48 +01:00
Klaus Basan
d64ddfa8af Ref T246, functions to access values of model loader/models component
* direct access to simulator settings
* load models for simulator
2018-02-09 04:44:04 +01:00
Klaus Basan
44b2e27d11 Ref T246, use different caches to remember single/multi simulator selections
* selector UI "can remember"
* different caches
2018-02-09 04:44:02 +01:00
Klaus Basan
887d1ec401 Ref T246, some upfront formatting 2018-02-09 04:43:54 +01:00
Klaus Basan
e001b0338f Ref T242, utility functions for matching
* search among airline aircraft
* improved logging information
* search among airline ICAO aircraft (which aircraft does the airline use?)
* check ecosystem before merging with VATSIM data
2018-02-09 04:43:47 +01:00