Commit Graph

3643 Commits

Author SHA1 Message Date
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
Klaus Basan
cfc748420c Ref T786, stub for getting description of weather grid 2020-06-12 18:42:49 +01:00
Klaus Basan
0fa6a6e4c3 Ref T786, singleShot for CSlot 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
8278a7d5e6 [P3D] Adjustments for P3D v5
* guess version
* added new version selection
2020-06-12 18:42:48 +01:00
Klaus Basan
4e45249142 Use "fixed "gear down" if on ground.
Reason: Some sims do send incorrect gear down.

Follow up of T778
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
9b031bb582 [PQ] Allow to provide a default unit for parsing, e.g. "0" -> "0ft" 2020-06-12 18:42:47 +01:00
Klaus Basan
e839820940 Check UNC path to avoid "hanging" if other machine is not reachable 2020-06-12 18:42:47 +01:00
Klaus Basan
04562a6651 Style, as_const 2020-06-12 18:42:46 +01:00
Klaus Basan
a3f646a792 [FS9] Function for at least halfway correct engine type 2020-06-12 18:42:46 +01:00
Klaus Basan
c3aac2f581 [Weather] Ref T786, fixes some values for "thunderstorm" plus some smaller fixes 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
b5d100b71b Ref T778, style 2020-06-12 18:42:45 +01:00
Klaus Basan
12403700ea Distributor value object improvements 2020-06-12 18:42:45 +01:00
Klaus Basan
09d86aceb5 String utils minor improvements 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
f68e3c2360 Minor CLANG warnings 2020-06-12 18:42:44 +01:00
Klaus Basan
8206fc6bb9 Ref T778, special terrain probe value handling for XP
* only request terrain probe up to a max. distance
* detect "isSuspiciousTerrainValue"
* See also https://discordapp.com/channels/539048679160676382/539925070550794240/696786452855390218
2020-06-12 18:42:44 +01:00
Klaus Basan
cfa96a3aeb Ref T778, utility functions 2020-06-12 18:42:44 +01:00
Klaus Basan
b71dfe482c Ref T778, further elevation verifications 2020-06-12 18:42:44 +01:00
Klaus Basan
bce78aa18e Ref T778, QReadWriteLock::Recursive 2020-06-12 18:42:44 +01:00
Klaus Basan
1821b6e6c5 Ref T778, added/improved removeElevationValues, cleanElevationValues 2020-06-12 18:42:43 +01:00
Klaus Basan
3ff8694718 Ref T778, utility functions geo objects 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
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
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
Mat Sutcliffe
e5528288b5 Lifetime management of value cache singletons
Hook in to the `destroyed` signal of the `qApp` to destroy the caches.
This ensures any associated workers are quit before application
terminates and kills all the threads.
2020-06-12 18:42:41 +01:00
Mat Sutcliffe
9dbe2f4018 Avoid thread-local storage in CLogCategoryList::fromClass
Use an ordinary function-local static variable instead.
This ensures we can still log messages after thread-local storage is cleaned up.
2020-06-12 18:42:41 +01:00
Mat Sutcliffe
e8380173c9 Store CDataCacheSerializer as a pointer for correct lifetime management 2020-06-12 18:42:41 +01:00
Klaus Basan
6eb767f938 Minor style, typo 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
1642502aae Distributor filter improvements
* if all or none simulator is selected do not filter
* also select if there is no (NULL) simulator
2020-06-12 18:42:41 +01:00
Roland Rossgotterer
f7cd840d42 Workaround GCC 8.1 internal compiler error 2020-06-12 18:42:40 +01:00
Mat Sutcliffe
1b2f470cd6 Reorder crashpad crash simulation in VERIFY/AUDIT
so it happens after the log message rather than before
2020-06-12 18:42:40 +01:00
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