Klaus Basan
cc887ea0f8
Ref T778, also update sim.data if elevation did change
...
Use ISimulator::isEqualLastSent in equalPbhVectorAltitudeElevation
2020-06-12 18:42:43 +01:00
Klaus Basan
373e45e958
Ref T778, some smaller style fixes/improvements
...
for the "underground" airplanes as reported by AK
This does NOT fix the issue, but minor shortcomings
found during the investigation
* style
* checks for "developer" env.
2020-06-12 18:42:43 +01:00
Klaus Basan
acd5ee5a3c
Ref T773, use correct transfer, avoid continously transferring because of wrong coordinates
...
* do not use own situation as reference for ground plane, but original coordinates of ground elv. position
* some functions renamed
2020-06-12 18:42:35 +01:00
Klaus Basan
3b73f6aa25
Ref T773, adjust skip values (speed/radius)
2020-06-12 18:42:34 +01:00
Klaus Basan
25b30ccf34
Ref T773, style/typo
2020-06-12 18:42:33 +01:00
Klaus Basan
33b3cd5461
Ref T773, elevation handling style and minor improvements
2020-06-12 18:42:32 +01:00
Klaus Basan
5f1bd14fcf
Ref T773, style
2020-06-12 18:42:31 +01:00
Klaus Basan
e1498adc8e
Minor fixes, style
...
* make sure ATC view is updated when disconnected
* prepared rounding, can be enabled at any time
2020-01-07 19:57:22 +00:00
Klaus Basan
dac696bf69
Ref T717, functions to zero "0" PBH and GS
2019-09-16 22:41:38 +01:00
Mat Sutcliffe
980e1d7b80
Restored constexpr initialization and return-by-value of CMeasurementUnit constants
...
that were removed by commit 787b54108e .
For rationale, see the commits fef2bc528e , c8d78ada65 , 07ec7e6bc1 where these
were originally introduced.
2019-04-12 13:30:48 +01:00
Klaus Basan
246d9abca8
Ref T578, CG null and DB key improvements
2019-04-11 22:12:02 +01:00
Mat Sutcliffe
e9a4c49d68
Ref T547 Update license masthead in all source code files.
2019-02-22 20:36:43 +00:00
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