Commit Graph

2565 Commits

Author SHA1 Message Date
Klaus Basan
f7a0c69fc8 Ref T270, push front for sequence and unified "insert" -> "push_back"
Remark: "CSequence::insert" is a synonym "push_back". This makes it clearer that push_back is used.
2018-06-01 01:30:33 +02:00
Klaus Basan
abfa12c1ec Ref T272, skip VATSIM readers if (for sure) connected to an other eco system
Remark: This requires the server (=> ecosystem) to be connected, otherwise VATSIM data (before that connection) are still read as default
2018-06-01 01:30:31 +02:00
Klaus Basan
ac87e648ca Ref T270, fixed provider so signals are correctly emitted 2018-05-29 00:56:39 +02:00
Klaus Basan
65ad35bfab Fixed div. by 0 ("zero") warning 2018-05-29 00:56:38 +02:00
Klaus Basan
117862e756 Ref T270, added CVariant long long functions and used those in formatter 2018-05-26 21:19:22 +02:00
Klaus Basan
06a835a5de Ref T270, added properties for CAircraftSituation 2018-05-26 21:19:21 +02:00
Klaus Basan
464c8dfe83 Formatting 2018-05-26 21:19:20 +02:00
Klaus Basan
a7a1674faa Ref T264, string utility function 2018-05-22 13:35:01 +02:00
Klaus Basan
1d8bbaf3be Ref T264, improved detection of multiple container formats 2018-05-22 13:35:00 +02:00
Klaus Basan
fc35e8b654 Formatting, style 2018-05-22 13:23:47 +02:00
Klaus Basan
7965f67455 Ref T264, better display of other installed swift versions
* improved CApplicationInfo, added property support
* renamed functions
2018-05-22 13:20:13 +02:00
Klaus Basan
a3a62919fc Ref T270, improved setup/logger handling
* utility functions to enable logging
* logger access and access to log messages
2018-05-22 13:20:07 +02:00
Klaus Basan
e3465f432c Ref T261, Ref T251 gnd flag support in context/client provider
* allow to set gnd.flag capability via context/client
* utility functions in client provider
2018-05-22 13:20:06 +02:00
Klaus Basan
afe4a09218 Formatting 2018-05-18 00:25:10 +02:00
Klaus Basan
ba8b9a52da Ref T264, Ref T263 simple approach to remember last directory (load/save) in view
* utility function "unwrapCache" to unwrap cache data
* fixed loading from file, also supporting memoized formats as well
* remember last directory
2018-05-18 00:25:09 +02:00
Klaus Basan
50a625d2bc Ref T267, allow to call "convertFromMemoizedJson", but also convert via "convertFromJson"
The variant convertFromMemoizedJson trait did already do something similar, calling "convertFromJson" if the memoized version is not avilable. Now the function also "decides" based on the passed data itself.
2018-05-18 00:25:08 +02:00
Klaus Basan
4f143539f8 Fixed unit tests
* Random number generation was faulty, as we have to use RAND_MAX and not INT_MAX
* fixed CTestAircraftSituation::testSetRotateUpPitch, we need to use a defined front function otherwise it can be randomly outside range
* adjusted performance unit test a bit, as the value vary a lot


Ref T261
2018-05-18 00:25:04 +02:00
Klaus Basan
8bd969105a XSwiftBus install dialog (for local environment)
* can also be called from menu
* improved file check
* renamed some functions
2018-05-18 00:25:02 +02:00
Klaus Basan
4ced6b4f97 Formatting 2018-05-18 00:24:58 +02:00
Klaus Basan
e851934ce8 Ref T261, FSX clamped logging to avoid "status message overflow" if something goes wrong in interpolator.
In interpolator scenarios it can happen plenty of error log messagesa re generated in a short time. This can cause hanging.
2018-05-14 02:27:36 +02:00
Klaus Basan
60ad3d9c2b Fixed trait so "compare" is properly called 2018-05-12 21:40:33 +02:00
Klaus Basan
0f9b275f52 Allow to mark interpolator for unit tests (which can be used to disable some checks) 2018-05-12 21:40:31 +02:00
Klaus Basan
1f9f148519 Status message fix, copy timestamp in assigmnet operator
* the timestamp of status message was not copied, so every time a status message was sorted or otherwise assigned the ts got lost or wrongly assigned.
* this meant the log messages were in wrong order, leading to very confusing results in the log screen or file.
* also added new timestamp formatter
* new function "BlackMisc::CVariant displayRole(const PQ &pq) const" which can be used if the PQ is already available
2018-05-12 21:40:27 +02:00
Klaus Basan
40cd720e13 Unified compare return value 2018-05-12 21:40:25 +02:00
Klaus Basan
6c50c4ea72 Formatting, minor tweaks 2018-05-12 21:40:23 +02:00
Klaus Basan
47afc4d6fc Conversion function to int, which can be used when int is needed to avoid 2018-05-12 21:40:18 +02:00
Klaus Basan
7ad4c29d28 Ref T261, detect gnd.flag (from network) suppport, display gnd.flag info in UI
* add flag info in simulated aircraft
* allow to display info  in UI
* unified naming to "contains" in situation list
* updated client provider
2018-05-12 21:40:13 +02:00
Klaus Basan
6e249aa15d Win x64 compile warning fix 2018-05-12 21:40:11 +02:00
Klaus Basan
23dcccc806 Ref T261, adjusted interpolation setup
* removed "IndexEnableGndFlag" as this is actually part of FSD network settings
* renamed to "isForcingVtolInterpolation"
* adjusted interpolator, and UI for setup
2018-05-12 21:40:09 +02:00
Klaus Basan
3ef18a788a Ref T261, minor adjustment of testAddAltitudeOffsetToSituation 2018-05-08 16:06:56 +02:00
Klaus Basan
2e7e210010 Ref T261, allow to enable/disable "fix scenery offset" via setup
* added UI functions
* fixed setup model
* use setup in interpolator
2018-05-08 16:06:55 +02:00
Klaus Basan
ea585ae166 Ref T261, CAircraftSituationChange improvements
* min/max ground distance, also added in situation list
* use model's vtol/CG info
* improved scenery deviation guessing
* adjusted interpolator scenery deviation handling
2018-05-08 16:06:55 +02:00
Klaus Basan
ed78eb5f0b Ref T261, parts guessing: only use "onGround [bool]" if the gnd. value is set (and not just the default value) 2018-05-08 16:06:55 +02:00
Klaus Basan
740de9786f Fixed function "endsStringWithNameOrSymbol" to "const" 2018-05-08 16:06:54 +02:00
Klaus Basan
787b54108e Ref T261, made Units "static const &"
Remark: Maybe there is a better way than to make both values (Data and the MU itself) static const. If so we should change that.
2018-05-08 16:06:54 +02:00
Klaus Basan
7aef1dcbbc Formatting and minor tweaks/renamings 2018-05-08 16:06:54 +02:00
Klaus Basan
6d105b9665 Ref T261, make sure the unit is correct in spline altitude interpolation
See slack discussion here https://swift-project.slack.com/archives/G7GD2UP9C/p1525605407000025
2018-05-08 16:06:53 +02:00
Klaus Basan
23c54938ea Ref T261, unify unit handling in situation altitude related values
* this is an optimization, it would work without that, but there are numerous calculations in interpolation which are faster and easier to debug in the same unit
* PQ switch unit functions use "const &PQUnit"
2018-05-08 16:06:53 +02:00
Klaus Basan
8e3b55b4ca Ref T261, utility functions in value classes
* set offset values
* do not change PQs if PQ is null
* sorted by callsign
2018-05-08 16:06:52 +02:00
Klaus Basan
3f4cb7529c Guard QTimer::singleShot 2018-05-08 16:06:52 +02:00
Klaus Basan
3ecb7b1f94 Ref T261, cppcheck "scope" warning 2018-05-08 16:06:52 +02:00
Klaus Basan
0808cdb223 Ref T261, further unify interpolator handling
* return interpolation results parts/situation in one step
* base class init for each interpolation step, less redundant code
* removed old interpolation/parts function
* adjusted unit tests and simulator objects (such as SimObject)
2018-05-08 16:06:52 +02:00
Klaus Basan
bac3d14d50 Ref T261, interpolator adjustments
* using interface IInterpolant, renamed to CInterpolant for concrete implmentation
* CInterpolatorPBH has itws own file now, is included
* linear interpolator only re-calculates interpolant when needed (same as spline interpolator)
2018-05-08 16:06:51 +02:00
Klaus Basan
ef72cf7cd4 Ref T216, adjusted/improved ground guessing 2018-05-08 16:06:51 +02:00
Klaus Basan
202b6b7c6a Ref T261, calculate scenery deviation and provide hint on which basis it is calculated 2018-05-08 16:06:51 +02:00
Klaus Basan
999803bc2e Ref T261, common base class for interpolant 2018-05-08 16:06:51 +02:00
Klaus Basan
d50498fa39 Ref T261, also log. scenery offset 2018-05-08 16:06:51 +02:00
Klaus Basan
2a5261f3f6 Ref T261, interpolator PBH in own file 2018-05-08 16:06:50 +02:00
Klaus Basan
3d2a74a652 Ref T261, interpolator mode is now part of setup
* added attribute in setup
* adjusted UI
* adjusted interpolator / simulator functions
2018-05-08 16:06:49 +02:00
Klaus Basan
eb815ab987 Ref T261, improved value classes 2018-05-08 16:06:49 +02:00