Mat Sutcliffe
1f83d677f3
Changed BLACK_FALLTHROUGH to Q_FALLTHROUGH().
2019-02-22 20:35:12 +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
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
Mat Sutcliffe
333ea1b8df
Fixed clazy warnings: empty QStringLiteral.
2019-02-22 20:23:32 +00:00
Klaus Basan
7f7cf2e031
Ref T436, underflow detection for FSX
...
* utility functions
* force gnd flag to avoid underflow
2018-11-22 19:55:04 +01: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
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
Roland Winklmeier
ebe23a694b
Fix GCC7 fallthrough warnings
2018-10-05 17:39:58 +02:00
Klaus Basan
651ead5b51
Ref T335, misc improvements in value objects
...
* allow to reset PBH for terrain probe
* check for null altitude before converting
* function isTerrainProbe for model/aircraft
2018-09-08 15:36:25 +02:00
Klaus Basan
1755463ec4
Improved way to get situation with altitude offset
2018-08-26 15:26:51 +02:00
Klaus Basan
2461cfb0ba
Ref T302, register metadata functions
2018-08-13 02:59:37 +02:00
Klaus Basan
ff9d6147c8
Ref T299, pitch bank heading info
2018-08-07 20:41:03 +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
52513db63f
Ref T290, XPlane refactoring
...
* typo getRemoteAircraftsData -> getRemoteAircraftData (no "s")
* typo getEelevationAtPosition (double "Ee")
* get functions "const"
* added unit for some variables such as latitudeDeg
2018-07-17 19:04:50 +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
62f9beae89
Ref T268, aircraft situation improvements
...
* Transfer gnd. elevation
* find closest elevation
2018-07-10 17:17:24 +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
c24e1d9c16
Ref T275, extrapolate elevation function
...
* extrapolate will be used to "guess" elevation when a new network situation is received
* we guess the elevation until we receive it from provider
2018-06-18 03:04:44 +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
9777bf963c
Style
2018-06-18 03:04: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
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
06a835a5de
Ref T270, added properties for CAircraftSituation
2018-05-26 21:19:21 +02:00
Klaus Basan
7ad4c29d28
Ref T261, detect gnd.flag (from network) suppport, display gnd.flag info in UI
...
* add flag info in simulated aircraft
* allow to display info in UI
* unified naming to "contains" in situation list
* updated client provider
2018-05-12 21:40:13 +02:00
Klaus Basan
7aef1dcbbc
Formatting and minor tweaks/renamings
2018-05-08 16:06:54 +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
ef72cf7cd4
Ref T216, adjusted/improved ground guessing
2018-05-08 16:06:51 +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
0b7706471c
Ref T261, guess push back
2018-05-08 16:06:46 +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
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
bc4875afbb
Ref T259, Ref T243 functions to set/get ground details (situation)
2018-05-04 23:03:31 +02:00
Klaus Basan
63e5f75a1d
Ref T259, Ref T243 situation detects under and overflow
...
* details about altitude correction AltitudeCorrection
* function to correct altitude by detecting under/overflow
2018-05-04 23:03:13 +02:00
Klaus Basan
52dd7a754c
Ref T259, Ref T243 access to last interpolated situation to check if near ground
2018-05-04 23:03:08 +02:00
Klaus Basan
dd9efc9bb1
Ref T259, Ref T243 functions for ground factor/underflow interpolation
2018-05-04 23:03:04 +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
6a92ea4cb6
Ref T259, Ref T243 situation/parts/lights adjustments
...
* guessing now in parts/lights (so it can be used with all sims)
* minor renamings
* init FSX data definitions from parts
2018-04-13 23:37:20 +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
67e8f94481
Ref T259, Ref T243 renaming and adding flags in situation to also represent inbound situations
2018-04-05 02:54:20 +02:00
Klaus Basan
03af49348b
Ref T259, Ref T243 formatting
2018-04-05 02:53:55 +02:00
Klaus Basan
63d7e36389
Ref T251, also set GND info for own aircraft
2018-02-16 12:13:38 +01:00
Klaus Basan
69e2ed6efe
Ref T231, Ref T236, Ref T238 improvements based on Unit test
...
* check for a correct callsign (assert)
* set callsign if missing (fallback)
* resetLastInterpolation - null last inperpolation
2018-01-30 20:35:09 +01:00
Klaus Basan
ebd916f6d8
Ref T231, Ref T236, Ref T238 added ITimestampWithOffsetBased
...
* base class for offset timefeaturing classes
* used with parts/situations
2018-01-30 20:34:52 +01:00
Klaus Basan
851fbe165d
Ref T236, utility functions to set ground elevation
2018-01-30 20:31:43 +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
ca13c21943
Ref T231, utility functions
...
* corrected altitude also considering CG
* 0 if CG is NULL
2018-01-30 20:30:57 +01:00