Commit Graph

124 Commits

Author SHA1 Message Date
Lars Toenning
8604ddf06a refactor: Split InterpolationStatus related classes into separate files 2024-10-21 20:33:20 +02:00
Lars Toenning
e8ae835827 refactor: Fix spelling mistake 2024-10-21 20:33:20 +02:00
Lars Toenning
61282db956 refactor: Simplify CInterpolator::getInterpolation()
Avoid requiring a do {} while(false) with nested if & break by using a simple if()
2024-10-21 20:33:20 +02:00
Lars Toenning
a599cc2792 refactor: Remove clear() method from CInterpolator
clear() was only required by a unittest to execute two tests directly
after another. This can also be done in a cleaner way by creating a new
CInterpolator instead of requiring a separate method for resetting the interpolator.
2024-10-21 20:33:19 +02:00
Lars Toenning
78d0dc4435 refactor: Change variable type of aircraftNumber
The aircraft number should always be positive
2024-10-21 20:33:19 +02:00
Lars Toenning
4b05c4200d refactor: Remove outdated commented code 2024-10-21 20:33:19 +02:00
Lars Toenning
761be14e1a refactor: Clarify names of members of CInterpolatorPbh 2024-10-20 19:58:37 +02:00
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
970b7c3650 clang-format src 2023-04-18 16:07:19 +02:00
Mat Sutcliffe
916448ef6a [Clang][Windows] Remove workarounds 2021-10-11 14:20:07 +01:00
Mat Sutcliffe
a592bb2bbe Include style 2021-09-18 15:07:49 +01:00
Mat Sutcliffe
57d32da826 Use nested namespaces (C++17 feature) 2021-09-18 15:07:48 +01:00
Mat Sutcliffe
b2ae19111f Issue #77 Break cyclic dependencies between CAircraftParts, CAircraftLights, CAircraftSituation classes 2020-12-19 18:50:40 +00:00
Mat Sutcliffe
63e8de8f00 Issue #77 getLogCategories returns a simple QStringList instead of our own class 2020-12-19 18:50:34 +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
Mat Sutcliffe
670b1a1986 Fix cppcheck and compiler warnings 2020-06-29 18:34:16 +01:00
Klaus Basan
b71dfe482c Ref T778, further elevation verifications 2020-06-12 18:42:44 +01:00
Klaus Basan
46d417c5a2 Ref T778, style and comments, debug hints 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
e21dab0605 Ref T773, if possible skip update of situations with elevation in interpolator 2020-06-12 18:42:34 +01:00
Klaus Basan
af12325856 Ref T773, always set setup for interpolation logger 2020-06-12 18:42:32 +01:00
Klaus Basan
5f1bd14fcf Ref T773, style 2020-06-12 18:42:31 +01:00
Klaus Basan
009719a7be Ref T681, fixed handling of CG from DB
* consider settings
* remember DB CG data correctly
2019-09-16 22:41:28 +01:00
Klaus Basan
017e9402fd Ref T681, use simulator or DB CG as in settings 2019-09-16 22:38:07 +01:00
Klaus Basan
6d490e9a49 Ref T681, preparations to use CG from DB
* renamed to "getSimulatorCG" ...
* pass simulator settings to sim.env.provider to decide what CG to use
* store DB CG and init it when aircraft is added
* style
2019-09-16 22:38:07 +01:00
Klaus Basan
da8e504d67 Ref T668, minor style changes and improvemments 2019-05-23 13:00:26 +02:00
Klaus Basan
da2b3e05fd Minor interpolator improvements, display 2nd invalid version instead of first 2019-05-13 11:21:02 +02:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Mat Sutcliffe
225ff81252 Ref T485 Adjust CLogMessage and CStatusMessage call sites to use the new API. 2019-02-22 20:34:55 +00:00
Mat Sutcliffe
333ea1b8df Fixed clazy warnings: empty QStringLiteral. 2019-02-22 20:23:32 +00:00
Klaus Basan
cb422d72cf Misc. style issues interpolation/model adding 2018-11-22 19:55:02 +01:00
Klaus Basan
5005417f54 Ref T429, interpolator adjustments
* use utility functions
* verify in linear interpolator
2018-11-16 02:49:53 +01:00
Klaus Basan
41685df4ee Ref T421, interpolation log messages in interpolator(s) 2018-11-04 17:42:47 +01:00
Klaus Basan
5193745d12 Ref T397, improved handling and check of interpolated situation 2018-11-04 17:42:43 +01:00
Klaus Basan
48d5e0daec Ref T397, interpolation / interpolant fixes
* fixed fillSituationsArray to return correct initial situations
* VERIFY ranges and times to avoid inf/NaN and issues in general
* if invalid situations, continue with last situation
* count invalid situations
2018-11-04 17:42:43 +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
29f464189b Move template in-class function definitions out of class
Keeping them defined in-class caused linker issues with the extern template
declaration in a non-optimized MinGW debug build. Apparently it did not
inline them but instead relied on the extern declaration and expected
them defined somewhere else.
2018-08-31 20:08:14 +02:00
Klaus Basan
fe4fd31688 Renamed to FullInterpolation (formerly VtolInterpolation) 2018-08-09 01:39:21 +02:00
Klaus Basan
b81ff8b9d6 Ref T299, set "pitch on ground" in interpolator 2018-08-09 01:25:05 +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
6af1998f58 Style and comments 2018-07-12 18:29:42 +02:00
Klaus Basan
621396e66d Ref T268, consider altitude checking same situation 2018-07-10 17:17:29 +02:00
Klaus Basan
1f689a8830 Ref T275, Ref T280, Ref T245 FSX simulator improvements
* request model info
* stricter checks (asserts)
* display simulator debug messages in simulator view (not as normal status message)
2018-07-09 22:30:16 +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
e0b95859c1 Ref T275, unified elevation missed info -> getElevationsFoundMissedInfo() 2018-06-20 00:58:40 +02:00
Klaus Basan
3f14be6517 Ref T275, Ref T280, parts guessing and interpolating can have different ratios 2018-06-20 00:58:37 +02:00
Klaus Basan
c7482ebc1a Ref T275, use refactored and improved elevation functions in interpolator 2018-06-18 03:04:47 +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
fe396e19aa Ref T275, interpolator improvements
* flags for same parts/situation status
* transfer elevation (Ref T273) from previous situation
* preset elevation based on network situations if possible
* set elevation info
* function CInterpolator::initInterpolatedSituation
2018-06-13 13:59:59 +02:00