Commit Graph

390 Commits

Author SHA1 Message Date
Mathew Sutcliffe
e67b5fccc4 refs #863 Change callsign parameter to be a member instead. 2017-02-24 15:22:32 +00:00
Mathew Sutcliffe
8d351d8279 refs #863 Added cubic spline interpolator. 2017-02-24 15:22:31 +00:00
Mathew Sutcliffe
4cc5643340 refs #863 Further decomposed interpolator into granularly replaceable strategy methods. 2017-02-24 15:22:30 +00:00
Mathew Sutcliffe
aad4cb5e88 refs #863 Factor out code not specific to linear interpolation into the base class. 2017-02-24 15:22:28 +00:00
Mathew Sutcliffe
c0f163589d refs #863 Simplification. 2017-02-24 15:22:27 +00:00
Mathew Sutcliffe
9c918b8799 refs #863 Interpolator inheritance based on CRTP rather than virtual methods. 2017-02-24 15:22:26 +00:00
Mathew Sutcliffe
1c2533f5d2 refs #863 Moved nested status classes to namespace scope. 2017-02-24 15:22:25 +00:00
Mathew Sutcliffe
a167cc8e43 refs #863 Each aircraft gets its own interpolator instance,
so each one can cache calculations from one frame to the next.
The recent situations and parts are members of the interpolator.
2017-02-24 15:22:22 +00:00
Mathew Sutcliffe
2181702c5c refs #863 Change interpolation setup member to be a method parameter instead. 2017-02-24 15:22:21 +00:00
Klaus Basan
060a10dfb6 Replaced QLatin1Literal by QLatin1String
refs #883
2017-02-24 15:22:09 +00:00
Klaus Basan
5bea0e2a96 refs #879, added ctor for CSimulatedAircraft / CPropertyIndexVariantMap::size() 2017-02-24 15:21:26 +00:00
Klaus Basan
f71cb04cd2 Formatting (#879) 2017-02-24 15:21:23 +00:00
Klaus Basan
3de16cbec1 refs #877, CSimulatedAircraft DBus signature size
* reduce size by storing models in list
* using an array for the models failed - not supported by tuple system
2017-02-24 15:21:08 +00:00
Klaus Basan
7bfc9810cb refs #875, temp disabled network model for DBus (signature too big) 2017-02-24 15:21:02 +00:00
Klaus Basan
2f4c86fac4 refs #875, DBus fixes
* wrong signal connection signature -> assert
* missing SELCAL in simulated aircraft
2017-02-24 15:20:56 +00:00
Klaus Basan
c1482dca36 Formatting, help text beautifyHelpMessage, improved convertToQString 2017-02-24 15:20:55 +00:00
Klaus Basan
bcb42b0f0d Formatting 2017-02-24 15:20:33 +00:00
Klaus Basan
273427d3d9 refs #873, updated internals component
* can trigger request of parts
* opening logs
* update parts in UI from aircraft
2017-02-24 15:20:27 +00:00
Klaus Basan
3090413849 refs #873, value object light to light states 2017-02-24 00:19:43 +00:00
Klaus Basan
1d967b08e8 refs #865, based on discussion https://dev.vatsim-germany.org/issues/865#note-12
* do not call XP`s elevation provider if not needed in interpolator
* some renaming/utility functions
2017-02-24 00:19:41 +00:00
Klaus Basan
578a092b0c refs #865, set current elevation from hints also for current situation
This is better than the copied elevation from old situation
2017-02-24 00:19:31 +00:00
Klaus Basan
bc3bd41c97 refs #865, allow to override in setGroundElevationFromHint 2017-02-24 00:19:30 +00:00
Klaus Basan
085f25fa86 refs #865, FSX: changed how elevation/CG is updated 2017-02-24 00:19:28 +00:00
Klaus Basan
62d4a94106 refs #865, further improved logging
* set log flag in hints, so no lock for each aircraft is needed
* as a result log functions have a bool log parameter now
* highlight situation and parts changed
2017-02-24 00:19:18 +00:00
Klaus Basan
ff7756db38 refs #865, added parts to interpolation log 2017-02-24 00:19:16 +00:00
Klaus Basan
8fb79f613c refs #865, use CG for on ground estimation 2017-02-24 00:19:13 +00:00
Klaus Basan
e3d81c6c44 refs #865, use same function for removing outdated aircraft parts
* in airspace monitor
* in XP traffic.cpp
2017-02-24 00:19:09 +00:00
Klaus Basan
8313b501b1 refs #865, changes in getInterpolatedParts as discussed on slack (MS/KB) 2017-02-24 00:19:04 +00:00
Klaus Basan
74a4570a40 refs #865, interpolator allows to log situations plus improvements found by logs
* set timestamp for current situation
* assert if new timestamp > old timestamp
2017-02-24 00:18:59 +00:00
Klaus Basan
def51576de refs #865, added log functions to interpolator
* updated HTML template
* parts use now string builder
2017-02-24 00:18:57 +00:00
Klaus Basan
af15929b30 refs #865, allow to enable interpolator/parts logging
* removed debug messages from interpolator
* added callsign to getInterpolatedParts / getInterpolatedSituation signatures
* config for logging via CInterpolationAndRenderingSetup::addCallsignToLog etc.
2017-02-24 00:18:56 +00:00
Klaus Basan
336fda23c9 refs #865, set on ground flag in interpolator 2017-02-24 00:18:47 +00:00
Klaus Basan
daab5eed49 refs #865, adjusted interpolator to use elevation or elevation provider
* adjusted IInterpolator::setGroundElevationFromHint
* removed cgAboveGround from getCorrectedAltitude
2017-02-24 00:18:43 +00:00
Klaus Basan
38585d10b2 refs #865, hints get ground elevation from provider or from set value
* using CAltitude for elevation provider
* null() for CAltitude
* formatting of members
* fixme in fs9 client
2017-02-24 00:18:40 +00:00
Roland Winklmeier
d8de6bc398 Fix CXPlaneUtil::xplane10Dir() on Mac OS
Q_OS_UNIX is also defined on Mac OS, therefore the Q_OS_OSX branch
was never reached.
This concludes the test of this function on Mac OS and the todos
can be removed.
2017-02-24 00:18:20 +00:00
Mathew Sutcliffe
e5d45b077d refs #852 Fix for problem with landing aircraft with interim position updates. 2017-02-24 00:18:12 +00:00
Mathew Sutcliffe
08b1c19df7 refs #852 CInterpolatorLinear obtains the ground elevation via a lazy computation
in CInterpolationHints and uses this to interpolate between altitude and elevation.
2017-02-24 00:18:01 +00:00
Mathew Sutcliffe
8a924d5b1c refs #852 IInterpolator::getInterpolatedParts interpolates the onGround value. 2017-02-24 00:17:58 +00:00
Mathew Sutcliffe
3f5139d717 refs #852 IInterpolator::getPartsBeforeTime renamed to getInterpolatedParts
and returns a single CAircraftParts object, not a list.
2017-02-24 00:17:55 +00:00
Mathew Sutcliffe
76cc9f8ad8 refs #852 CAirspaceMonitor has no maximum number of parts per callsign,
but regularly prune the list based on timestamp age.
2017-02-24 00:17:53 +00:00
Mathew Sutcliffe
bc38a0cea1 refs #852 Added aircraft parts in CInterpolationHints. 2017-02-24 00:17:50 +00:00
Mathew Sutcliffe
ec44c100b7 refs #852 Const-correctness. 2017-02-24 00:17:42 +00:00
Roland Winklmeier
1f61458504 Add SimConnect utility converting weather grid
refs #851
2017-02-24 00:09:16 +00:00
Klaus Basan
61e7f23847 refs #858, todo review (demoted, commented) 2017-02-24 00:09:00 +00:00
Mathew Sutcliffe
1c082c4649 doxygen 2017-01-11 01:28:40 +00:00
Mathew Sutcliffe
52777cf7dc todo adjustments 2017-01-11 01:28:39 +00:00
Klaus Basan
9eff387207 Removed deprecated funtions and changed code to use new functions 2017-01-10 23:47:10 +00:00
Klaus Basan
928dd9f34a Allow to admit caches used in model set loader 2017-01-10 23:46:57 +00:00
Klaus Basan
2a083f9113 refs #849, utility functions in model list added 2017-01-10 23:46:56 +00:00
Klaus Basan
ad0ef16ba5 refs #849, matching statistics entry and container class 2017-01-10 23:46:49 +00:00