Commit Graph

5809 Commits

Author SHA1 Message Date
Klaus Basan
4423f8503f DSGVO and adjusted bootstrap URL: https://datastore.swift-project.net 2018-05-08 16:06:35 +02:00
Klaus Basan
6061a61d50 Ref T260, changed elevation handling in provider, simulator and FSX common driver
* split functions, added findClosestElevationWithinRangeOrRequest
* obtain elevation ids (separate ids are easier to track)
* also added experimental "physicallyAddAITerrainProbe" (FSX) for the FSX elevation probing
* callback / signal when requested elevation is received (async)
2018-05-08 16:06:35 +02:00
Klaus Basan
dcc348c9d9 Ref T260, correctly set simulation environment provider 2018-05-08 16:06:34 +02:00
Klaus Basan
056c257182 Ref T260, utility functions to set provider, plane ctor 2018-05-08 16:06:34 +02:00
Klaus Basan
6e908db52e Ref T260, changed to const QObject 2018-05-08 16:06:34 +02:00
Klaus Basan
e1421622b1 Reset URL list and adjusted timeouts for for bootstrap file. Also avoid problems when shutting down. 2018-05-08 16:06:34 +02:00
Klaus Basan
631ffdb191 Explicit cast to avoid compile warning on Win64 2018-05-08 16:06:33 +02:00
Klaus Basan
0d76cc8d3e Formatting 2018-05-08 16:06:33 +02:00
Klaus Basan
cd1ce37ec3 Ref T259, Ref T243 interpolator changes
* interpolators use providers for client/situations/parts/ground elevation
* interpolators do no longer use own situations/parts, but those from provider
* interpolators are no longer QObjects (as it is not needed)
* use gnd flag from situation for gnd interpolation, there is no longer a parts gnd flag interpolation
* guess parts during interpolation
* changed iterators to m_s[i] as it makes clearer which values are used
** the flag is transferred from parts -> situation in airspace monitor
** if the other client already provides and gnd.flag in situation this also works
* adjusted logging
* use providers in unit tests / adjusted tests
* improved situation verification/assert
2018-05-08 16:06:33 +02:00
Klaus Basan
5c6a37c669 Ref T259, Ref T243 removed guessing from FSX driver code (now in interpolator) and also use guessing in emulated driver 2018-05-08 16:06:33 +02:00
Klaus Basan
f1faeef84a Ref T259, Ref T243 added functions to use guessed parts in
* sim object
* XPlane aircraft
* forward aircraft model to interpolator for guessing
2018-05-08 16:06:32 +02:00
Klaus Basan
e3d17859a0 Ref T259, Ref T243 improved utility functions so parts can be guessed in interpolator
* engine count
* aligned naming to "getEnginesCount"
* formatting
2018-05-08 16:06:32 +02:00
Klaus Basan
c3f05ea1cd Ref T259, Ref T243 details for aircraft parts 2018-05-08 16:06:32 +02:00
Klaus Basan
c1ac229875 Formatting 2018-05-08 16:06:32 +02:00
Klaus Basan
291780244b Added utility functions to avoid warnings converting int/double to float 2018-05-08 16:06:32 +02:00
Klaus Basan
75c481228f Missing include, fixing missing M_PI
Using the little "PI = std::acos(-1);" trick to avoid include issues
2018-05-08 16:06:31 +02:00
Roland Winklmeier
da94b6c0df Change dimensions and font of xswiftbus message window 2018-05-08 16:06:31 +02:00
Roland Winklmeier
6a19f7c334 Update externals 2018-05-08 16:06:31 +02:00
Roland Winklmeier
6fec158534 [xswiftbus] Move CAircraftModel into its own file 2018-05-08 16:06:31 +02:00
Roland Winklmeier
45a846da03 Fix clang warnings 2018-05-08 16:06:30 +02:00
Roland Winklmeier
37e592759c [xswiftbus] Plane View Menu
FSX/P3D have a nice feature to follow a remote aircraft with the camera.
X-Plane was missing this feature, since for X-Plane the remote aircrafts
are not known. However, from a plugin point of view, we know them and where
they are. So we can manually control the camera and provide a similar
feature.
This is still very simple. As soon as you move the mouse, the PoV angle will
change. In future updates, it should be change only while the right mouse
button is pressed.
2018-05-08 16:06:30 +02:00
Roland Winklmeier
6a8ae67e06 [xswiftbus] Make xswiftbus completely Qt free 2018-05-08 16:06:30 +02:00
Roland Winklmeier
b0a8fcaa45 [xswiftbus] Remove BlackMisc dependency
There were only very few classes used from Blackmisc after the interpolator
was moved to the driver. Therefore replace those few classes with
a simple alternative and remove BlackMisc from xswiftbus.
2018-05-08 16:06:30 +02:00
Roland Winklmeier
b278d9ee2f Group own aircraft DBus calls together
Previously all own aircraft values were request via single DBus calls.
Since DBus allows up to 8 values in its reply, use this mechanism
to group the requests and reduce the amount of single calls.
2018-05-08 16:06:29 +02:00
Roland Winklmeier
d77931e5ec [xswiftbus] Replace QtDBus with a libevent driven C++ wrapper on top of libdbus
QtDBus was the main component of xswiftbus' Qt dependency. This is the
first preparation step to get xswiftbus Qt free.
The new implementation is based on the low level libdbus library, which
was also in use by QtDBus itself. But instead of QtDBus, we use now a thin
C++ wrapper. To keep DBus handling async, libevent is used to monitor
timeouts and fds.
2018-05-08 16:06:29 +02:00
Roland Winklmeier
849124fe7c Optimize async dbus calls without expected reply 2018-05-04 23:03:36 +02:00
Roland Winklmeier
84bb363990 Don't remove rows if there are no rows
This fixes an assert added in Qt 5.11.
2018-05-04 23:03:34 +02:00
Roland Winklmeier
87bb9e28cd Fix MinGW build without any optimizations
Building without any optimizations disabled implicit inlining of
MetaClass::getMemberList() and we ended up with many undefined symbols.
2018-05-04 23:03:33 +02:00
Klaus Basan
aa21d9ea92 Ref T259, Ref T243 unify ground details when a new situation is received 2018-05-04 23:03:32 +02:00
Klaus Basan
bc4875afbb Ref T259, Ref T243 functions to set/get ground details (situation) 2018-05-04 23:03:31 +02:00
Klaus Basan
6f8d0ce2ab Formatting 2018-05-04 23:03:30 +02:00
Klaus Basan
225d05d22f Ref T259, Ref T243 prepared sim.env.provider to request elevations 2018-05-04 23:03:28 +02:00
Klaus Basan
cf98c46231 Ref T259, Ref T243 return unit by reference 2018-05-04 23:03:27 +02:00
Klaus Basan
bedfb5eb67 Ref T259, Ref T243 align timestamp values to qint64 2018-05-04 23:03:26 +02:00
Klaus Basan
aea0f307db Ref T259, Ref T243 set function/ctor for normal vector 2018-05-04 23:03:24 +02:00
Klaus Basan
7d106acdee DB reader, doWorkCheck before writing cache. In case shutdown takes place in-between. 2018-05-04 23:03:23 +02:00
Klaus Basan
57b3760b61 Make "CanConnect" timeout configurable in watchdog
* see also https://swift-project.slack.com/archives/G7GD2UP9C/p1522624024000024
* added signatures
* changed timeout
2018-05-04 23:03:22 +02:00
Klaus Basan
9192d13a6c Dialog (no longer overlay frame) for new DB data
* allows to select the entities
* allows to consolidate
2018-05-04 23:03:21 +02:00
Klaus Basan
f8d16555aa No assert but empty URL and verify if sApp has been deleted 2018-05-04 23:03:20 +02:00
Klaus Basan
574bc8b51b Utility functions for entity flags and web data services
* multiple flags by name
* number of DB objects
* newer entities synchronized
2018-05-04 23:03:19 +02:00
Klaus Basan
b6b37c9c0f DB watchdog also emits URL in signal (allows to display the failed URL) 2018-05-04 23:03:18 +02:00
Klaus Basan
0b4637054a Formatting 2018-05-04 23:03:16 +02:00
Klaus Basan
7d97b0e2a7 Some view/model improvements
* unselected functions as unselectedRowCount/unselectedRows ...
* turned some private slots -> private functions
2018-05-04 23:03:15 +02:00
Klaus Basan
37814d3f08 Fix model/view bug: do not delete all rows when deleting in a filtered view 2018-05-04 23:03:14 +02:00
Klaus Basan
63e5f75a1d Ref T259, Ref T243 situation detects under and overflow
* details about altitude correction AltitudeCorrection
* function to correct altitude by detecting under/overflow
2018-05-04 23:03:13 +02:00
Klaus Basan
852abf1232 Marked deprecated functions in proxy (doxygen) 2018-05-04 23:03:12 +02:00
Klaus Basan
0f1cec0e42 Ref T259, Ref T243 update client capabilities when receiving parts 2018-05-04 23:03:11 +02:00
Klaus Basan
bd7fd59d07 Ref T259, Ref T243 elevation provider statistics 2018-05-04 23:03:09 +02:00
Klaus Basan
52dd7a754c Ref T259, Ref T243 access to last interpolated situation to check if near ground 2018-05-04 23:03:08 +02:00
Klaus Basan
9d484df5ed Ref T259, Ref T243 compare situation by vector 2018-05-04 23:03:07 +02:00