Commit Graph

237 Commits

Author SHA1 Message Date
Lars Toenning
9c879aea1c refactor: Rename verify macros 2024-11-11 13:02:36 +01:00
Lars Toenning
0db0c16668 refactor: Rename BlackConfig to swift::config 2024-11-11 13:02:35 +01:00
Lars Toenning
5266cc1909 refactor: Port to Qt 6 2024-11-09 08:15:44 +01:00
Lars Toenning
a27c2b3f51 refactor: Move OnGround information to own class 2024-10-21 20:33:21 +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
de7b820112 refactor: Remove weather support 2024-10-13 15:20:57 +02:00
Lars Toenning
b39e8c3a7e fix: Unify xswiftbus spelling 2024-04-24 22:51:57 +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
88badf9c7e [XP] Ignore altitude delta when remote aircraft is on ground 2023-01-24 20:15:16 +00:00
Lars Toenning
69ec713d18 Reset altitude delta for XP11 to zero 2023-01-08 17:38:54 +01:00
Mat Sutcliffe
b3e312e1d3 Use new dataref to compensate for XP12 temperature effect on altitude 2022-11-14 18:12:35 +00:00
Mat Sutcliffe
8a203046ed [XP] For own aircraft elevation, use dataref instead of terrain probe 2022-02-20 14:33:08 +00:00
Mat Sutcliffe
2ccee127e9 [XP] Get the ground elevation under the own aircraft 2022-02-03 20:43:45 +00:00
Mat Sutcliffe
3f57c66784 Issue #95 [XPlane] Get velocity data from xswiftbus in fast update timer timeout 2022-01-03 16:38:47 +00:00
Mat Sutcliffe
57d32da826 Use nested namespaces (C++17 feature) 2021-09-18 15:07:48 +01:00
Lars Toenning
577431ae49 Issue #100 [XP] Pass com-volumes in correct format
X-Planes dataref volumes are within [0..1]. swift expects them to be [0..100]

Transmit volume (i.e. mic-volume) should be independent from simulator volume.
2021-09-03 01:01:27 +02:00
Mat Sutcliffe
eb6b0ff289 Fix clang-tidy and clazy warnings 2021-08-29 17:02:27 +01:00
Mat Sutcliffe
2aeacf49a7 Issue #114 Use CSetBuilder and CMapBuilder 2021-08-29 17:02:27 +01:00
Mat Sutcliffe
a89ca2d59a Issue #37 Reset FPS counter when network is connected 2021-08-21 18:38:56 +01:00
Mat Sutcliffe
f311906d04 Issue #37 Emit signal when FPS drops below threshold 2021-08-21 18:38:56 +01:00
Mat Sutcliffe
9bfcf13ef8 Issues #72, #110 Use label and text colors settings in xswiftbus and XP driver 2021-08-21 18:38:55 +01:00
Mat Sutcliffe
33209fa1eb Use std::as_const (C++17 feature) 2021-07-13 17:56:31 +01:00
Mat Sutcliffe
184c0e53fb [XPlane] Improve error message 2021-07-13 17:51:56 +01: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
802576eda9 Issue #77 Rename 2020-08-29 14:16:11 +01:00
Klaus Basan
1fb97755ce [Weather] Only send weather if activated 2020-06-12 18:42:54 +01:00
Klaus Basan
114b36e611 [FSX/P3D] Simplified listener
* removed inner SimConnect_CallDispatch loop/CApplication::processEventsFor
* keep connection open, and check dispatch queue
2020-06-12 18:42:53 +01:00
Klaus Basan
2aa8e55b4b [XPlane] log listener
We ca see the listener working in the log,
as there are sometimes issue with that in MacOS
2020-06-12 18:42:52 +01:00
Klaus Basan
17cebfb8d3 Ref T786, further checks (shutdown, empty values) 2020-06-12 18:42:51 +01:00
Klaus Basan
026e19add0 Ref T786, use identifier based requestWeatherGrid in simulator plugins 2020-06-12 18:42:50 +01:00
Klaus Basan
fbf63457c1 Ref T786, make sure injectWeather is called in the correct thread 2020-06-12 18:42:49 +01:00
Klaus Basan
ea4a8f2462 [XP] Minor fixes/style XPlane driver 2020-06-12 18:42:49 +01:00
Klaus Basan
70f487cd01 Ref T778, turn XCSL models offset NULL into 0 (zero) 2020-06-12 18:42:45 +01:00
Klaus Basan
03dc641a5e Ref T778, CSimulatorXPlane::handleProbeValue use isWater 2020-06-12 18:42:45 +01:00
Klaus Basan
0e4938ebc5 [XP] Remove ASSERTs from XPlane driver
Based on https://discordapp.com/channels/539048679160676382/539486309882789888/697813600903102464
2020-06-12 18:42:44 +01:00
Mat Sutcliffe
22ebf6c5ea Ref T778 XSwiftBus traffic service prodives water/land flag for elevations 2020-06-12 18:42:44 +01:00
Klaus Basan
8206fc6bb9 Ref T778, special terrain probe value handling for XP
* only request terrain probe up to a max. distance
* detect "isSuspiciousTerrainValue"
* See also https://discordapp.com/channels/539048679160676382/539925070550794240/696786452855390218
2020-06-12 18:42:44 +01:00
Klaus Basan
829777bf3a Ref T778, added "likelyOnGroundElevation" as parameter for "ememberElevationAndSimulatorCG" 2020-06-12 18:42:43 +01:00
Klaus Basan
4d75c1576e [XPlane] Avoid elevation requests and minor style fixes in XPlane driver 2020-06-12 18:42:39 +01:00
Klaus Basan
08ef16e1a9 Ref T773, check for "nan" for elevations 2020-06-12 18:42:35 +01:00
Klaus Basan
fe1e976093 Ref T773, style 2020-06-12 18:42:34 +01:00
Klaus Basan
25b30ccf34 Ref T773, style/typo 2020-06-12 18:42:33 +01:00
Mat Sutcliffe
ecc38fede7 [XP driver] Fixed failure to find CSL package in certain directory layouts
Issue reported by Richard Åsberg on Discord. If one package is located
two subdirectories below the parent directory of another, the first one
might not be loaded.
2020-06-12 18:42:31 +01:00
Mat Sutcliffe
e50bb6d5c7 [xplane] Add monitoring of the number of minutes behind due to low FPS 2020-06-12 18:42:23 +01:00
Mat Sutcliffe
377b2f6a3e [xplane] Add monitoring of the number of track miles lost due to low FPS 2020-06-12 18:42:23 +01:00
Klaus Basan
785dc7f016 [XPlane][FG] Q_UNREACHABLE removal follow up
* removed CSimulatorXPlane::connectionFromString as this only works for session DBus
* renamed to "checkConnectionViaSessionBus"
* discussed around here: https://discordapp.com/channels/539048679160676382/539925070550794240/668105458300485652
2020-01-18 18:46:19 +01:00
Mat Sutcliffe
20a2f3b9e7 [XP driver] Using unsigned for timer call counters, to avoid UB on overflow 2020-01-13 18:53:30 +00:00
Mat Sutcliffe
35cfaebc7d [xplane] Added display of simulation time ratio in simulator component 2020-01-13 18:53:30 +00:00
Klaus Basan
72c3abb1e7 [xswiftbus] display FPS in simulator data window
* added driver getAverageFPS function
* display in simulator component
2020-01-07 19:57:28 +00:00