Commit Graph

2491 Commits

Author SHA1 Message Date
Klaus Basan
075ffa8ccb Ref T260, utility functions for interpolation/guessing 2018-05-08 16:06:40 +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
056c257182 Ref T260, utility functions to set provider, plane ctor 2018-05-08 16:06:34 +02:00
Klaus Basan
6e908db52e Ref T260, changed to const QObject 2018-05-08 16:06:34 +02:00
Klaus Basan
e1421622b1 Reset URL list and adjusted timeouts for for bootstrap file. Also avoid problems when shutting down. 2018-05-08 16:06:34 +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
c1ac229875 Formatting 2018-05-08 16:06:32 +02:00
Klaus Basan
75c481228f Missing include, fixing missing M_PI
Using the little "PI = std::acos(-1);" trick to avoid include issues
2018-05-08 16:06:31 +02:00
Roland Winklmeier
849124fe7c Optimize async dbus calls without expected reply 2018-05-04 23:03:36 +02:00
Roland Winklmeier
87bb9e28cd Fix MinGW build without any optimizations
Building without any optimizations disabled implicit inlining of
MetaClass::getMemberList() and we ended up with many undefined symbols.
2018-05-04 23:03:33 +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
bc4875afbb Ref T259, Ref T243 functions to set/get ground details (situation) 2018-05-04 23:03:31 +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
cf98c46231 Ref T259, Ref T243 return unit by reference 2018-05-04 23:03:27 +02:00
Klaus Basan
aea0f307db Ref T259, Ref T243 set function/ctor for normal vector 2018-05-04 23:03:24 +02:00
Klaus Basan
57b3760b61 Make "CanConnect" timeout configurable in watchdog
* see also https://swift-project.slack.com/archives/G7GD2UP9C/p1522624024000024
* added signatures
* changed timeout
2018-05-04 23:03:22 +02:00
Klaus Basan
574bc8b51b Utility functions for entity flags and web data services
* multiple flags by name
* number of DB objects
* newer entities synchronized
2018-05-04 23:03:19 +02:00
Klaus Basan
0b4637054a Formatting 2018-05-04 23:03:16 +02:00
Klaus Basan
63e5f75a1d Ref T259, Ref T243 situation detects under and overflow
* details about altitude correction AltitudeCorrection
* function to correct altitude by detecting under/overflow
2018-05-04 23:03:13 +02:00
Klaus Basan
bd7fd59d07 Ref T259, Ref T243 elevation provider statistics 2018-05-04 23:03:09 +02:00
Klaus Basan
52dd7a754c Ref T259, Ref T243 access to last interpolated situation to check if near ground 2018-05-04 23:03:08 +02:00
Klaus Basan
9d484df5ed Ref T259, Ref T243 compare situation by vector 2018-05-04 23:03:07 +02:00
Klaus Basan
4d2a32f035 Ref T259, Ref T243 removed ground factor interpolation from parts (now in situation where it belongs) 2018-05-04 23:03:06 +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
21644c9f24 Ref T259, Ref T243 automatically update client gnd. capability by situation
Rational: If we receive a gnd flag from network, the client does have this capability
2018-04-13 23:37:42 +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
1203c58a23 Ref T259, Ref T243 utility functions for aircraft situation/elevation plane 2018-04-13 23:37:34 +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
4ec3a76ed4 cpp check result fix Prefer prefix ++/-- operators for non-primitive types 2018-04-13 23:37:31 +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