Commit Graph

957 Commits

Author SHA1 Message Date
Klaus Basan
225d05d22f Ref T259, Ref T243 prepared sim.env.provider to request elevations 2018-05-04 23:03:28 +02:00
Klaus Basan
852abf1232 Marked deprecated functions in proxy (doxygen) 2018-05-04 23:03:12 +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
a7f1e15f39 Ref T259, Ref T243 pass the providers along the hierarchy 2018-04-13 23:37:49 +02:00
Klaus Basan
785e35ee88 Formatting 2018-04-13 23:37:48 +02:00
Roland Winklmeier
e1538573fe Remove old xswiftbus interpolator code
ref T259
2018-04-13 23:37:45 +02:00
Klaus Basan
66b661fe9c Ref T259, Ref T243 added number of parts/situations and last modified timestamp
* the spline interpolator might need the timestamp to create a new interpolant
* number of parts/situations is for info only
2018-04-13 23:37:44 +02:00
Klaus Basan
9abc57bb3d Ref T259, Ref T243 remove aircraft parts and situations from interpolator
* no longer using the add parts/situations signals
* will use the remote aircraft provider parts directly

Result: all parts/situations are stored only once in memory and in one single place
2018-04-13 23:37:37 +02:00
Klaus Basan
4248c1b689 Ref T259, Ref T243 improved utility function to store elevations in multiple providers 2018-04-13 23:37:36 +02:00
Klaus Basan
fba301adcc Ref T259, Ref T243 FSX data defintions renamings 2018-04-13 23:37:30 +02:00
Klaus Basan
3f9ec92fb4 Ref T259, Ref T243 removed guessing from sim classes 2018-04-13 23:37:22 +02:00
Klaus Basan
6a92ea4cb6 Ref T259, Ref T243 situation/parts/lights adjustments
* guessing now in parts/lights (so it can be used with all sims)
* minor renamings
* init FSX data definitions from parts
2018-04-13 23:37:20 +02:00
Klaus Basan
0c06ac26f7 Ref T259, Ref T243 removed interpolation hints
* no longer needed with providers in that form
* pure refactoring commit, just guarantees compilation
* already minor adjustments to use providers
2018-04-13 23:37:18 +02:00
Klaus Basan
06b07ac4c6 Formatting 2018-04-13 23:36:58 +02:00
Klaus Basan
b8de29201a Ref T259, Ref T243 adjusted simulator classes to use new setup provider 2018-04-13 23:36:42 +02:00
Klaus Basan
011f31ad2b Formatting 2018-04-13 23:36:37 +02:00
Klaus Basan
333a92ff63 Ref T259, Ref T243 renaming to CInterpolationAndRenderingSetupPerCallsign 2018-04-13 23:36:34 +02:00
Klaus Basan
55534cbb09 Formatting 2018-04-13 23:36:12 +02:00
Klaus Basan
4b7237ce1b Ref T259, Ref T243 adjusted providers to use common base classes 2018-04-06 02:56:57 +02:00
Klaus Basan
3346a92b56 Ref T259, Ref T243 simulator environment provider
* access to elevation
* future: more data such as airport info
2018-04-05 02:54:32 +02:00
Klaus Basan
8021cf76fd Ref T259, Ref T243 formatting 2018-04-05 02:54:30 +02:00
Klaus Basan
67e8f94481 Ref T259, Ref T243 renaming and adding flags in situation to also represent inbound situations 2018-04-05 02:54:20 +02:00
Klaus Basan
03af49348b Ref T259, Ref T243 formatting 2018-04-05 02:53:55 +02:00
Roland Winklmeier
d4e4cc2dad Always use cyan color for X-Plane messages 2018-04-05 02:53:15 +02:00
Klaus Basan
79d898baec Ref T259, error message if proxy signal cannot be connected
Do not relay some signals
2018-04-05 02:52:58 +02:00
Klaus Basan
9517ce7d7c Ref T259, formatting 2018-04-05 02:52:50 +02:00
Klaus Basan
34502b6b76 Ref T259, renamed CXPlaneMPAircrafts to CXPlaneMPAircraftObjects
* there is no plural for aircraft
* so the same style as for simObjects was used
2018-04-05 02:52:48 +02:00
Klaus Basan
13ede9fac1 Ref T259, only remove aircraft after data have been used, otherwise a dangling reference causes a crash 2018-04-05 02:52:45 +02:00
Klaus Basan
41109dd761 Ref T259, some adjustments to our latest style
* no private slots
* timers as members
2018-04-05 02:52:43 +02:00
Klaus Basan
2b8883eef8 Ref T259, formatting 2018-04-05 02:52:41 +02:00
Roland Winklmeier
09de945242 Add experimental X-Plane CG offset fetching
ref T231
2018-04-05 02:52:28 +02:00
Roland Winklmeier
72497fdefc Regularly request remote aircraft data from X-Plane
This includes
* ground elevation
* model offset (to be implemented)

ref T259
2018-04-05 02:52:26 +02:00
Roland Winklmeier
4db0b83310 Move X-Plane interpolation into driver
ref T259
2018-04-05 02:52:20 +02:00
Klaus Basan
63d7e36389 Ref T251, also set GND info for own aircraft 2018-02-16 12:13:38 +01:00
Klaus Basan
78e61e25ac Formatting 2018-02-16 12:13:35 +01:00
Klaus Basan
14fb35a975 Formatting 2018-02-05 03:45:36 +01:00
Roland Winklmeier
0c7d2b23f4 Fix race condition between previous and next weather request
Once a weather request was finished, its worker gets destroyed automatically
but not immediately. This can cause it to still exist, when the next
request is being processed.
Therefore wait with sending the fetchingFinished() signal, until the
worker is fully destroyed.

ref T235
2018-02-04 09:00:08 +01:00
Roland Winklmeier
597f3f7a6a Add basic weather handling to emulated simulator
It won't do much apart from requesting a weather grid. It might be useful
in the future to debug the weather engine. But for now it helps to detect
issues in the request path.

ref T235
2018-02-04 09:00:05 +01:00
Roland Winklmeier
1b5a0a7f4d Rename private slots to private functions 2018-02-04 09:00:02 +01:00
Klaus Basan
5aad426ced Ref T239, removed "QTimer m_xxx { this };" pattern
* not in worker classes as parent might have a relevance there
* in UI classes it is useless
2018-02-02 21:26:50 +01:00
Klaus Basan
301eb79eca Renamings and adjustments of developer flag 2018-01-30 20:34:50 +01:00
Klaus Basan
897a6f301f Ref T232, aircraft can be re-added or removed via "dot-commands"
* can be used for testing
* utility functions to find inconsistent aircraft states
* reset highlight state
2018-01-30 20:31:59 +01:00
Klaus Basan
3ee5e68054 Ref T238, comments and formatting 2018-01-30 20:31:56 +01:00
Klaus Basan
3da834e964 Ref T231, formatting 2018-01-30 20:31:35 +01:00
Klaus Basan
d118ea402f Ref T232 clear remote aircraft data once network disconnects
* blackconfig in .pro
* verify function to detect dangling states
* clear remote data when disconnected from network
* there was one problem that the data where not correctly cleaned up and hence new aircraft where not added again after a disconnect/reconnect from network
* it is not yet clear why data happens (dangling data), that is what the debugVerify function is for
2018-01-30 20:31:11 +01:00
Klaus Basan
5f7842163b Ref T231, Ref T232 utility functions 2018-01-30 20:31:09 +01:00
Klaus Basan
dac1ee85f9 Ref T232, some (dispatch) timer code was duplicated
* fixed a bug, where a non existing timer was killed
* unified code in base class
2018-01-30 20:30:20 +01:00
Klaus Basan
fae5e6ac0a Ref T229, FS9 and XPlane adjustments for changed CInterpolationStatus
Ref T207, maybe MS should review the XP part
2018-01-30 20:29:56 +01:00
Klaus Basan
467f8cbac9 Ref T229, fixed problems in FSX driver
* use correct status (the problem was that even not interpolated situations can be valid)
* track last position (SimObject), do not resend same position
2018-01-30 20:29:53 +01:00
Klaus Basan
2fbc7acc7d Ref T229, track sent position in SimObject 2018-01-30 20:29:51 +01:00