Commit Graph

3445 Commits

Author SHA1 Message Date
Roland Winklmeier
77ce9f8b8a Split the giant test binaries into smaller unit tests
This is an intermediate step to have smaller unit tests. It is a trade off
between having many many test executables compared to a few bigger ones. But
this comes a lot closer to what QtTest is meant to be used.
2018-08-25 22:12:01 +02:00
Roland Winklmeier
a19ccabf35 Refactor shared X-Plane model parser in common header only functions
ref T290
2018-08-24 21:27:00 +02:00
Klaus Basan
9ec59514dc Small improvements of auto stash component
- airline can be set in model
- fallback if there is no airline, but livery code
2018-08-22 12:32:07 +02:00
Klaus Basan
433818ca4f Ref T308, if QDateTime is invalid (normal state) setting a offset turns it into a valid timestamp of 1970 (which is wrong) 2018-08-22 12:32:01 +02:00
Klaus Basan
12f6e006ab Ref T308, loading JSON from DB optimizations
- info about time consumed for parsing (so we can benchmark)
- using the "optimized" YYYYmmdd parsing
2018-08-22 12:31:54 +02:00
Klaus Basan
183280fa75 Ref T308, using an optimized (faster) function for YYYYmmdd string parsing
Ref T309, found that QDateTime::fromString returns a QDateTime object with local timestamp. Using a optimized version returns UTC objects now.

- The bug was found writing a unit test for Ref T308
- Slack: https://swift-project.slack.com/archives/G7GD2UP9C/p1534848725000100
2018-08-22 12:31:53 +02:00
Klaus Basan
d3c3fe2566 Thread priority to string 2018-08-21 22:10:34 +02:00
Klaus Basan
fcbca7b0b0 Ref T308 prephase, meaasure model parsing ttime 2018-08-21 22:10:31 +02:00
Klaus Basan
b610ff1087 Ref T301, core ping fix https://swift-project.slack.com/archives/G7GD2UP9C/p1534677752000100
Identifier list was filled and more and more identifiers got checked via DBus

- identifier set if only one unique identifer is needed
- using set avoids duplicates and fixes the bug
- restart time if registered, no need to check again
2018-08-21 22:10:28 +02:00
Klaus Basan
f1312bbb50 Style 2018-08-21 22:10:27 +02:00
Klaus Basan
9df19fb064 Fixed pitch in interpolation setup 2018-08-19 14:31:54 +02:00
Klaus Basan
cbb0805c7e Style 2018-08-19 14:31:47 +02:00
Klaus Basan
6807eb8d35 Application info: Checking if directory exists (swift version exists) plus fixes in property functions 2018-08-17 02:25:43 +02:00
Klaus Basan
dc534fc88c Ref T298, improved matching log messages 2018-08-17 01:43:07 +02:00
Klaus Basan
359d56b6f6 Weather uses null altitude, https://swift-project.slack.com/archives/G7GD2UP9C/p1534378412000100 2018-08-16 14:44:14 +02:00
Klaus Basan
e21328a5a6 Style 2018-08-16 14:44:11 +02:00
Klaus Basan
200152da18 Self include fixed 2018-08-16 14:44:10 +02:00
Klaus Basan
660a1adb71 Numeric double cast/comparison 2018-08-16 14:44:09 +02:00
Klaus Basan
9be7572c36 Network VATLIB refactoring
* use qit64 for timestamp related integers
* use valueInteger for PQ integer values (rounding)
2018-08-16 14:44:03 +02:00
Klaus Basan
60baa12c9d Ref T298, better ICAO family resolution
B737/DLH searched but B738/DLH present (same family but not same ICAO)
2018-08-16 14:44:01 +02:00
Klaus Basan
3f5a12de8b Ref T298, matcher improvements
* better messages
* clear messages when restarted
* better usage of setup flags
2018-08-16 14:43:31 +02:00
Klaus Basan
f2b6b093e4 Ref T298, matcher setup improvements (score only) 2018-08-16 14:34:00 +02:00
Klaus Basan
0327776edd Ref T295, based on bug report of RP (no WIFI detected) creating a network report
* network report when starting swift
* also ignore inactive configs when checking for "the bearer bug"

references:
https://stackoverflow.com/questions/51824242/disable-qt-bearer-management-at-runtime
https://swift-project.slack.com/archives/G7GD2UP9C/p1534181224000115
https://swift-project.slack.com/archives/G96QTUBEG/p1534162173000320
2018-08-16 14:33:52 +02:00
Klaus Basan
35f15b302b Added transparent icons 2018-08-13 23:52:43 +02:00
Klaus Basan
018a60f23c Ref T304, array index fix if "7za.exe" is not available 2018-08-13 23:52:39 +02:00
Klaus Basan
30ba404043 Ref T304, "no throw" JSON functions 2018-08-13 02:59:50 +02:00
Klaus Basan
60b3ed65ab Ref T301, application contexts pings (by re-registering) identifiers again. By that it can be detected if the GUI is crashed
* ping timer in proxy
* utility function in timestamp list
* adjusted UI component displaying identifiers in core
2018-08-13 02:59:44 +02:00
Klaus Basan
38e2a3ee3d Ref T301, some transponder code style fixes 2018-08-13 02:59:38 +02:00
Klaus Basan
2461cfb0ba Ref T302, register metadata functions 2018-08-13 02:59:37 +02:00
Klaus Basan
9bb3f98489 Style 2018-08-13 02:59:35 +02:00
Klaus Basan
3aadef458d Ref T298, utility functions for matcher setup and more attributes to configure matching
* pick strategy if multiple there are multiple similar results
* ordered results
2018-08-11 00:54:48 +02:00
Klaus Basan
ee181d6425 PQ string parsing improvements 2018-08-09 03:43:57 +02:00
Klaus Basan
92880bce7f DBus test (GUI + core) fixes
* removed unused signals
* marked relayParentSignals as deprecated, currently not used
2018-08-09 01:41:23 +02:00
Klaus Basan
e114c8c99c Context menu of simulated aircraft view now handled in view directly
* removed duplicated code in mapping/aircraft component
* view can be used with context menu without further signals
2018-08-09 01:41:21 +02:00
Klaus Basan
79a133892b Fix for context menu of aircraft view as reported in slack
* reported: https://swift-project.slack.com/archives/G7GD2UP9C/p1533749013000483
* logic moved to view
* removed no longer required code
2018-08-09 01:41:10 +02:00
Klaus Basan
fe4fd31688 Renamed to FullInterpolation (formerly VtolInterpolation) 2018-08-09 01:39:21 +02:00
Klaus Basan
6897abe912 Style, singleShot guard, Doxygen 2018-08-09 01:38:52 +02:00
Klaus Basan
6db9083c03 Added icons for simulators 2018-08-09 01:25:52 +02:00
Roland Winklmeier
461d146619 Test port number string conversion to short instead of int
Port numbers have a small range and are typically expressed as short ints.
Therefore test the string conversion to short instead.
2018-08-09 01:25:49 +02:00
Roland Winklmeier
6a8658f04c Declare destructor virtual for IMetarDecoderPart 2018-08-09 01:25:48 +02:00
Roland Winklmeier
a36023f6d8 Add missing copy constructor and assignment operators 2018-08-09 01:25:46 +02:00
Roland Winklmeier
3774f2b60f Fix cppcheck warnings and cleanup suppression config
- redundantAssignment
- knownConditionTrueFalse
2018-08-09 01:25:41 +02:00
Klaus Basan
8b6bdf2276 Ref T298, added algorithm and score values to matching setup 2018-08-09 01:25:33 +02:00
Klaus Basan
68607a3cb8 Ref T298, better string handling/messages 2018-08-09 01:25:30 +02:00
Klaus Basan
d310c9c843 Ref T298, model matching settings trait and used settings in simulator context 2018-08-09 01:25:28 +02:00
Klaus Basan
264ef7f5cb Ref T298, move matcher setup into BlackMisc::Simulation 2018-08-09 01:25:20 +02:00
Klaus Basan
bab821d3f1 Ref T295, QNetworkConfiguration as string 2018-08-09 01:25:14 +02:00
Klaus Basan
b81ff8b9d6 Ref T299, set "pitch on ground" in interpolator 2018-08-09 01:25:05 +02:00
Klaus Basan
2a50454b03 Ref T299, allow to force "pitch on ground" settings 2018-08-09 01:25:02 +02:00
Klaus Basan
1f17b49e6a Ref T297, allow "null" values as value 2018-08-07 20:41:08 +02:00