Commit Graph

3604 Commits

Author SHA1 Message Date
Klaus Basan
6841297c6e Ref T776, matching flag "ForceModeFlag" 2020-06-12 18:42:39 +01:00
Klaus Basan
3d1dad989e [TCAS] Fixed "mixed" values for debug/TCAS xswiftbus.conf file
Also only update if simulator XPlane is not connected, otherwise values are updated there
This allows to update the values BEFORE XPlane starts and avoids a restart
2020-06-12 18:42:38 +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
1da66ce6e9 [Worker] Stop timer in correct thread 2020-06-12 18:42:38 +01:00
Klaus Basan
7f6e3e5378 [Worker] In order to make background validation (worker) stoppable, using an "atomic bool stop flag"
Originally Ref T145, Ref T647
2020-06-12 18:42:36 +01:00
Klaus Basan
687d003bb9 Settings style 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
93652ccd43 String utils, "const QChar &char" 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
57153d45d7 Ref T773, style 2020-06-12 18:42:35 +01:00
Klaus Basan
b0d5b3c6d1 [Worker] Log. how long it takes to quitAndWait a worker
* sometimes the shutdown sequence of swift takes extremly long, this is to identify which workers are affected
* reduced "wait time"
* function so each worker can have its own "wait" time
* for a worker there are 2 "waits", the quitAndWait of the worker and the wait of CRegularThread (dtor)


Originally Ref T145, T647
2020-06-12 18:42:35 +01:00
Klaus Basan
049ded16cc Allow some long lasting validation functions to be stopped/interrupted from "outside" 2020-06-12 18:42:35 +01:00
Klaus Basan
f3bfaa3179 Minimal string concat improvements 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
81fa0b56c1 [AFV] Based on RRs idea init Qt audio device lists. The idea is to init them upfront in the main thread
Ref: https://discordapp.com/channels/539048679160676382/539925070550794240/676414836351172614
2020-06-12 18:42:34 +01:00
Klaus Basan
fe1e976093 Ref T773, style 2020-06-12 18:42:34 +01:00
Klaus Basan
3b73f6aa25 Ref T773, adjust skip values (speed/radius) 2020-06-12 18:42:34 +01:00
Klaus Basan
e21dab0605 Ref T773, if possible skip update of situations with elevation in interpolator 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
e611f5109d Clearer message text 2020-06-12 18:42:34 +01:00
Klaus Basan
ab41c1e930 Ref T773, utility functions to clean cache and find max. elevation 2020-06-12 18:42:34 +01:00
Klaus Basan
466c761616 Ref T773, gcc/clang warnings
Remark: "assuming signed overflow does not occur when assuming that (X - c) > X is always false"
2020-06-12 18:42:33 +01:00
Klaus Basan
55b28e24a6 Ref T773, average elevation from cached (on ground) elevations 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
b128d40342 Ref T773, return flag if elevation was set for a ground position 2020-06-12 18:42:33 +01:00
Klaus Basan
25b30ccf34 Ref T773, style/typo 2020-06-12 18:42:33 +01:00
Klaus Basan
ee421fe33c Ref T773, also log. middle position (2nd) - useful for spline 2020-06-12 18:42:33 +01:00
Klaus Basan
5604cff6bf Ref T773, audit "null" elevation if tried to be stored 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
0ccc7a9cba Ref T773, log.elev.info as well 2020-06-12 18:42:32 +01:00
Klaus Basan
af12325856 Ref T773, always set setup for interpolation logger 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
5f1bd14fcf Ref T773, style 2020-06-12 18:42:31 +01:00
Klaus Basan
8f4c4a249c [5.14.1] UI adjustments
* OS native check of screen resolution (Qt free, experimental)
* changed rounding
* use string for scale factor so we can use fractions as 2/3
* utility functions to clean numbers, parse fractions

It looks like:

* my WIN10 scaling is 250%
* obviously swift rounds that to 3 (device ratio)
* now using FLOOR policy down-rounding to 2
* rational: scaling up (scale factor) is better as down-scaling as the factors would be clearer
* 2->3 1.5, but 3->2 means 0.66667
2020-06-12 18:42:30 +01:00
Klaus Basan
86c8568bf2 Fixes some CLANG warnings (QtC IDE checks, nevertheless does not harm to fix them) 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
00ed15f111 Ref T775, special handling for "broadcast" messages
* identify broadcast messages
* do NOT play sound
* use "own" tab for text messages (group together)
2020-06-12 18:42:29 +01:00
Klaus Basan
812619470b Ref T773, style and comments 2020-06-12 18:42:28 +01:00
Klaus Basan
9924eb4551 [FS family] improved parsing of quoted model strings 2020-06-12 18:42:28 +01:00
Klaus Basan
b2d94e5f63 [FS family] model loader improvements
* better load message handling, display details
* allow to load without "air" files in dev. environment (testing)
2020-06-12 18:42:27 +01:00
Klaus Basan
1238357749 String utility function for balanced quotes 2020-06-12 18:42:26 +01:00
Klaus Basan
b9c6541a55 Add default unit for "rec.gnd.positions" radius
* utility functions
* append default unit to PQ string if needed
2020-06-12 18:42:25 +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
Mat Sutcliffe
de037af702 [xplane] Allow disabling terrain probe for diagnosing performance issues 2020-06-12 18:42:24 +01:00
Mat Sutcliffe
0017df0bb3 Fix missing BLACK_METAMEMBER in CXSwiftBusSettings 2020-06-12 18:42:23 +01:00
Mat Sutcliffe
4bfa5d5f40 Fix assert due to NaN in CXSwiftBusTrafficProxy::getElevationAtPosition 2020-01-25 16:55:51 +00:00
Klaus Basan
bd39b0638c Q_UNREACHABLE fix, minor style adjustments 2020-01-18 20:15:24 +01:00
Klaus Basan
785dc7f016 [XPlane][FG] Q_UNREACHABLE removal follow up
* removed CSimulatorXPlane::connectionFromString as this only works for session DBus
* renamed to "checkConnectionViaSessionBus"
* discussed around here: https://discordapp.com/channels/539048679160676382/539925070550794240/668105458300485652
2020-01-18 18:46:19 +01:00