Commit Graph

5900 Commits

Author SHA1 Message Date
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
f4320b18c5 Quick fix so model sets can be saved, see https://swift-project.slack.com/archives/G96QTUBEG/p1525815058000559 2018-05-12 21:40:07 +02:00
Roland Winklmeier
d743ec98fa Remove unused code 2018-05-12 21:40:04 +02:00
Roland Winklmeier
dab41045d3 [xswiftbus] Check if plane exists already before adding a new one 2018-05-12 21:40:02 +02:00
Roland Winklmeier
48b1b78d81 Update libxplanemp submodule 2018-05-12 21:40:00 +02:00
Roland Winklmeier
2fd4d286d6 Refactor retrieving remote aircraft data
Instead of requesting it individually for each callsign and waiting for a
signal from xswiftbus, pass in a list of callsigns and use async callback
to read the data.
2018-05-08 16:06:57 +02:00
Roland Winklmeier
bf8ed5c006 Load X-Plane remote aircrafts one by one sequentially 2018-05-08 16:06:57 +02:00
Roland Winklmeier
7de5c06c7a [xswiftbus] Fix destroying of removed menu items 2018-05-08 16:06:57 +02:00
Roland Winklmeier
0ad18cd0a4 Fix sending of parts to X-Plane 2018-05-08 16:06:56 +02:00
Roland Winklmeier
848da69fe1 Group sending of all plane positions and surfaces into a single DBus call 2018-05-08 16:06:56 +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
f1bb44060e Context menu "enable all aircraft" 2018-05-08 16:06:55 +02:00
Klaus Basan
fd2f63f246 Log. can also be triggered from internals UI 2018-05-08 16:06:54 +02:00
Klaus Basan
740de9786f Fixed function "endsStringWithNameOrSymbol" to "const" 2018-05-08 16:06:54 +02:00
Klaus Basan
6b80991c94 Only "Copy XSwiftBus" dialog when NOT already connected with simulator 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
337f661499 Improved aircraft selector
* digest signal to fill combobox
* sorted by callsigns
2018-05-08 16:06:53 +02:00
Klaus Basan
7590be1a54 Ref T261, unit tests for the CG XPlane issue (feet? meters? mixup)
Testing altitude correction
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
cb522fedd7 Formatting 2018-05-08 16:06:50 +02:00
Klaus Basan
c4a900084e Ref T261, internals component adds client capability when client is not parts enabled 2018-05-08 16:06:50 +02:00
Klaus Basan
0dca6db4bf Check pointer for QTimer::singleShot 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
Klaus Basan
ab0c34b16a Ref T261, added toFullJson in parts
* needed, since the "is full" attribute needs to be added
* fixed usage in network vatlib
2018-05-08 16:06:49 +02:00
Klaus Basan
5bf21c2937 Ref T261, correct implementation of client provider
* made the interface a "real" interface and provided implementation as CCLientProvider
* aligned some function names with networl context
* network context "impl" also implements ICLientProvider
2018-05-08 16:06:49 +02:00
Klaus Basan
3031e5b648 Ref T261, set client provider in simulator
Needed to obtain client capabilities
2018-05-08 16:06:48 +02:00
Klaus Basan
2a86378f79 Ref T261, calculate scenery deviation 2018-05-08 16:06:48 +02:00
Klaus Basan
29407d113e Ref T261, encapsulated groundInterpolationFactor
Rational: Less compilation time when need to change
2018-05-08 16:06:48 +02:00
Klaus Basan
756b1a1ada Ref T261, engine type as QChar 2018-05-08 16:06:48 +02:00
Klaus Basan
2d66fd470a Ref T261, a global altitude offset can be enabled for testing 2018-05-08 16:06:47 +02:00
Klaus Basan
a2ab62a25a Shutdown guard 2018-05-08 16:06:47 +02:00
Klaus Basan
ad10470eb1 Ref T261, improved "finding" for elevation, "findFirst" for small radius 2018-05-08 16:06:47 +02:00
Klaus Basan
ae8d9abf0d Improved ATIS update in ATC station component
* signal for ATIS received
* reload ATC statiosns when ATIS changes
2018-05-08 16:06:47 +02:00
Klaus Basan
0b7706471c Ref T261, guess push back 2018-05-08 16:06:46 +02:00