Commit Graph

2688 Commits

Author SHA1 Message Date
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
Mat Sutcliffe
2f1e3f47f9 Track worker construction and destruction
Added debug log messages in case a worker still exists when the `qApp` is destroyed.
This would mean that a `quitAndWait` is missing or is being skipped somewhere.
2020-06-12 18:42:41 +01:00
Klaus Basan
0ee522426a Create "shutdown" message to find how far we get if swift hangs during shutdown 2020-06-12 18:42:41 +01:00
Klaus Basan
e6a12d45c4 Ref T778, improved "canLikelySkipNearGround" in airspace monitor
* use CAircraftIcaoCode::guessModelParameters as this gives us an impression of speed
* use "breakable" do/while block / fewer nested "if" levels
2020-06-12 18:42:41 +01:00
Klaus Basan
5bc09ed2c8 [PQ] added static "parsedFromString" 2020-06-12 18:42:41 +01:00
Klaus Basan
dab907df8c Graceful shutdown of SELCAL player with audio context 2020-06-12 18:42:41 +01:00
Klaus Basan
7d4e897b88 [AFV] Displayed sync. (integrated with COM unit) flag in cockpit 2020-06-12 18:42:40 +01:00
Klaus Basan
f8d59e7b04 [Worker] Use "m_validator->quitAndWait()" as validator now can "stop" long lasting functions 2020-06-12 18:42:40 +01:00
Klaus Basan
17ab66e50a [FSD] Added "FSD" as prefix for messages 2020-06-12 18:42:40 +01:00
Klaus Basan
077677134c [FSD] Clearer "too many lines" message 2020-06-12 18:42:40 +01:00
Klaus Basan
15353a1f1d Based on the Linux crash, already added some newer SIMS 2020-06-12 18:42:39 +01:00
Klaus Basan
76e42cc16e Minor fixes related to the SSL lib issue
https://discordapp.com/channels/539048679160676382/539925070550794240/691469857891418202
2020-06-12 18:42:39 +01:00
Klaus Basan
2607ebd7c6 Ref T776, renamed some matching settings
* the forced values did not force anything
* also adjusted UI form
2020-06-12 18:42:38 +01:00
Klaus Basan
5b3c011a15 Added "url" to signature "dataRead(BlackMisc::Network::CEntityFlags::Entity entity, BlackMisc::Network::CEntityFlags::ReadState state, int number, const QUrl &url)"
Allows to write log. messages with URL
2020-06-12 18:42:38 +01:00
Klaus Basan
7f4a68eb45 [WASAPI] another WASAPI fix trial
* disabled the initWindowsAudioDevices call as it seems to be pointless
* changed the order in CContextAudioBase::initVoiceClient
* init CAudioDeviceInfoList::allDevices BEFORE CAfvClient

see https://discordapp.com/channels/539048679160676382/539925070550794240/687769623827185671
2020-06-12 18:42:37 +01:00
Klaus Basan
24f3750843 [FSD] Use *-1 instead of "~" (not) for P/B inversion
* see discussion https://discordapp.com/channels/539048679160676382/539925070550794240/687390301530095634
* we now use *-1 inversion, not "~" (vPilot also uses *-1)
* rational: with "~" 0 becomes -1 (that is why we saw so many -1 P/B values on ground)
2020-06-12 18:42:37 +01:00
Klaus Basan
5decc7d917 [FSD] Use qFuzzyCompare for double comparison
fixes "warning: comparing floating point with == or != is unsafe"
2020-06-12 18:42:37 +01:00
Klaus Basan
84ae160b14 PBH, minor style adjustments 2020-06-12 18:42:37 +01:00
Klaus Basan
9bcc16b94e Ref T773, validate received network data again
* ff no ICAO data are received, the model is not "ready for matching"
* in that case we verify the situation and query ICAO data again
* now we have to verify again, to see if the 2nd query suceeded (otherwise dangling)
2020-06-12 18:42:36 +01:00
Klaus Basan
2999aebf37 Ref T773, allow to update CG per model string
* needed if CG is overridden by "dot command"
* update all existing aircraft (in range) if changing CG per modelstring
* made "overriddenCGorDefault" public so it can be checked if overridden
* use overridden value in CContextSimulator::xCtxAddedRemoteAircraftReadyForModelMatching
* allow to clear overridden values
2020-06-12 18:42:36 +01:00
Klaus Basan
53d08384da Ref T773, use complete string as modelstring for "cg" dot command
Example: "B773 B773_RR SDM"
2020-06-12 18:42:36 +01:00
Klaus Basan
ec92b6dc46 Ref T773, use closest positions for average height/elevation values
Testing with XPlane:

* even in EDDF the field elevations vary from 353-368ft, which means a difference of 15ft or 4m
* that means it is important to use the closest values
2020-06-12 18:42:36 +01:00
Klaus Basan
a5f4705bb1 Ref T773, style (simulator) 2020-06-12 18:42:35 +01:00
Klaus Basan
acd5ee5a3c Ref T773, use correct transfer, avoid continously transferring because of wrong coordinates
* do not use own situation as reference for ground plane, but original coordinates of ground elv. position
* some functions renamed
2020-06-12 18:42:35 +01:00
Klaus Basan
271c6c4825 [AFV] Map reader, break while loop if application shuts down 2020-06-12 18:42:34 +01:00
Klaus Basan
fe1e976093 Ref T773, style 2020-06-12 18:42:34 +01:00
Klaus Basan
8e89488bae Guard 2020-06-12 18:42:34 +01:00
Klaus Basan
181c2b8061 Ref T773, improved info texts and statistics values 2020-06-12 18:42:34 +01:00
Klaus Basan
f2096bd826 Ref T773, style 2020-06-12 18:42:34 +01:00
Klaus Basan
4120a2c77d Ref T773, use "on ground" cached elevations for situations in simulator and airspace monitor 2020-06-12 18:42:33 +01:00
Klaus Basan
33b1e26460 Ref T773, cache ground elevations for "on ground" planes separately
Rational:

* Those values represent taxiways and runways
* we cache those longer and keep more

It is much more likely we need/can use these values
2020-06-12 18:42:33 +01:00
Klaus Basan
14ab60cb73 Guarding by "hasWebDataServices" 2020-06-12 18:42:33 +01:00
Klaus Basan
70e08fdf8b Ref T773, allow to clear/write log. from interpolation UI via buttons 2020-06-12 18:42:33 +01:00
Klaus Basan
33b3cd5461 Ref T773, elevation handling style and minor improvements 2020-06-12 18:42:32 +01:00
Klaus Basan
287d96afea Ref T773, added "hasMeanSeaLevelValue" and consistently use it 2020-06-12 18:42:32 +01:00
Klaus Basan
a629b70724 Ref T773, clear log when written, set object name for logger 2020-06-12 18:42:31 +01:00
Klaus Basan
f6c5e6f3cb [FSD] Demote ASSERT to VERIFY 2020-06-12 18:42:31 +01:00
Klaus Basan
60b556f118 Ref T773, allow to set test elevation (from log.display) 2020-06-12 18:42:31 +01:00
Klaus Basan
5f1bd14fcf Ref T773, style 2020-06-12 18:42:31 +01:00
Roland Rossgotterer
15ced5a77f [FSD] Ignore client query type 'NEWATIS' from private FSD servers 2020-06-12 18:42:30 +01:00
Klaus Basan
0482b9883d [DB readers] misc fixes found during "datastore down" investigation
* added CEntityFlags::AircraftCategoryEntity in config lists
* flag to name
* missed initial reading of categories
* style
2020-06-12 18:42:30 +01:00
Klaus Basan
b4a7d59b7b Ref T773, allow to "fake" elevations for testing purposes and improved elevation logging in the interpolation log. display
* history of requested elevations
* bogus elevations for testing if needed (mostly to test the display)
2020-06-12 18:42:28 +01:00
Klaus Basan
812619470b Ref T773, style and comments 2020-06-12 18:42:28 +01:00
Klaus Basan
7dcfed613f [AFV] style: use "m_" prefix as it makes the functions easier to read 2020-06-12 18:42:25 +01:00
Klaus Basan
34817a83d5 [AFV] Guard against "missing" crypto channel (=> ASSERT) 2020-06-12 18:42:24 +01:00
Klaus Basan
481833b003 BLACK_AUDIT_X for killTimer, trace Qt killTimer warnings in "our" code 2020-06-12 18:42:24 +01:00