Commit Graph

9283 Commits

Author SHA1 Message Date
Klaus Basan
e63129267d Ref T786, smaller improvements
* allow to use ICoordinateGeodetic, not the CCoordinateGeodetic implementation only
* allow to init weather grid by initial ICoordinateGeodetic
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
95ca63ce6d Ref T786, fixed weather sample
* RR found that no alt value means a huge number of grid points is parsed
* see https://discordapp.com/channels/539048679160676382/539925070550794240/701762348506939693
2020-06-12 18:42:51 +01:00
Klaus Basan
4af35e92c1 Ref T786, weather checks
* avoid NULL distances
* avoid incomplete requests
2020-06-12 18:42:51 +01:00
Klaus Basan
5ef25d4a41 Ref T786, fixed weather sample
* RR found that no alt value means a huge number of grid points is parsed
* see https://discordapp.com/channels/539048679160676382/539925070550794240/701762348506939693
2020-06-12 18:42:51 +01:00
Klaus Basan
0a2b25e409 [PQ] Parsing with default unit, bug fixed 2020-06-12 18:42:51 +01:00
Klaus Basan
170da452ee [Weather] Message that "real weather is loading" 2020-06-12 18:42:51 +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
1d72d89461 [FSD] Fix UNIT tests, as pilot rating now is correctly send 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
2156eb1831 [Matcher] do not ASSERT without modelstring, try default model or give up 2020-06-12 18:42:50 +01:00
Klaus Basan
1bdcd4ac9a [Parts] Experimental try with aircraft parts, see https://discordapp.com/channels/539048679160676382/539846348275449887/701438699048796280 2020-06-12 18:42:50 +01:00
Klaus Basan
70766beea8 Ref T786, make sure to request weather if scenario/settings have changed and/or weather was activated 2020-06-12 18:42:50 +01:00
Klaus Basan
9430bb55cb Ref T786, make sure pending requests can time out and are removed
Avoid one broken requests blocks everything
2020-06-12 18:42:50 +01:00
Klaus Basan
055ecbc022 cockpit UI, changed order of RX/TX 2020-06-12 18:42:50 +01:00
Klaus Basan
50f8b09b62 Ref T786, weather data parser smaller improvements 2020-06-12 18:42:50 +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
0bf9ddbe2c Simulator settings, always display settings directory
RP FSC eV discussion
https://discordapp.com/channels/539048679160676382/594962359441948682/700487653556224070
2020-06-12 18:42:50 +01:00
Klaus Basan
42cd7b9ad8 Ref T786, UI weather component aligned to identifier 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
58583d3ffa Ref T786, simulator context
* use identifier based "requestWeatherGrid"
* injectWeatherGrid now public
* clean m_lastWeatherPosition if weather is de-activated
* inject weather CContextSimulator::onWeatherGridReceived

1) this automatically injects the weather, the callback is not needed
2) the callback was the part which crashed
2020-06-12 18:42:50 +01:00
Klaus Basan
e7875c3af8 Style 2020-06-12 18:42:49 +01:00
Klaus Basan
7304013eea Ref T786, weather manager
* adjusted to new requestWeatherGrid
* use fetchNextWeatherDataDeferred to make sure follow up calls are decoupled
* for callbacks use weatherRequest.callback.singleShot so it is called in correct thread
2020-06-12 18:42:49 +01:00
Klaus Basan
cc77183b05 Ref T786, changed provider interface, addded identifier based version
* virtual void requestWeatherGrid(const BlackMisc::Geo::ICoordinateGeodetic &position, const BlackMisc::CIdentifier &identifier)
* CWeatherGridAware function do not need to be virtual
2020-06-12 18:42:49 +01:00
Klaus Basan
d5a81a349b 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
cfc748420c Ref T786, stub for getting description of weather grid 2020-06-12 18:42:49 +01:00
Klaus Basan
0fa6a6e4c3 Ref T786, singleShot for CSlot 2020-06-12 18:42:49 +01:00
Klaus Basan
388138203e [FSD] Send correct pilot rating, use threadsafe getters in some places
The thread safety is still premature for the FSD client class.
However, most likely no critical as those values have to be preset and never change.
2020-06-12 18:42:49 +01:00
Klaus Basan
000d0da92a [UI] Internals page
* changed to callsign completer (combobox too long)
* allow to display own parts
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
4d7468f913 [FSD] Check attributes of full JSON parts 2020-06-12 18:42:48 +01:00
Klaus Basan
70c88f0982 [UI] Make completer length font size relative 2020-06-12 18:42:48 +01:00
Klaus Basan
668659248e Send distance if own aircraft has been moved 2020-06-12 18:42:48 +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
828b57f5a2 [AFV] Log. messages 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
926684fb87 [Weather] Weather data printer
* removed slots
* typo
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
df69ef47a0 [UI] Default sizes for dock widgets plus some smaller fixes:
* renamings
* reset all to defaults
* sizes
2020-06-12 18:42:48 +01:00
Klaus Basan
465c8fd81d [Weather] Minimal style fixes 2020-06-12 18:42:48 +01:00
Klaus Basan
0d66a995ce Context menus to temp.disable parts (for single aircraft) and "0" zero pitch 2020-06-12 18:42:48 +01:00
Klaus Basan
9618073a04 [Context] "isRemoteAircraftSupportingParts" as context function (not only provider function) 2020-06-12 18:42:48 +01:00
Klaus Basan
148368ca0c Some fixes for interpolation setups
* added missing signal
* refresh list on reload button press
* display pitch value
* list ctor for single object
2020-06-12 18:42:48 +01:00
Klaus Basan
9b031bb582 [PQ] Allow to provide a default unit for parsing, e.g. "0" -> "0ft" 2020-06-12 18:42:47 +01:00