Commit Graph

657 Commits

Author SHA1 Message Date
Klaus Basan
ad10470eb1 Ref T261, improved "finding" for elevation, "findFirst" for small radius 2018-05-08 16:06:47 +02:00
Klaus Basan
6a2f76f4d7 Ref T261, interpolate (spline) from last interpolated situation -> new situation whenever interpolant is recreated.
Prefill functions for "m_s" values.
2018-05-08 16:06:46 +02:00
Klaus Basan
7db8823770 Ref T261, interpolator changes
* use CAircraftSituationChange
* recalculate interpolant if situation changed (due to elevation update)
* keep extra info string for debugging
* improved situation checking
2018-05-08 16:06:46 +02:00
Klaus Basan
9c7134ff56 Ref T261, setup support for isNull 2018-05-08 16:06:45 +02:00
Klaus Basan
46f509c367 Ref T261, logger support for situation change 2018-05-08 16:06:44 +02:00
Klaus Basan
adeea182da Ref T261, provider support for CG/elevation update 2018-05-08 16:06:44 +02:00
Klaus Basan
f330e91350 Ref T261, simulated aircraft get/set CG 2018-05-08 16:06:44 +02:00
Klaus Basan
1f3e5c6abf Formatting, minor tweaks 2018-05-08 16:06:43 +02:00
Klaus Basan
a8ab2a37b8 Ref T261, CG in aircraft model 2018-05-08 16:06:42 +02:00
Klaus Basan
5243682124 Ref T260, interpolator improvements
* use last interpolated situation when recalculating interpolant
* flag if interpolation factor is to be calculated, or guessed
2018-05-08 16:06:41 +02:00
Klaus Basan
d0addd547a Ref T260, ext. version of updating ground elevation, allows to guess gnd. again with updated elevation 2018-05-08 16:06:41 +02:00
Klaus Basan
d021e2dcce Formatting, renaming 2018-05-08 16:06:40 +02:00
Klaus Basan
eb0fa92e7e Ref T260, function to add an offset to received situations for testing
* "dot" command
* context function
* provider functions
2018-05-08 16:06:40 +02:00
Klaus Basan
51f7b5aeb7 Ref T260, regenerate interpolant if situations have been updated (normally with elevation) 2018-05-08 16:06:39 +02:00
Klaus Basan
e97de13545 Ref T260, adjusted context/remote provider
* signal from simulator -> context
* return number of updated situations
2018-05-08 16:06:38 +02:00
Klaus Basan
9fa3e415f5 Ref T260, interpolator deferred init fix. Make sure lambda is not called when interpolator is deleted. 2018-05-08 16:06:37 +02:00
Klaus Basan
08c27338aa Ref T260, setup string formatting / mask enabled parts 2018-05-08 16:06:37 +02:00
Klaus Basan
302411e056 Ref T260, remember timestamp for last situation changed
* skip ground elevation updates if not near ground
* function no longer const
* renamings
2018-05-08 16:06:36 +02:00
Klaus Basan
1ff0607e42 Formatting 2018-05-08 16:06:36 +02:00
Klaus Basan
7f4ee19d24 Ref T260, utility functions/improvements in aviation/simulation value objects 2018-05-08 16:06:36 +02:00
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