Commit Graph

119 Commits

Author SHA1 Message Date
Klaus Basan
111eca61ee Ref T345, airspace monitor/context ATIS handling
* using Qt::QueuedConnection
* use new update functions
2018-09-12 17:40:35 +02:00
Klaus Basan
fa3555b792 Ref T322, in airspace monitor update ATC station distance 2018-09-08 15:36:22 +02:00
Klaus Basan
be6ae734a0 Ref T322, style/renamings 2018-09-08 15:36:22 +02:00
Klaus Basan
b4e17ed091 Ref T322, renamings 2018-09-08 15:36:21 +02:00
Klaus Basan
956ffd949d Style 2018-08-26 15:26:49 +02:00
Klaus Basan
9be7572c36 Network VATLIB refactoring
* use qit64 for timestamp related integers
* use valueInteger for PQ integer values (rounding)
2018-08-16 14:44:03 +02:00
Klaus Basan
68607a3cb8 Ref T298, better string handling/messages 2018-08-09 01:25:30 +02:00
Klaus Basan
d05b4da2a9 Ref T299, renaming 2018-08-07 20:41:04 +02:00
Klaus Basan
dd687b7d90 Cppcheck and unit test fixes 2018-08-07 20:39:06 +02:00
Klaus Basan
c8fc50e787 Ref T296, adding scenery offset as situation member plus utility functions
* frontOrNull/backOrNull
* added offset in model
* style/renaming
2018-07-31 01:43:36 +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
1428d39f4b Ref T268, airspace monitor also consider closest elevations (from same callsign situations) 2018-07-10 17:17:26 +02:00
Klaus Basan
98106be4ad Stricter "connect" check in airspace monitor 2018-07-09 22:30:50 +02:00
Klaus Basan
b551aaf874 Ref T275, Ref T280, airspace monitor improvements
* improved when when we add aircraft by waiting for at least 2 positions
* reset rendered flag
* check ecosysstem
2018-07-09 22:30:18 +02:00
Klaus Basan
8898bf6be5 Ref T285, allow to re-init all aircraft
* aircraft will be removed, then added again as new
* this will go thru the full cycle and matching
2018-07-09 22:30:17 +02:00
Klaus Basan
c1208dd68c Return const & 2018-07-03 21:02:32 +02:00
Klaus Basan
65c94cf2c3 Style 2018-06-20 00:58:36 +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
9777bf963c Style 2018-06-18 03:04:32 +02:00
Klaus Basan
70c15f62cd Ref T275, allow to disable airspace watchdog (needed when debugging to avoid timeouts) 2018-06-13 14:00:32 +02:00
Klaus Basan
88b2da94a3 Ref T275, elevation plane improvements
* setRadiusOrMinimum
* ASSERT if there is no radius
2018-06-13 14:00:11 +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
d8fb84c021 Ref T241, changed CAirspaceAnalyzer ctor so signals (CAirspaceMonitor) can be used 2018-05-22 13:20:08 +02:00
Klaus Basan
4ced6b4f97 Formatting 2018-05-18 00:24:58 +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
4876569a9d Ref T261, minor airspace monitor improvements and formatting 2018-05-08 16:06:45 +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
1b8383bee1 Guarding QTimer::singelShot operations, avoid to access dangling pointers 2018-05-08 16:06:39 +02:00
Klaus Basan
b5ba4013dd Formatting 2018-05-08 16:06:38 +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
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
0f1cec0e42 Ref T259, Ref T243 update client capabilities when receiving parts 2018-05-04 23:03:11 +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
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
d76ce109bd Ref T259, Ref T243 set elevation for provider if available in airspace monitor 2018-04-13 23:37:29 +02:00
Klaus Basan
6cb050a727 Ref T259, Ref T243 guess gnd flag in airspace monitor if not available 2018-04-13 23:37:26 +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
9dabef447f Ref T259, Ref T243 directly convert to Client capabilities enum in vatlib, do not use an interim enum 2018-04-13 23:36:47 +02:00
Klaus Basan
9e29858f95 Ref T259, Ref T243 automatically adjust situation gnd.flag from parts in airspace monitor
Turns parts GND flag into a situation gnd. flag, which would be compatible with network situation gnd flags.
2018-04-06 02:56:53 +02:00
Klaus Basan
27f97f729d Formatting 2018-04-05 02:54:44 +02:00
Klaus Basan
f64a4c432b Ref T259, Ref T243 client provider used to share info about the other clients
Goal: this info can be used in interpolation to decide if ground flags, parts etc are available
2018-04-05 02:54:42 +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
03af49348b Ref T259, Ref T243 formatting 2018-04-05 02:53:55 +02: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
Klaus Basan
10f942e702 Formatting, minor tweaks 2018-02-09 04:43:45 +01:00