Mat Sutcliffe
26af392085
Ignore null pointer warnings in rapidjson
2020-06-12 18:42:53 +01:00
Mat Sutcliffe
6e30da2c48
Update libxplanemp
2020-06-12 18:42:53 +01:00
Mat Sutcliffe
a7c696d385
Enable GCC and Clang warnings for zero being used as a null pointer
2020-06-12 18:42:53 +01:00
Mat Sutcliffe
20c6bef800
Fixed mistakes in CStatusMessage copy assignment operator
2020-06-12 18:42:53 +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
32605cd557
[AFV] Finer granularity for inc./dec. volume (hotkey)
2020-06-12 18:42:53 +01:00
Klaus Basan
f2e0e7b22e
[AFV] Renamed to "setGainRatio" as the value does not represent a volume, but a multiplier
2020-06-12 18:42:53 +01:00
Klaus Basan
8848faadfa
[AFV] Disabled the device output functions (not used)
...
Remark: might be used in AFV client, hence kept
2020-06-12 18:42:53 +01:00
Klaus Basan
7d51bedc3e
[AFV] misc style issues:
...
* object name
* simple style fixes
* some renamings
* comments
2020-06-12 18:42:53 +01:00
Klaus Basan
c1622951b3
Util. function for class name
2020-06-12 18:42:53 +01:00
Klaus Basan
5987e58043
[UI] Login, use remembered ICAO codes if there is no DB model
...
Remark: We need to see how this works, in some cases in
the past (previous version) his has caused odd behaviour
2020-06-12 18:42:53 +01:00
Klaus Basan
348a5573c4
Ref T768, made UI component a bit smaller as first trial
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
7b49f56695
[FSD] Use errorString for socket errors
2020-06-12 18:42:53 +01:00
Klaus Basan
15b3ac2daa
[FSD] Also log/display socker error string
2020-06-12 18:42:52 +01:00
Klaus Basan
1a71d8afe1
Style
2020-06-12 18:42:52 +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
Mat Sutcliffe
26bd157551
Ref T786 Fixed dangling pointer in CSlot::singleShot
2020-06-12 18:42:52 +01:00
Klaus Basan
5678052b5d
Ref T786, enable weather in sim. if plugin changed
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
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