Commit Graph

63 Commits

Author SHA1 Message Date
Klaus Basan
aafee8eafd refs #402, post merge feedback by MS 2015-04-11 02:09:10 +02:00
Michał Garapich
985a1caecf refs #396 BlackMisc: nw* goes to network/, hw* goes to hardware/ 2015-04-07 19:22:37 +02:00
Klaus Basan
0ab755d510 refs #396 subfolders and renamed callsign list to callsign set
* subfolder audio
* subfolder geo
* adjusted samples, tests ....
2015-04-07 19:22:23 +02:00
Klaus Basan
32f60722c8 refs #396, move subproject BlackSim into BlackMisc::Simulation
* removed unused samples / tests
* fixed found Doxygen issues
* removed blacksimfreefunctions, now in BlackMisc::Simulation::registerMetadata()
* samples_vetcor_geo to samples_geo
2015-04-07 19:22:16 +02:00
Roland Winklmeier
78d3350bf3 refs #396 move Blackmisc Aviation classes into subfolder 2015-04-07 18:20:20 +02:00
Michał Garapich
63e48ae332 Remove ISimulator::getSimulatorInfo()
To provide maximum flexibility, the simulator info is specified by each
plugin in the JSON metadata file.

* Renamed SCimulatorInfo to CSimulatorPluginInfo
* Removed pre-defined simulator infos (UnspecifiedSim, FSX, etc)
* CContextSimulator keeps track of which plugin is loaded and its info
* QSignalMapper keeps track of which listener emitted the simulatorStared() signal
* CSimulatorPluginInfo contains name, simulator name and description
* TODO: GUI part
* TODO: CTestFsCommon
2015-04-01 01:20:25 +02:00
Michał Garapich
3897fb2d1a FS9 plugin cleanup
* Make host & lobby client plugin-global
* Post-rebase cleanups (FSX too)
2015-04-01 00:07:28 +02:00
Michał Garapich
924e094a38 Listen for simulators on another thread 2015-04-01 00:05:15 +02:00
Michał Garapich
edc0646ab2 Make FSX works with ISimulatorListener.
SimConnect tries to connect to FSX every 5 seconds.
TODO: Use WinAPI to wait for FSX process to show up
2015-04-01 00:01:35 +02:00
Michał Garapich
afc22397bb JSON plugin metadata initial
* Added json files along with FILE macro for all drivers
* Get CSimulatorInfo from JSON rather than from ISimulatorFactory
2015-03-31 23:56:35 +02:00
Michał Garapich
c5a1a6048b Refactor Simulator connection status
* Removed obsolete and unused signals (ISimulator, CSimulatorContext)
* Removed ISimulator::ConnectionStatus enum
2015-03-31 23:56:32 +02:00
Michał Garapich
adc623f0e7 Add ISimulatorListener interface 2015-03-31 23:52:29 +02:00
Klaus Basan
48655bf551 refs #395, signatures for max.aircraft and max.range
(!) This in an intermediate step, the feature is not yet fully operational

* max distance for rendering as simulator property
* set max distance / aircraft from GUI

As result of the latest meeting
* changed CCallsignList to CCollection
* fixed some warning with elevated compiler settings (e.g. removed qint values -> int)
2015-03-29 20:15:13 +02:00
Klaus Basan
53afe798d4 Fixed warnings as mentioned in
https://dev.vatsim-germany.org/boards/22/topics/2587?r=2598#message-2598
and found by
+win32-msvc*:QMAKE_CXXFLAGS_WARN_ON *= /Wall /W3 /wd4640 /wd4619 /wd4350 /wd4351
2015-03-29 20:15:09 +02:00
Klaus Basan
70670b74c6 refs #393, allow to highlight a certain aircraft by blinking
* signatures in contexts
* some specialized functions in aircraft list
* context menus in aircraft view
* default "blinking" implementation in driver common base class
2015-03-29 20:15:05 +02:00
Klaus Basan
66da4d7353 refs #394, LED to display when mapper is ready
* function in context for models count
* adjusted status bar component
* in same step: menu to toggle "window on top"
2015-03-29 20:15:01 +02:00
Klaus Basan
48dc360237 Removed old model/views for aircraft, now all with simulated aircraft
Updates of models in view now manually / automatic possible
Allow to reload models (in backend)
2015-03-20 17:11:38 +01:00
Klaus Basan
5ed95aee3d refs #391, allow to send aircraft parts from GUI
* GUI component for aircraft parts
* remote aircraft selector component
* Adjusted GUI for internals component
* Enable / disable debug messages from GUI
* Allow to init engines directly
* Removed unused async sort in sequence

In same step fixed found issues in interpolator
* allow to set max rendered aircraft
2015-03-20 17:08:23 +01:00
Klaus Basan
420a47e90c refs #369, changed interpolation to a working (but still too bad performing) version
* using split by callsign everywhere
* helper function to insert_front
* revised linear interpolator
* renamed to remoteAircraft
* renamed to container() in providers (gettters are usually copies)

Issues why changes did so long:
* insert in list is not adding in front, but same as push_back (that was confusing)
* naming of values before/after in interpolator was ambigious
* QMap keeps values sorted by key, not arbitrarily
2015-03-20 16:49:07 +01:00
Klaus Basan
f8bebf5ffa refs #386, performance issues
* keep split per callsign map in IInterpolator (so it is available for all interpolators)
* Interpolator using CWorker, so it can run in background
* added signals to provider to add split situations / callsigns
* adjustments to airspace / context for those signals
* thread safe access to those from interpolator
* renamed from rendered to remote aircraft as discussed
* adjust samples
* removed no longer required functions in timestampobjectlist
* changed connectioStatusChanged from uint -> int
2015-03-20 16:48:58 +01:00
Klaus Basan
c47871b813 refs #382, reviewed audio context handling
* only init QDbusServer for P2P
* changed init order of contexts in runtime
* use "fake" signal to call setComVoiceRooms (remote in GUI)
* added slot to change voice room callsign
* used "org.swift" instead of "net.vatim" (just style)
* used const QString for serviceName
* added correct copyright header (just style)
2015-03-20 16:33:51 +01:00
Klaus Basan
5146b7357d refs #369, adjusted simulator drivers to changed interpolator and
removed addAircraftSituation
2015-03-20 16:32:15 +01:00
Klaus Basan
8c3547c33d refs #369, adjusted simulator drivers
* common base class BlackCore::CSimulatorCommon
* using providers IOwnAircraftProvider, IRenderedAircraftProvider
* using revers lookup in mapping
* using CSimulatedAircraft / CSimulatedAircraftList
* return values (success/failed) for member functions (e.g. setTimeSynchronization)
* getMaxRenderedAircraft / setMaxRenderedAircraft prepared
2015-03-20 16:31:33 +01:00
Klaus Basan
fe4613a868 refs #369, adjusted contexts to use own aircraft provider
* removed unused functions / signals
* removed no longer used members / update timers
* Pass provider to contructors
* no direct access to monitor in other contexts
2015-03-20 16:30:40 +01:00
Klaus Basan
3a4e5ef556 refs #364, refs #368 improved handling of manually set models
* make sure manually set model is not subject of model matching
* added convenience member functions to detect manually set models
2015-01-25 03:55:45 +01:00
Klaus Basan
b12352047b refs #364, refs #368 drivers:
* changed to CSimulatedAircraft / Simulation::CAircraftModel
* added new functions such as icons for model
2015-01-24 01:15:16 +01:00
Klaus Basan
23e9159dfd refs #358, added (a first very simple) model matching to FSX driver
* isRunning → isSimulating
* adjusted addRemoteAircraft signature (remark: CClient as parameter will be removed)
* renamed to "ownAircraft" when referring to own aircraft
* functions to access installed models/matched models
* model matching in CSimulatorFsx::addRemoteAircraft
2014-12-28 22:19:28 +01:00
Klaus Basan
366769a6b8 Formatting, doxygen, typo aircrafts (to aircraft),
removed some debug output, {} in if statements
2014-12-28 20:46:14 +01:00
Klaus Basan
a94bceddab refs #335, refs #342 improved simulator states
* new signal sending all 3 states together (connected, running, paused)
* renamed ISimulator::Status to ConnectionStatus
* consolidated some member / signal names
* for FS9/XPlane implemented stub functions
2014-11-30 00:54:07 +01:00
Klaus Basan
326ae96def Formatting, Doxygen 2014-11-30 00:54:04 +01:00
Mathew Sutcliffe
5991981789 refs #336 Removed the old getMessageCategory methods. 2014-10-16 17:06:21 +01:00
Mathew Sutcliffe
aef7135e28 refs #316 Removed old statusMessage signals and sendStatusMessage slots. 2014-10-04 22:16:56 +01:00
Mathew Sutcliffe
5d123f798a refs #316 Changed blackcore to use CLogMessage to emit messages.
Also changed functions which always returned CStatusMessageList containing a single CStatusMessage,
to return CStatusMessage instead for simplicity.
2014-10-04 22:16:43 +01:00
Mathew Sutcliffe
4aef58564e refs #283 Added ISimulator::getInstalledModels method, with stub implementations 2014-08-27 00:02:35 +01:00
Mathew Sutcliffe
f4b7a9c6a2 refs #283 Rationalized ISimulator slots for managing remote aircraft 2014-08-27 00:02:34 +01:00
Mathew Sutcliffe
d25eac66b1 refs #283 Dedicated displayTextMessage for text messages instead of using displayStatusMessage for both.
The simulator can use this to display text messages in a different colour, for example.
2014-08-27 00:02:32 +01:00
Mathew Sutcliffe
595261f755 refs #283 Doxygen 2014-08-27 00:02:30 +01:00
Klaus Basan
851bb70a68 refs #289, added methods for time sync in context, plugin
Remark: in the same step added methods for paused simulator
2014-07-11 01:21:04 +02:00
Klaus Basan
3729721fc3 refs #289, method bodys for time sync as preparation
simulator can send messages to contexts
2014-07-11 01:20:29 +02:00
Klaus Basan
76bc6f0efc Formatting, tweaks 2014-07-11 01:20:21 +02:00
Klaus Basan
bbdb8a293f refs #291, getAirportsInRange for simulator, simulator context 2014-07-11 01:20:05 +02:00
Mathew Sutcliffe
e7c14e2c1c moved enum metadata registration out of static methods of QObject-derived classes, which fixes #280 (GCC linker errors) 2014-06-23 01:19:42 +02:00
Klaus Basan
2ecef24c91 Register ENUMs in ISimulator like it is done in IVoice 2014-06-23 01:19:37 +02:00
Mathew Sutcliffe
a6cd44be8d refs #246 added ISimulator::aircraftModelChanged signal which can be sent via the contexts to CAirspaceMonitor, which needs the model when sending FSIPI(R) custom packets 2014-06-14 16:52:50 +01:00
Roland Winklmeier
01f6b9c156 Add method in ISimulator to get aircraft model
Route AircraftModel requests from Context Simulator to ISimulator

refs #235
2014-06-13 01:01:16 +02:00
Klaus Basan
58e97b6958 refs #242, refs #257 changes for extended simulator methods and renaming one method 2014-06-09 14:43:58 +02:00
Klaus Basan
035575870b refs #242, allows to change FSX cockpit from context
* Data definitions for FSX events
* BCD conversion for COM and transponder
* Update Cockpit method in context
* Renamed setOwnAircraft -> updateOwnAircraftFromSim
2014-06-09 14:43:35 +02:00
Klaus Basan
1bb4c3120b Formatting, comments, minor tweaks, typos, Doxygen 2014-06-09 14:43:31 +02:00
Roland Winklmeier
de75c5c35a Add asynchronous connection in ISimulator/CSimulatorFSX
refs #231
2014-05-16 14:17:42 +02:00
Roland Winklmeier
5498b449ac Add "ConnectionFailed" to Simulator status enum
Rename connectionChanged to statusChanged

refs #231
2014-05-16 14:17:41 +02:00