Commit Graph

1164 Commits

Author SHA1 Message Date
Klaus Basan
579a3b28e1 Ref T786, emulated sim. dialog weather support
* display weather
* request weather
2020-06-12 18:42:50 +01:00
Klaus Basan
026e19add0 Ref T786, use identifier based requestWeatherGrid in simulator plugins 2020-06-12 18:42:50 +01:00
Klaus Basan
e7875c3af8 Style 2020-06-12 18:42:49 +01:00
Klaus Basan
3be498a347 Ref T786, make sure callbacks are called in correct thread
* callback.singleShot
* shutdown guards, "myself"
* BLACK_VERIFY
* Qt::QueuedConnection
2020-06-12 18:42:49 +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
8278a7d5e6 [P3D] Adjustments for P3D v5
* guess version
* added new version selection
2020-06-12 18:42:48 +01:00
Klaus Basan
d96c5e51e3 Weather support in emulated driver 2020-06-12 18:42:48 +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
a3f646a792 [FS9] Function for at least halfway correct engine type 2020-06-12 18:42:46 +01:00
Klaus Basan
124432ceb1 [FS9] Experimental fix for FS9 autoconnect
No idea if this fixes the auto-connect issue, should not harm either
2020-06-12 18:42:46 +01:00
Klaus Basan
933fb2d758 [FS9], timer guard "myself" 2020-06-12 18:42:46 +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
90e77ac9f1 [FS9] Weather grid checks 2020-06-12 18:42:45 +01:00
Klaus Basan
a0b8fbd158 [FS9] Style 2020-06-12 18:42:45 +01:00
Klaus Basan
f507d6d9cb [FG] Use the same adjustments as in XPlane
* no ASSERT for connect checking
* renamed to onDBusServiceUnregistered
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
524fe1a459 [Weather] Style 2020-06-12 18:42:44 +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
46d417c5a2 Ref T778, style and comments, debug hints 2020-06-12 18:42:43 +01:00
Klaus Basan
829777bf3a Ref T778, added "likelyOnGroundElevation" as parameter for "ememberElevationAndSimulatorCG" 2020-06-12 18:42:43 +01:00
Klaus Basan
507c9e57d7 Guard to avoid issues during shutdown 2020-06-12 18:42:42 +01:00
Klaus Basan
90017f2e79 Minor style 2020-06-12 18:42:39 +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
3d1dad989e [TCAS] Fixed "mixed" values for debug/TCAS xswiftbus.conf file
Also only update if simulator XPlane is not connected, otherwise values are updated there
This allows to update the values BEFORE XPlane starts and avoids a restart
2020-06-12 18:42:38 +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
38a7542265 [FG] Fix compiler warning 2020-06-12 18:42:37 +01:00
Lars Toenning
469a057a86 [FG] Fetching elevation from sim 2020-06-12 18:42:37 +01:00
Lars Toenning
22a70e083e [FG] Enhancing version compatibility check 2020-06-12 18:42:37 +01:00
Lars Toenning
42fd0ed86e Add support for non multi-arch linux distros 2020-06-12 18:42:37 +01:00
Lars Toenning
4a7af7ee3d [FG] Sending AI ground speed to FG 2020-06-12 18:42:37 +01:00
Lars Toenning
8053504acb [FG] Getting ground elevation 2020-06-12 18:42:37 +01:00
Klaus Basan
b1d1880d43 Emulated driver: Use QPointer for widget as the widget can be deleted elsewhere as well 2020-06-12 18:42:35 +01:00
Klaus Basan
59f8a7f88b Ref T773, [FG] avoid "NaN" elevations 2020-06-12 18:42:35 +01:00
Klaus Basan
a5f4705bb1 Ref T773, style (simulator) 2020-06-12 18:42:35 +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
a7ae5290d0 Utility function 2020-06-12 18:42:33 +01:00
Klaus Basan
25b30ccf34 Ref T773, style/typo 2020-06-12 18:42:33 +01:00
Klaus Basan
9f911b7e55 Ref T773, use the callback for testing in emulated driver (same code as XPlane et.al.) 2020-06-12 18:42:32 +01:00
Klaus Basan
a629b70724 Ref T773, clear log when written, set object name for logger 2020-06-12 18:42:31 +01:00
Klaus Basan
60b556f118 Ref T773, allow to set test elevation (from log.display) 2020-06-12 18:42:31 +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