Commit Graph

108 Commits

Author SHA1 Message Date
Mat Sutcliffe
6c05c5249d When calling arg() on a QString constructed from a literal, use QStringLiteral. 2019-02-22 20:23:47 +00:00
Mat Sutcliffe
ace7650ebe Ref T480 No need for QStringLiteral when concatenating with %, use UTF-16 string literals. 2019-02-22 20:23:46 +00:00
Klaus Basan
7807a05f2a Ref T429, functions for angle, heading and situation
* normalize angle -180/+180 when set on situation
* clamp vector function
2018-11-16 02:49:53 +01:00
Klaus Basan
839c75effc Ref T429, style and CLANG warnings 2018-11-16 02:49:53 +01:00
Klaus Basan
2b51094b02 Ref T412, Ref T227, lists/parts improvements
* Ctor with timestamp
* detect/improved state detection (e.g. "takeoff")
* objects outside range
2018-11-04 17:42:47 +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
81bbcc56cd Ref T390, Ref T372, extended check for coordinate issue
See https://swift-project.slack.com/archives/G7GD2UP9C/p1538849878000100
2018-10-07 16:17:28 +02:00
Klaus Basan
1280359fe1 Style 2018-10-07 16:17:27 +02:00
Klaus Basan
484d89dd85 Ref T390, Ref T372, check for equal coordinates to avoid NaN 2018-10-07 16:17:26 +02:00
Klaus Basan
7300a2af1f Ref T384, get closest ATC stations online 2018-10-05 17:39:59 +02:00
Klaus Basan
8eb51244ae Ref T372, avoid issues by calculating with null values 2018-10-05 17:39:56 +02:00
Klaus Basan
b4e17ed091 Ref T322, renamings 2018-09-08 15:36:21 +02:00
Roland Winklmeier
5e38936fd2 Fix weak vtables 2018-08-25 22:12:06 +02:00
Klaus Basan
359d56b6f6 Weather uses null altitude, https://swift-project.slack.com/archives/G7GD2UP9C/p1534378412000100 2018-08-16 14:44:14 +02:00
Klaus Basan
660a1adb71 Numeric double cast/comparison 2018-08-16 14:44:09 +02:00
Klaus Basan
c8e214cef4 Use Mixin::String so that string conversion is properly called for CElevationPlane 2018-07-11 23:48: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
27f43747ae Ref T268, elevation plane improvements 2018-07-10 17:17:25 +02:00
Klaus Basan
ead1a93597 Style 2018-07-09 22:30:54 +02:00
Klaus Basan
c168262159 Ref T275, utility functions in simulated aircraft, sim object .. 2018-07-09 22:30:21 +02:00
Klaus Basan
fc1a2bbb0f Ref T275, Ref T280, avoid nan (not a number) values in PQs/elevation 2018-06-20 00:58:45 +02:00
Klaus Basan
2c55015d26 Ref T275, ctor and option to check if gnd elevation "is better" 2018-06-18 20:55:06 +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
d1157bb5c6 Ref T275, moved "preset" of elevation to situation class (from interpolator) 2018-06-18 03:04:41 +02:00
Klaus Basan
de3cb71706 Ref T275, general improvement in value object added comparePropertyByIndex 2018-06-13 14:00:26 +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
a3b8d776a0 Ref T273, high level functions to compare "equal" situations
Remark: "==" compares a lot of attributes, those will only compare values to determine equal PBH/vector ...
2018-06-13 13:59:48 +02:00
Klaus Basan
65ad35bfab Fixed div. by 0 ("zero") warning 2018-05-29 00:56:38 +02:00
Klaus Basan
23c54938ea Ref T261, unify unit handling in situation altitude related values
* this is an optimization, it would work without that, but there are numerous calculations in interpolation which are faster and easier to debug in the same unit
* PQ switch unit functions use "const &PQUnit"
2018-05-08 16:06:53 +02:00
Klaus Basan
8e3b55b4ca Ref T261, utility functions in value classes
* set offset values
* do not change PQs if PQ is null
* sorted by callsign
2018-05-08 16:06:52 +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
bed79237bf Ref T261, aircraft situation
* null altitude
* ground functions
* CG ("member")
* supporting CAircraftSituationChange
2018-05-08 16:06:43 +02:00
Klaus Basan
d021e2dcce Formatting, renaming 2018-05-08 16:06:40 +02:00
Klaus Basan
056c257182 Ref T260, utility functions to set provider, plane ctor 2018-05-08 16:06:34 +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
0b4637054a Formatting 2018-05-04 23:03:16 +02:00
Klaus Basan
9d484df5ed Ref T259, Ref T243 compare situation by vector 2018-05-04 23:03:07 +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
476768f6ec Ref T259, Ref T243 unit function for elevation plane 2018-04-13 23:37:16 +02:00
Klaus Basan
28b270a4cf Fix, wrong assert 2018-04-13 23:36:36 +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
0c877e1575 Ref T259, Ref T243 coordinate list and improved "find" functions in IGeoObjectList 2018-04-05 02:54:24 +02:00
Klaus Basan
14fb35a975 Formatting 2018-02-05 03:45:36 +01:00
Klaus Basan
e7f2d639c1 Ref T231, arbitrary radius for elevation plane 2018-01-30 20:34:47 +01:00
Klaus Basan
92d4294972 Ref T236, isNull default implementation of ICoordinateGeodetic
Also interface can be checked agains null
2018-01-30 20:31:50 +01:00
Klaus Basan
5ec095684a Ref T231, utility functions
* altitude
* situation
* callsign set
* elevation set
2018-01-30 20:31:26 +01:00
Klaus Basan
c39d4f66a3 Setting parent object for timers and formatting 2018-01-30 20:30:39 +01:00
Klaus Basan
1948d067e4 Ref T225, set height to NULL 2018-01-30 20:29:27 +01:00
Klaus Basan
656d86a4ef Ref T180, isNull for CCoordinateGeodetic / situation 2017-11-04 21:44:43 +01:00