Roland Winklmeier
3774f2b60f
Fix cppcheck warnings and cleanup suppression config
...
- redundantAssignment
- knownConditionTrueFalse
2018-08-09 01:25:41 +02:00
Klaus Basan
d05b4da2a9
Ref T299, renaming
2018-08-07 20:41:04 +02:00
Klaus Basan
418584c5e3
Style
2018-08-01 03:06:16 +02:00
Klaus Basan
d9f0066ec4
Ref T296, provider stores scenery offset in situation
2018-07-31 01:43:37 +02:00
Klaus Basan
6af1998f58
Style and comments
2018-07-12 18:29:42 +02:00
Klaus Basan
a5acd0a1ec
Ref T268, elevation handling improvements
...
* utility functions
* made storeAircraftSituation virtual and return Aviation::CAircraftSituation
* coordinate toQString in deg/rad
2018-07-11 23:44:11 +02:00
Klaus Basan
ead1a93597
Style
2018-07-09 22:30:54 +02:00
Klaus Basan
ca87784509
Ref T275, remember CG per model string
2018-07-09 22:30:22 +02:00
Klaus Basan
7e8c0cc99d
Fixes: emit signals at end and check sGui
2018-07-09 22:30:19 +02:00
Klaus Basan
9baa10c5f8
Style
2018-07-09 22:30:14 +02:00
Klaus Basan
7cc350974c
Ref T275, added "latestOnGroundProviderElevation" to improve average elevation
2018-06-18 20:55:09 +02:00
Klaus Basan
2625c3fb6b
Ref T275, new function to estimate ground elevation and some provider functions
...
* added "averageElevationOfNonMovingAircraft". Idea: aircraft in the vicinity not moving or on ground likely have the same airport elevation
* added "isWithinRange"
* added "latestRemoteAircraftSituations" / "remoteAircraftSituation" in provider
2018-06-18 03:21:15 +02:00
Klaus Basan
746024becd
Ref T275, use extrapolate for new situations in airspace monitor and provider
2018-06-18 03:04:46 +02:00
Klaus Basan
3467bef45c
Ref T280, provider improvements
...
* store the changes per callsign
* aircraft stored per callsign
* moved "guessOnGroundAndUpdateModelCG" down to IRemoteAircraftProvider (from airspace monitor, "one level deeper in base class"
2018-06-18 03:04:34 +02:00
Klaus Basan
fb93d26453
Ref T275, IRemoteAircraftProvider::remoteAircraftParts cutoff time was never used so parameter was removed
2018-06-18 03:04:30 +02:00
Klaus Basan
978fe5eea2
Ref T275, Ref T280 hint for timestamp based list if they are already sorted
2018-06-18 03:04:29 +02:00
Klaus Basan
6ed541b6ab
Ref T243, Ref T273, added info about elevation (where did we obtain it?)
2018-06-13 13:59:52 +02:00
Klaus Basan
b257c693ff
Ref T243, Ref T273, improved elevation fetching
...
* slightly shorter lock time
* transfer elevation from last situation
2018-06-13 13:59:49 +02:00
Klaus Basan
ac87e648ca
Ref T270, fixed provider so signals are correctly emitted
2018-05-29 00:56:39 +02:00
Klaus Basan
afe4a09218
Formatting
2018-05-18 00:25:10 +02:00
Klaus Basan
3ef18a788a
Ref T261, minor adjustment of testAddAltitudeOffsetToSituation
2018-05-08 16:06:56 +02:00
Klaus Basan
ea585ae166
Ref T261, CAircraftSituationChange improvements
...
* min/max ground distance, also added in situation list
* use model's vtol/CG info
* improved scenery deviation guessing
* adjusted interpolator scenery deviation handling
2018-05-08 16:06:55 +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
2d66fd470a
Ref T261, a global altitude offset can be enabled for testing
2018-05-08 16:06:47 +02:00
Klaus Basan
adeea182da
Ref T261, provider support for CG/elevation update
2018-05-08 16:06:44 +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
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
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
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
785e35ee88
Formatting
2018-04-13 23:37:48 +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
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
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
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
01f06cb86a
Ref T259, Ref T243 improved handling of removig outdated parts
2018-04-05 02:54:07 +02:00
Klaus Basan
5a15e74f63
Ref T241, misc. logger improvements
...
* string formatting of logger info
* display longer in simulator
* better formatting of message
2018-02-05 03:45:25 +01:00
Klaus Basan
c882c64824
Ref T171, count of aircraft supporting parts
...
* added functions in providers, aware class
* some utility functions in aircraft list
2017-10-18 22:58:27 +02:00
Klaus Basan
3c28f8a2de
Ref T171, provider formatting
2017-10-18 22:58:23 +02:00
Mathew Sutcliffe
1cd471873f
T37 T133 removeOutdatedParts shall always preserve one outdated parts
...
to make sure there is enough information to reliably interpolate.
2017-09-24 19:52:51 +01:00
Klaus Basan
ec844fd438
Ref T27, made isAircraftInRange context and provider function
...
Based on clang warnings and RW's comment now pure virtual and context and provider function
2017-09-24 19:49:19 +01:00
Klaus Basan
417496024e
Ref T26, Ref T27, added utility function in remote aircraft provider
2017-06-27 20:50:33 +02:00
Mathew Sutcliffe
e3fe8ec39f
refs #937 Resolved clazy warnings: miscellaneous.
2017-04-19 19:31:50 +01:00
Klaus Basan
62d4a94106
refs #865 , further improved logging
...
* set log flag in hints, so no lock for each aircraft is needed
* as a result log functions have a bool log parameter now
* highlight situation and parts changed
2017-02-24 00:19:18 +00:00
Klaus Basan
e3d81c6c44
refs #865 , use same function for removing outdated aircraft parts
...
* in airspace monitor
* in XP traffic.cpp
2017-02-24 00:19:09 +00:00