Commit Graph

394 Commits

Author SHA1 Message Date
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
31c0f20ac6 Style 2021-07-13 17:51:57 +01:00
Mat Sutcliffe
184c0e53fb [XPlane] Improve error message 2021-07-13 17:51:56 +01:00
Mat Sutcliffe
371c1f4f7c Issue #77 Break cyclic dependency between CLogCategory and numerous classes 2020-12-19 18:50:34 +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
802576eda9 Issue #77 Rename 2020-08-29 14:16:11 +01:00
Mat Sutcliffe
e710c777ab Issue #17 Fix aircraft labels setting not being updated in xswiftbus
Also related tidying up.
2020-08-13 18:05:19 +01:00
Mat Sutcliffe
19d88d1740 Issue #17 Restore aircraft labels with math and logic cribbed from LiveTraffic's XPMP2 2020-08-12 20:09:23 +01:00
Mat Sutcliffe
0a6d9e6081 Issue #17 Remove aircraft labels (not supported in xpmp2) 2020-08-02 23:00:22 +01:00
Mat Sutcliffe
2ae0352e75 [doxygen] Fix broken groupings 2020-08-01 19:48:37 +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
4e45249142 Use "fixed "gear down" if on ground.
Reason: Some sims do send incorrect gear down.

Follow up of T778
2020-06-12 18:42:48 +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
6ceb91ac4f Ref T778, fix getRemoteAircraftData
* send waterFlags as DBus int
* waterFlags.clear()
* CDBusMessage::appendArgument(const std::vector<bool> &array)

squash! Ref T778, fix getRemoteAircraftData
2020-06-12 18:42:45 +01:00
Klaus Basan
b5d100b71b Ref T778, style 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
Mat Sutcliffe
7c4fe83799 Ref T778 XSwiftBus service emits a signal when scenery is loaded 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
e9decab36a Avoid ERROR: Missing XSWIFTBUS_COMMIT variable
see discussion: https://discordapp.com/channels/539048679160676382/539925070550794240/687795747403595847
2020-06-12 18:42:38 +01:00
Lars Toenning
42fd0ed86e Add support for non multi-arch linux distros 2020-06-12 18:42:37 +01:00
Klaus Basan
08186e6559 Ref T773, log.categories for XSwiftBusProxy 2020-06-12 18:42:35 +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
f4f34341e6 [xswiftbus] getElevationAtPosition also returns latitude and longitude 2020-06-12 18:42:31 +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
39907bf7ea [XP driver] fixed bug that inverted engines on/off state 2020-06-12 18:42:30 +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
Mat Sutcliffe
4bfa5d5f40 Fix assert due to NaN in CXSwiftBusTrafficProxy::getElevationAtPosition 2020-01-25 16:55:51 +00: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