Commit Graph

1120 Commits

Author SHA1 Message Date
Klaus Basan
083742b4ca [FS9] Minor style fixes 2020-06-12 18:42:56 +01:00
Klaus Basan
58524a63ea [UI] Smaller UI adjustments 2020-06-12 18:42:54 +01:00
Klaus Basan
53b22f62a9 [CPP check] Fixed minor FS9 CPP check issue (+ small style adjustment) 2020-06-12 18:42:54 +01:00
Klaus Basan
86cd61e408 [FSUIPC] Log.message for weather write 2020-06-12 18:42:54 +01:00
Roland Rossgotterer
2c3c9a123a [FS9] Finalize aircraft parts animations
This change implements very basic parts animation including
- Gear up & down
- Flaps up & down
- Engine on & off
2020-06-12 18:42:54 +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
12613c9ed4 [FSUIPC] Style, use const "lists" to iterate 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
2497e689af [FSX/P3D] self adjusting timer for listener
P3D with remote connections caan be SLOW before running in a timeout
2020-06-12 18:42:52 +01:00
Klaus Basan
387d47ebf8 Ref T786, test code for the CSLOT crash
Can be removed if the issue is solved.
2020-06-12 18:42:52 +01:00
Klaus Basan
9235f3232e Improvements during shutdown
* stop listeners
* check if airspace monitor and FSD still exist
* stop listeners on "aboutToShutdown()"
* check for processEventsFor(500)
2020-06-12 18:42:52 +01:00
Klaus Basan
8f5e24fe0b [FS9] Preparation for sending parts
* function sendMultiplayerPositionAndPartsFromInterpolation sending parts and positions
* bogus function MPParam aircraftPartsToFS9 (needs to be implemented)
* changed to sendMultiplayerParts(const CAircraftParts &parts) - like for positions
* fixed some smaller bugs
2020-06-12 18:42:51 +01:00
Klaus Basan
e91b88691a [FS9] Const correctness 2020-06-12 18:42:51 +01:00
Klaus Basan
41f28ea858 [FS9] Fixes
* guards like "if (!m_fs9Host.data()) return"
* bogus function "sendMultiplayerParts" (at least ot have it in place)
* fixed "testSendSituationAndParts"
2020-06-12 18:42:51 +01:00
Klaus Basan
f9bb71c8ee Ref T786, FSX/P3D METAR (weather inject)
* allow to select which layers are converted to METAR string
* allow to pass sim.flag (FSX/P3D)
* winds aloft seem to crash FSX, disabled(!)
2020-06-12 18:42:51 +01:00
Klaus Basan
17cebfb8d3 Ref T786, further checks (shutdown, empty values) 2020-06-12 18:42:51 +01:00
Klaus Basan
8fe11c7633 Ref T786, used weather data printer code for weather description (to QString) 2020-06-12 18:42:50 +01:00
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
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
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
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