Klaus Basan
1fb97755ce
[Weather] Only send weather if activated
2020-06-12 18:42:54 +01:00
Klaus Basan
bba07ef4c4
[AFV] Signal/handling for authentication failures
...
* authentication issues in AFV were silently handled
* and there was no re-try, which could mean an initial glitch COULD cause AFV not working properly
* NOW handling in AFV client and context
* also reset connection data so for a new session no old authentication token or check time is used
* check for "invalid" QDateTime(s)
2020-06-12 18:42:54 +01:00
Klaus Basan
9e6716e515
[AFV] Allow to log. input receiver
2020-06-12 18:42:54 +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
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
5678052b5d
Ref T786, enable weather in sim. if plugin changed
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
4af35e92c1
Ref T786, weather checks
...
* avoid NULL distances
* avoid incomplete requests
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
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
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
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
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
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
4d7468f913
[FSD] Check attributes of full JSON parts
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
828b57f5a2
[AFV] Log. messages
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
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
21e109e5e2
[AFV] Simulator settings changed signal
...
* in the cockpit "sync." can now be enabled/disabled
* settings signal allows to update UI in settings UI
2020-06-12 18:42:47 +01:00
Klaus Basan
afa5ba1fee
[FS9] Doxygen, no need to make enum value const
2020-06-12 18:42:46 +01:00
Klaus Basan
ea8198d26e
[AFV] Allow to set the tx/rx values for the AFV client
...
Simplified function
2020-06-12 18:42:46 +01:00
Klaus Basan
63cc2a7e3e
[AFV] Utility functions to update simulator settings
2020-06-12 18:42:46 +01:00
Klaus Basan
f14184ddc0
Style and minor UI tweaks
2020-06-12 18:42:45 +01:00
Klaus Basan
92d53a4077
[FG] Do not send modelstring or a shorter livery string for FG
...
* FG does not support modelstrings for "flyable" planes
* remove unused setSimInfo functions, consolidated, cleanup
* simulator dependent "getSwiftLiveryString"
* encapsulated in getConfiguredLiveryString, getConfiguredModelString
* see https://discordapp.com/channels/539048679160676382/567091362030419981/698124094482415616
2020-06-12 18:42:45 +01:00
Klaus Basan
b63e127b13
[AFV] Verbose logging only for dev.builds
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
Klaus Basan
ce9b9e3e5b
[FSD] Gradually increase number of read lines from FSD socket
...
* Avoid overflow by gradually reading more lines
* Also improved sending in the same way
2020-06-12 18:42:44 +01:00
Klaus Basan
919b6e9515
Fixed warning message
2020-06-12 18:42:43 +01:00
Klaus Basan
cc887ea0f8
Ref T778, also update sim.data if elevation did change
...
Use ISimulator::isEqualLastSent in equalPbhVectorAltitudeElevation
2020-06-12 18:42:43 +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
373e45e958
Ref T778, some smaller style fixes/improvements
...
for the "underground" airplanes as reported by AK
This does NOT fix the issue, but minor shortcomings
found during the investigation
* style
* checks for "developer" env.
2020-06-12 18:42:43 +01:00
Klaus Basan
f56adb7af4
[FSD] Ignore IVAO RegistrationInfo
2020-06-12 18:42:42 +01:00
Klaus Basan
5eaa8db1a2
[FSD] use Serializer::fromQString function, to static_cast
...
see https://discordapp.com/channels/539048679160676382/539925070550794240/694955298217263124
2020-06-12 18:42:42 +01:00
Klaus Basan
81049cd835
[FSD] Adjusted logging of unknown FSD types, queries ....
...
* made those simple log. messages
* only log. those once
See https://discordapp.com/channels/539048679160676382/539925070550794240/694927156748222475
2020-06-12 18:42:42 +01:00
Klaus Basan
299859646a
VATSIM data file parser "fixes"
...
- Limit the number of parser errors going to the log
- stop parsing if no attributes can be obtained (otherwise we see too many parser messages)
2020-06-12 18:42:42 +01:00
Klaus Basan
e13dcd7d7d
Fix for graceful shutdown to avoid "nullptr" issue
...
see https://discordapp.com/channels/539048679160676382/539925070550794240/694331123643187232
2020-06-12 18:42:42 +01:00
Klaus Basan
2cb10c1835
Minor fix to avoid issues
2020-06-12 18:42:42 +01:00
Klaus Basan
cb78453e7c
Make sure contexts are "gracefulShutdown"
...
The shutdown was NOT called as it was canceled because of being in shutdown mode
2020-06-12 18:42:42 +01:00
Klaus Basan
53ed37d7fd
Changed shutdown order in facade
...
* audio first, with disconnect
* then network
rational: logoff from the network first
2020-06-12 18:42:42 +01:00