Commit Graph

77 Commits

Author SHA1 Message Date
Klaus Basan
1f3e5c6abf Formatting, minor tweaks 2018-05-08 16:06:43 +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
42ef7c5633 Avoid long "hanging" if Windows UNC path is not reachable
Use own "isDirExisting" function checking UNC paths
2018-04-05 02:54:40 +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
03af49348b Ref T259, Ref T243 formatting 2018-04-05 02:53:55 +02:00
Klaus Basan
3f086e1d52 Allow to display position logs also in the console window
* added requestUiConsoleMessage
* utility functions
2018-04-05 02:52:38 +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
78711487a6 Ref T241, moved inner logger classes out CInterpolationLogger
Reason: More options, such as forward declaration
2018-02-04 09:00:23 +01:00
Klaus Basan
bb65b7c280 Ref T226, renamed to swiftDbAllDataRead 2018-02-02 21:26:52 +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
3ee5e68054 Ref T238, comments and formatting 2018-01-30 20:31:56 +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
be8598e708 Ref T180, clear hints when all aircraft are cleared 2017-11-05 20:02:31 +01:00
Klaus Basan
d5bb1733f4 Ref T180, formatting / const 2017-11-04 16:03:40 +01:00
Klaus Basan
6e39b69933 Ref T171, locker for interpolator/rendering setup.
Actually this was missing, in other parts the lock was already used.
2017-10-18 22:58:52 +02:00
Klaus Basan
dafb3b0569 Ref T171, allow opening the interpolation log dir by command 2017-10-18 22:58:42 +02: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
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
29e1d54e05 Ref T111, some fixes in the vicinity of plugin / drivers
* mostly style / doxygen / formatting
* assert/verify
2017-09-24 19:51:02 +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
6d26c96569 Ref T27, preparation for refactoring, turned private slots into normal member functions
* Motivation: slots no longer required, and in the driver the (small) slot overhead might matter
* renamed some members to better reflect future use
* timer intervals as constexpr
* fixed some typos and comments
2017-06-27 20:50:26 +02:00
Klaus Basan
f34e80ea62 refs #935, avoid issues when shutting down 2017-04-19 19:31:02 +01:00
Klaus Basan
277837bb30 refs #916, dot command for interpolator mode 2017-04-18 00:01:03 +01:00
Klaus Basan
38ea336cbb refs #894, register dot commands for help
(wherever dor commands are implemented)
2017-04-17 23:57:50 +01:00
Mathew Sutcliffe
04ddd3bfa5 refs #863 Move interpolator logging into a separate class.
A single logger instance can be shared between multiple interpolator instances.
2017-02-24 15:22:34 +00:00
Mathew Sutcliffe
b8fc62a2a4 refs #863 Removed unused method. 2017-02-24 15:22:24 +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
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
Roland Winklmeier
1a6c7fa192 Add control button to activate and deactivate swift weather
- GUI changes
- Context and ISimulator APIs
- Refactored settings and static weather injection in CSimulatorCommon

refs #807
2017-01-10 23:47:39 +00:00
Klaus Basan
c609c555b4 refs #848, parse command line in simulator
* added default implementation
* sims can override parseDetails for specific cmd lines
* enable/disable FSUIPC in fscommon part
* added useFsuipc(bool on)
2017-01-10 23:46:21 +00:00
Klaus Basan
667009c85e refs #840, moved interpolator classes into Simulation namespace 2017-01-10 23:45:27 +00:00
Klaus Basan
46fafde7a0 refs #840, add support for interpolation hints 2017-01-10 23:45:25 +00:00
Klaus Basan
534b9fb09e refs #840, style and const-correctness 2017-01-10 23:45:24 +00:00
Klaus Basan
1f57f7ca61 refs #812, use individual signals for web services
* trigger other operations directly when data have been read (do not wait for "all data read")
* avoid retriggering for no reason
* new entity flag for all data req. for model matching
2016-12-13 19:01:16 +01:00