Commit Graph

137 Commits

Author SHA1 Message Date
Klaus Basan
991c7d59ef Ref T566, use "configurable" reverse lookup in network/airspace monitor parts 2019-04-11 22:12:12 +01:00
Klaus Basan
b2065b5da3 Ref T566, style 2019-04-11 22:12:12 +01:00
Klaus Basan
1055c0fb17 Ref T556, FP related fixes
* myself guard
* improved overlay messages
* removed redundant constexpr.
2019-04-11 22:11:35 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Klaus Basan
5fe4c95f4b Avoid assert without sApp/shutting down 2019-02-22 20:36:32 +00:00
Mat Sutcliffe
6c05c5249d When calling arg() on a QString constructed from a literal, use QStringLiteral. 2019-02-22 20:23:47 +00:00
Roland Winklmeier
ee8af9f4c6 Filter other pilots ghost aircraft when flying in shared cockpit mode
When flying in shared cockpit mode, both pilots log into the network.
One as pilot to be visible to ATC and other pilots. The other one as
observer. For the observing user, the pilots aircraft needs to be filtered.
Filter algorithm is using the same schema as vPilot does.

ref T427
2018-11-16 02:49:54 +01:00
Klaus Basan
60144ad7b1 Ref T409, use new livery string to resolve model/livery/ICAO 2018-11-04 17:42:45 +01:00
Klaus Basan
9dd06c4c84 Ref T397, fixed "disable" for fast positions 2018-11-04 17:42:41 +01:00
Klaus Basan
00d859d5b3 Ref T297, style and remarks for T297 2018-11-04 17:42:41 +01:00
Klaus Basan
dec0b12ea2 Ref T397, checks on vector to find root cause NaN/inf issue
* sometimes very large numbers (xxE38) in vector
* sometimes vectors which look correct, but exceed [-1,1]
2018-11-04 17:42:40 +01:00
Klaus Basan
1280359fe1 Style 2018-10-07 16:17:27 +02:00
Klaus Basan
1195eba417 Ref T385, OBS aircraft callsign
* in CAirspaceMonitor::onIcaoCodesReceived we know we deal with aircraft only and explicitly deal with it
* in other cases we can not tell if we deal with aircraft/ATC callsign for sure, we ignore invalid callsigns
2018-10-05 17:39:59 +02:00
Klaus Basan
e82695e6ae Ref T384, style 2018-10-05 17:39:58 +02:00
Klaus Basan
2eb1316f80 Ref T372, always store fast position updates 2018-10-05 17:39:57 +02:00
Klaus Basan
5c165c4fe7 Ref T373, style 2018-09-25 03:47:46 +02:00
Klaus Basan
a9f0cebe13 Ref T345, fixed bug: only one station must be updated with the new message 2018-09-17 18:28:53 +02:00
Klaus Basan
1f3650e7e2 Avoid empty callsign objects 2018-09-17 18:28:51 +02:00
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