Klaus Basan
edde558f29
Ref T280, definitions for QHash<CCallsign, T> for
...
* situation
* situation list
* client
* parts
* parts list
* functions to convert standard swift containers into QMap/QHash<CCallign, T>
2018-06-14 14:40:15 +02:00
Klaus Basan
a2838e3b57
Ref T280, clients as callsign map as this is faster
2018-06-13 14:00:33 +02:00
Klaus Basan
69e1c3f4c2
Ref T275, CAircraftSituationChange view/model
...
* added some more indexes
* CAircraftSituationChangeListModel
* CAircraftSituationChangeListView
2018-06-13 14:00:28 +02:00
Klaus Basan
169dca8d84
Ref T275, aligned classes with new "comparePropertyByIndex" in base class
2018-06-13 14:00:27 +02:00
Klaus Basan
de3cb71706
Ref T275, general improvement in value object added comparePropertyByIndex
2018-06-13 14:00:26 +02:00
Klaus Basan
d71138cee1
Fixed missing compare for ITimestampWithOffsetBased
2018-06-13 14:00:23 +02:00
Klaus Basan
a27f2b3a9c
Style, typos
2018-06-13 14:00:21 +02:00
Klaus Basan
bdf58ff538
Ref T275, utility functions to trace request ids
2018-06-13 14:00:18 +02:00
Klaus Basan
bf0db64f65
Improved METAR string building
...
* use static const arg1s (not always create temp. arg strings)
* use QStringBuilder to concatenate several parts at once
* done during Ref T275, but not really related
2018-06-13 14:00:17 +02:00
Klaus Basan
88b2da94a3
Ref T275, elevation plane improvements
...
* setRadiusOrMinimum
* ASSERT if there is no radius
2018-06-13 14:00:11 +02:00
Klaus Basan
4393bdeb77
Ref T275, CTokenBucket further improvements
...
* allow to use extrenal timestamp for replenishment
* only replenish if there are not enough tokens "in stock"
2018-06-13 14:00:10 +02:00
Klaus Basan
0849359722
Ref T275, adjusted token bucket to work (better) with ms (milli seconds) intervals
2018-06-13 14:00:02 +02:00
Klaus Basan
00a897f29c
Better altitude null message
2018-06-13 14:00:01 +02:00
Klaus Basan
fe396e19aa
Ref T275, interpolator improvements
...
* flags for same parts/situation status
* transfer elevation (Ref T273) from previous situation
* preset elevation based on network situations if possible
* set elevation info
* function CInterpolator::initInterpolatedSituation
2018-06-13 13:59:59 +02:00
Klaus Basan
6ed541b6ab
Ref T243, Ref T273, added info about elevation (where did we obtain it?)
2018-06-13 13:59:52 +02:00
Klaus Basan
b257c693ff
Ref T243, Ref T273, improved elevation fetching
...
* slightly shorter lock time
* transfer elevation from last situation
2018-06-13 13:59:49 +02:00
Klaus Basan
a3b8d776a0
Ref T273, high level functions to compare "equal" situations
...
Remark: "==" compares a lot of attributes, those will only compare values to determine equal PBH/vector ...
2018-06-13 13:59:48 +02:00
Klaus Basan
c6f3d4e2f2
Ref T270, mark interpolator as unit test
...
* if we use "recycled" parts, we have to store also the last status
* mark unit test so "recycling" is disabled
* status flag for "reused"
2018-06-13 13:59:46 +02:00
Klaus Basan
84428b1284
Ref T270, log display can trigger display in sim and further improvements
...
* log display can trigger displayed log in simulator
* check prerequisites for log and display overlay
* made component identifiable
* pre-load parts
2018-06-13 13:59:45 +02:00
Klaus Basan
c518c3d0b0
Ref T270, made lights comparable and use it with parts
2018-06-13 13:59:42 +02:00
Klaus Basan
181ed36f3d
Ref T270, interpolator optimization by passing aircraft number
...
Rational: Except for FS9 we interpolate all aircraft in one loop at the same time. This can cause that some steps are always done at the same time for all aircraft of that loop. By passing the number we can more equally distribute such tasks, avoiding peaks.
2018-06-13 13:59:39 +02:00
Klaus Basan
2b9d9027a0
Ref T270, performance improvement by keeping less elevations cached
...
Rational: the idea was to keep track of ground elevations of all aircraft and hence using them for other aircraft on ground. But the "hit" ratio is bad, so we only keep a small number of elevations ("the last ones") and use those. The size of the cache is dynamically adjusted. Not moving aircraft are still found in that much smaller list.
2018-06-13 13:59:36 +02:00
Klaus Basan
87b96f8910
Cleanup: toFormattedQString was not really used and just redirecting toQString
...
* marked deprecated
* and replaced by toQString
2018-06-13 13:59:35 +02:00
Klaus Basan
240d2777a5
Ref T270, unified some function names in CAircraftParts and set default timestamp values in parts when guessing
2018-06-13 13:59:31 +02:00
Klaus Basan
f82010a1da
Ref T270, fixes in interpolator
...
* interpolatedParts already "logs", do not do it twice
* performance: only recalculate "this->remoteAircraftSituationsAndChange(setup)" when there are new situations, not every interpolation step
2018-06-13 13:59:30 +02:00
Klaus Basan
686b27af6e
Ref T270, style
2018-06-13 13:59:28 +02:00
Klaus Basan
2923df27e2
Use fully qualified names in signals as there was an unrecognized type with Qt::QueuedConnection
2018-06-13 13:59:21 +02:00
Roland Winklmeier
4aaccb44c3
Cleanup the enabled modules in all sub projects
...
Most modules were just enabled to add include path for dependent headers
2018-06-02 02:08:46 +02:00
Klaus Basan
7bee8e9ee8
Formatting
2018-06-01 01:30:42 +02:00
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