Lars Toenning
bcc4bdd31e
Add SPDX identifiers for REUSE compliance
...
Co-authored-by: Mat Sutcliffe <oktal3700@gmail.com >
2023-10-03 09:29:49 +02:00
Lars Toenning
7ef0e6e1eb
Fix cppcheck warnings
2023-04-18 16:07:19 +02:00
Lars Toenning
970b7c3650
clang-format src
2023-04-18 16:07:19 +02:00
oktal3700
6c9b2890a7
Remove wrong assert
...
CG can be negative.
2022-08-27 16:08:11 +01:00
Mat Sutcliffe
0faa7ed8fc
Issue #94 Add new class CAircraftVelocity as member of CAircraftSituation
2022-01-03 16:38:47 +00:00
Mat Sutcliffe
2b72600937
Explicit template instantiations for mixins for value classes
...
To reduce compile time.
2021-10-11 14:20:07 +01:00
Mat Sutcliffe
57d32da826
Use nested namespaces (C++17 feature)
2021-09-18 15:07:48 +01:00
Mat Sutcliffe
eb6b0ff289
Fix clang-tidy and clazy warnings
2021-08-29 17:02:27 +01:00
Mat Sutcliffe
f228055229
Use fallthrough attribute (C++17 feature)
2021-07-13 17:56:29 +01:00
Mat Sutcliffe
d09336bd26
Issue #77 Break redundant cyclic dependencies
2020-12-19 18:50:40 +00:00
Mat Sutcliffe
b2ae19111f
Issue #77 Break cyclic dependencies between CAircraftParts, CAircraftLights, CAircraftSituation classes
2020-12-19 18:50:40 +00:00
Mat Sutcliffe
63f5d28622
Issue #77 Break cyclic dependency between CVariant and all other value classes
2020-12-19 18:50:36 +00:00
Mat Sutcliffe
1991b4847a
Issue #77 Break cyclic dependency between CPropertyIndex and all other value classes
2020-12-19 18:50:36 +00:00
Mat Sutcliffe
0971c8ce68
Issue #77 All classes propertyindex methods use CPropertyIndexRef and QVariant
2020-12-19 18:50:35 +00:00
Mat Sutcliffe
b80114213d
Issue #77 Move mixin classes to separate files
...
By separating them from unrelated code, their dependents
can use them without depending on unrelated code, which
in turn helps to reduce cyclic dependencies.
2020-08-29 14:16:17 +01:00
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