Commit Graph

10194 Commits

Author SHA1 Message Date
Lars Toenning
3bc2d4062c refactor: Rename CInterpolatorPbh to CInterpolatorLinearPbh 2024-10-21 20:33:22 +02:00
Lars Toenning
2f3e4fee1e refactor: Move PBH interpolator to inidivdual Interpolants
This allows each interpolant to specify on its own which PBH
interpolator should be used. Currently only the linear PBH interpolator
is available, but another PBH interpolator will be added for velocity.

This removes some protected data from the IInterpolator interface as well,
which conforms to C++ Core Guideline C.113 ("Avoid protected data").
2024-10-21 20:33:22 +02:00
Lars Toenning
e247f20482 refactor: Remove unused sceneryOffset in aircraft situation 2024-10-21 20:33:22 +02:00
Lars Toenning
2cd88fa493 refactor: Simplify interpolatePositionAndAltitude method 2024-10-21 20:33:22 +02:00
Lars Toenning
8253b73db2 refactor: Split position/altitude and groundfactor interpolation 2024-10-21 20:33:21 +02:00
Lars Toenning
a27c2b3f51 refactor: Move OnGround information to own class 2024-10-21 20:33:21 +02:00
Lars Toenning
8b44d3fd4e refactor: Remove unused OnGroundDetails 2024-10-21 20:33:21 +02:00
Lars Toenning
5df5fd3ef6 refactor: Remove unused onGroundGuessing details 2024-10-21 20:33:21 +02:00
Lars Toenning
c132e025d8 refactor: Remove unused method 2024-10-21 20:33:21 +02:00
Lars Toenning
98a6cfe003 refactor: Simplify CAircraftSituation::setOnGroundFactor() 2024-10-21 20:33:20 +02:00
Lars Toenning
e949e6e5f3 refactor: Simplify CInterpolator::getInterpolatedParts() 2024-10-21 20:33:20 +02:00
Lars Toenning
4e43bf4807 refactor: Add missing include guard 2024-10-21 20:33:20 +02:00
Lars Toenning
ab8b1c8e8c refactor: Remove unused forward declarations
The forward-declared classes are already included directly
2024-10-21 20:33:20 +02:00
Lars Toenning
8604ddf06a refactor: Split InterpolationStatus related classes into separate files 2024-10-21 20:33:20 +02:00
Lars Toenning
3c10a9d9ca refactor: Extend documentation for CInterpolator 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
e66a089114 refactor: Add check for valid time fraction 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
8c787e59e9 refactor: Cleanup interpolator includes 2024-10-21 20:33:19 +02:00
Lars Toenning
1a6d7fba28 refactor: Clarify variable names in linear interpolator 2024-10-21 20:33:19 +02:00
Lars Toenning
784bf75e0d refactor: Require semicolon at end of test macros 2024-10-21 20:33:19 +02:00
Lars Toenning
6bafb74000 refactor: Add comment for interpolatePositionAndAltitude() 2024-10-20 19:58:37 +02:00
Lars Toenning
edb57edf82 refactor: Move InterpolatorPbh tests to separate file 2024-10-20 19:58:37 +02:00
Lars Toenning
761be14e1a refactor: Clarify names of members of CInterpolatorPbh 2024-10-20 19:58:37 +02:00
Lars Toenning
2c461095d9 refactor: Use existing CMathUtils function 2024-10-20 19:58:33 +02:00
Lars Toenning
3c6a8c72f5 fix(fsd): Add level to log message 2024-10-13 19:32:09 +02:00
Lars Toenning
9f94af6f5b chore: Upgrade to REUSE spec version 3.2 2024-10-13 19:32:09 +02:00
Lars Toenning
f65d54d750 fix(ui): Disable broken quick mapping wizard 2024-10-13 19:32:08 +02:00
Lars Toenning
da98932997 refactor: Rename old vatlib function 2024-10-13 19:32:08 +02:00
Lars Toenning
7a33e74fee fix: Add missing CLI option to swiftlauncher
The DBus server address selector tries to fetch the address from the
command line parser. But the option was only added to the parser for
CSwiftGuiStdApplications. This resulted in a log message from the parser.
2024-10-13 15:40:34 +02:00
Lars Toenning
cb86dac062 refactor: Remove outdated translations
QTranslation was not correctly installed anyway (goes out of scope
before starting the application and only loads the german translation).
i18n can be added later again.
2024-10-13 15:40:31 +02:00
Lars Toenning
ed83671196 refactor(fsx): Simplify condition 2024-10-13 15:29:11 +02:00
Lars Toenning
de7b820112 refactor: Remove weather support 2024-10-13 15:20:57 +02:00
Lars Toenning
5b6abbefaf refactor: Remove pushy note to enable crash dumps 2024-10-13 15:19:07 +02:00
Lars Toenning
45c8a7575a refactor: Disable crash dump upload by default 2024-10-13 15:19:07 +02:00
Lars Toenning
89b7e672a1 Revert "Ref T401, adjusted settings used in components"
This reverts commit 705a56b1cb.
Only the bool member of the CrashSettings class was used.
For simplification, use only the bool that was already used
previously to store this setting.
2024-10-13 15:19:02 +02:00
Lars Toenning
0dba1b8566 fix: Add FG to BuildConfig method 2024-10-13 08:52:48 +02:00
Lars Toenning
2c68c46d98 refactor: Remove COM sync button from cockpit page
This setting is simulator specific and can already be adjusted from the
simulator plugin settings. To avoid complexity, it should only be
adjustable from one location. As this setting doesn't need to be
adjusted often inflight, it should be fine to not have it directly
accessible.
This also fixes a previous issue, where a change of the setting within
the simulator plugin settings did not propagated to the cockpit page.
2024-10-13 08:52:47 +02:00
Lars Toenning
2db1ad87c8 refactor: Remove unused method from context 2024-10-13 08:52:47 +02:00
Lars Toenning
021de43e71 refactor: Remove "connected" LED from COM panel
The LED is a leftover from the pre-AFV voicerooms. The LED does not
light up when connected to UNICOM or CTAF frequencies which still can be
used to transmit & receive voice. This also removes the functionality
that the currently tuned station was displayed when hovering over the
"COMx" label. This feature was not documented and not known by many
users.
By removing these features, one context method is no longer required,
which further decouples the network context from the OwnAircraft context.
2024-10-13 08:52:47 +02:00
Lars Toenning
7875c5a18f refactor: Remove not used AFV map
Always use the VATSIM online map instead of providing our own map widget
2024-10-13 08:52:47 +02:00
Lars Toenning
b2000cf771 refactor: Remove unused method 2024-10-13 08:52:47 +02:00
Lars Toenning
9a852b78e9 refactor: Remove method without any effect
This also removes a dependency of the network context from the
OwnAircraft context
2024-10-13 08:52:47 +02:00
Lars Toenning
b6867445fa refactor: Remove secondary way to start/stop AFV client
To reduce complexity, there should only be a single way to start the AFV
client (done on connectionStatusChange of IContextNetwork)
2024-10-13 08:52:34 +02:00
Lars Toenning
61ee861d8e refactor: Replace CIdentifierSet with plain QSet 2024-10-13 08:52:34 +02:00
Lars Toenning
59ecbb5ab7 refactor: Add clang-tidy project config 2024-10-13 08:52:34 +02:00
Lars Toenning
9824390f80 fix: Enable probe config only when the sim is running locally
Enabling the terrain probe only works when running locally because it
directly accesses the simulator plugin.
2024-10-13 08:52:33 +02:00