Commit Graph

2843 Commits

Author SHA1 Message Date
Lars Toenning
1d4aa96e9b Add warning about expire and redesign warning/error popup
Fixes Github Issue #38
2020-06-29 17:22:09 +01:00
tzobler
66a1a87805 protocol type -MD added 2020-06-12 19:07:57 +01:00
Klaus Basan
6fc3d55d9a Fixed mute handling and audio LED
* AFV client has own "changedMute" signal
* unmute if started/stopped AFC client
* in statusbar also check audio start/stop to refresh LEDs
* see https://discordapp.com/channels/539048679160676382/539486309882789888/713491666971000872
2020-06-12 18:42:57 +01:00
Klaus Basan
24bc57ac32 [Weather] Allow to trigger reload of weather from UI 2020-06-12 18:42:57 +01:00
Klaus Basan
3099464668 Message texts 2020-06-12 18:42:56 +01:00
Klaus Basan
991ba5ede8 [FSD] Style and comments 2020-06-12 18:42:56 +01:00
Klaus Basan
a1f8525fcb [AFV] Make sure the failures go to the log.
see https://discordapp.com/channels/539048679160676382/539846348275449887/707618814237343764
2020-06-12 18:42:56 +01:00
Roland Rossgotterer
9fa3221abc Replace deprecated endl with Qt::endl 2020-06-12 18:42:54 +01:00
Klaus Basan
1e633a5704 [AFV] Use heartbeat to re-connect to AFV
* some utility functions
* reset values after disconnect
2020-06-12 18:42:54 +01:00
Klaus Basan
fccaf1fae1 Fixing some bugs in simulator, use CCrashHandler::instance()->crashAndLogAppendInfo IF NOT shutting down 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
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