Commit Graph

2516 Commits

Author SHA1 Message Date
Klaus Basan
eb815ab987 Ref T261, improved value classes 2018-05-08 16:06:49 +02:00
Klaus Basan
ab0c34b16a Ref T261, added toFullJson in parts
* needed, since the "is full" attribute needs to be added
* fixed usage in network vatlib
2018-05-08 16:06:49 +02:00
Klaus Basan
5bf21c2937 Ref T261, correct implementation of client provider
* made the interface a "real" interface and provided implementation as CCLientProvider
* aligned some function names with networl context
* network context "impl" also implements ICLientProvider
2018-05-08 16:06:49 +02:00
Klaus Basan
2a86378f79 Ref T261, calculate scenery deviation 2018-05-08 16:06:48 +02:00
Klaus Basan
29407d113e Ref T261, encapsulated groundInterpolationFactor
Rational: Less compilation time when need to change
2018-05-08 16:06:48 +02:00
Klaus Basan
756b1a1ada Ref T261, engine type as QChar 2018-05-08 16:06:48 +02:00
Klaus Basan
2d66fd470a Ref T261, a global altitude offset can be enabled for testing 2018-05-08 16:06:47 +02:00
Klaus Basan
ad10470eb1 Ref T261, improved "finding" for elevation, "findFirst" for small radius 2018-05-08 16:06:47 +02:00
Klaus Basan
0b7706471c Ref T261, guess push back 2018-05-08 16:06:46 +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
a1b2e92684 Ref T261, move default offset times to FSD setup
* make it available in "blackmisc"
* remove dependency from "VATSIM"
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
c7d11975f0 Ref T261, unit tests 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
3f7b229e66 Ref T261, aircraft ICAO/parts guessing 2018-05-08 16:06:43 +02:00
Klaus Basan
bed79237bf Ref T261, aircraft situation
* null altitude
* ground functions
* CG ("member")
* supporting CAircraftSituationChange
2018-05-08 16:06:43 +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
784cf29af5 Ref T261, aircraft changes class reflecting delta/average values
* math utils for standard deviation etc.
* CAircraftSituationChange value class
2018-05-08 16:06:42 +02:00
Klaus Basan
d1f5635bd1 Ref T261, timestamp utility functions 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
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