Commit Graph

97 Commits

Author SHA1 Message Date
Klaus Basan
898b7354f4 Ref T268, utility function to get situations which do not require "near ground interpolation" 2018-07-09 22:30:43 +02:00
Klaus Basan
1f689a8830 Ref T275, Ref T280, Ref T245 FSX simulator improvements
* request model info
* stricter checks (asserts)
* display simulator debug messages in simulator view (not as normal status message)
2018-07-09 22:30:16 +02:00
Klaus Basan
9baa10c5f8 Style 2018-07-09 22:30:14 +02:00
Klaus Basan
bc0b4502cf Ref T275, move some simple implementations into ISimulator
Goal: merge CSimulatorCommon/ISimulator
2018-06-27 12:49:08 +02:00
Klaus Basan
69193f089a Minor tweaks, style 2018-06-25 02:04:35 +02:00
Klaus Basan
73ea22530c Ref T275, override simulator setup provider functions to emit signals
* the provider itself is no QObject and cannot emit signals
* removed redundant function setInterpolationAndRenderingSetup
2018-06-20 00:58:41 +02:00
Klaus Basan
9777bf963c Style 2018-06-18 03:04:32 +02:00
Klaus Basan
c5fb428fa9 Ref T280, using the QHash<CCallsign, T> definitions to unify use cases 2018-06-14 14:40:16 +02:00
Klaus Basan
4975ecd712 Ref T275, improved tracing for FSX
* getStatisticsSimulatorSpecific for simulator specific traces/logs
* trace CSimulatorFsxCommon::SimConnectProc times
* trace which receive id is handled in SimConnectProc
* allow to limit aircraft updates (max FPS)
* handle airport updates outside SimConnectProc
2018-06-13 14:00:19 +02:00
Klaus Basan
0f931eeeb3 Ref T268, moved changeRemoteAircraftModel/Enabled to CSimulatorCommon and removed duplicated code 2018-06-13 14:00:09 +02:00
Klaus Basan
a01d18dfa8 Ref T270, further tracing stats (max, current ....) 2018-06-13 14:00:04 +02:00
Klaus Basan
6c0c925fa2 Ref T273, Ref T275 compare equal parts/situation functions 2018-06-13 13:59:58 +02:00
Klaus Basan
f3a7eef458 Increased number of cycles when displaying interpolation log. in simulator 2018-06-13 13:59:51 +02:00
Klaus Basan
de0a827f87 Ref T270, also display update aircraft (interpolation) request time
* made some ISimulator functions public, so they can be used in UI
* added members for request times
* better "shutdown" / "disconnect" detection
2018-06-13 13:59:26 +02:00
Klaus Basan
aa7363dcad Ref T270, Ref T268, plugin common / simulator improvements
* connect with "about to quit"
* added interface declarations
* sim statistics, use common function setStatsRemoteAircraftUpdate and double for average values
2018-06-13 13:59:22 +02:00
Klaus Basan
27340f6906 Ref T270, access to sim. statistics 2018-05-29 00:56:40 +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
afe4a09218 Formatting 2018-05-18 00:25:10 +02:00
Klaus Basan
9c33c5d9fc Ref T245, Ref T261, added functions for "follow plane", "setup changed" signal in context and simulator interface 2018-05-18 00:25:01 +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
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
1f3e5c6abf Formatting, minor tweaks 2018-05-08 16:06:43 +02:00
Klaus Basan
456cb5d1ea SimConnect config: Allow to enable tracing of sendid via UI 2018-05-08 16:06:40 +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
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
301219600b Ref T259, Ref T243 added setup provider to simulator interface/simulator common 2018-04-13 23:36:41 +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
4dfb973a5b Ref T259, Ref T243 moved the "awareness" classes to the interfaces
* allows access to the awareness objects if only the interface is available
* can change the provider via the interface
2018-04-05 02:54:34 +02:00
Klaus Basan
2b8883eef8 Ref T259, formatting 2018-04-05 02:52:41 +02:00
Klaus Basan
5a15e74f63 Ref T241, misc. logger improvements
* string formatting of logger info
* display longer in simulator
* better formatting of message
2018-02-05 03:45:25 +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
cd5fdfaf14 Ref T231, Ref T236, Ref T238 improved logging of situation/parts logging
* "dot" commands to log parts/situations
* log can also be displayed in simulator (if simulator can display text messages)
* fixed missings locks for m_interpolationRenderingSetup
* more detailed output
* renamings
* using hints in log
2018-01-30 20:35:05 +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
b76a82398f Ref T231, "dot" command to display position in simulator 2018-01-30 20:31:32 +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
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
fd62ef80e0 Ref T180, formatting and renaming of member/function 2017-11-09 04:42:08 +01:00
Klaus Basan
418d0aa628 Ref T171, Ref T136, removed the remote provider's "remove aircraft part", as it is not used:
* remove is handled by context call logicallyRemoveRemoteAircraft
* so far no need to use the remote provider function
* can be used again whenever needed
2017-10-18 22:58:36 +02:00
Klaus Basan
bef47bf8ed Ref T171, Ref T136, moved statistics counter to base class
* removed from emulated driver
* since we have the remote access providers functions, the counter functions have been moved to the base class. Therby we can use them for all drivers.
2017-10-18 22:58:35 +02:00
Klaus Basan
32398ce90a Ref T171, Ref T136, check remote aircraft provider calls for connection 2017-10-18 22:58:31 +02:00
Klaus Basan
b6333e69d8 Ref T171, made remote aircraft provider and web service "protected slots" -> "protected"
* Unlike in other cases, the remote aircraft provider slots are also very frequently called. So besides "style", it might be also useful here to avoid the extra MOC layers.
* Also renamed 2 web service signals and made web service connections Qt::QueuedConnection
2017-10-18 22:58:24 +02:00
Klaus Basan
61a23d700b Ref T171, driver formatting 2017-10-18 22:58:22 +02:00
Klaus Basan
2b3b173b76 Default calculation of distance/bearing for airports. Follow up of the discussion in slack/during T125
Summary: Default calculation of distance/bearing for airports.

Reviewers: msutcliffe, rwinklmeier

Reviewed By: msutcliffe, rwinklmeier

Subscribers: jenkins

Maniphest Tasks: T125

Differential Revision: https://dev.swift-project.org/D48
2017-09-24 19:53:31 +01:00
Klaus Basan
1387573e5b Ref T112, moved simulator settings in subdir/settings namespace 2017-09-24 19:51:46 +01:00
Klaus Basan
8bffc9b598 Ref T111, default implementation for physicallyRemoveAllRemoteAircraft() in CSimulatorCommon::physicallyRemoveAllRemoteAircraft(). 2017-09-24 19:51:21 +01:00
Klaus Basan
d597dcec15 Ref T111, improved dot commands (e.g. ".drv") handling
* register help implementation to .cpp file
* tooltip HTML formatting
2017-09-24 19:51:17 +01:00
Klaus Basan
ba31171a10 Ref T111, allow to alter plugin info (needed for dummy driver) 2017-09-24 19:51:12 +01:00
Klaus Basan
bd67824ce6 Ref T27, utility functions for debug messages 2017-09-24 19:48:56 +01:00
Klaus Basan
39bd8aa2bb Formatting 2017-09-24 19:48:53 +01:00
Klaus Basan
f34e80ea62 refs #935, avoid issues when shutting down 2017-04-19 19:31:02 +01:00