Commit Graph

140 Commits

Author SHA1 Message Date
Klaus Basan
10f942e702 Formatting, minor tweaks 2018-02-09 04:43:45 +01:00
Klaus Basan
bb65b7c280 Ref T226, renamed to swiftDbAllDataRead 2018-02-02 21:26:52 +01:00
Klaus Basan
bdda413386 Ref T231, Ref T236, Ref T238 made command parsing function mandatory for contexts
* we can send commands to any context
* to send to all contexts use the facade
* application relays to facade
2018-01-30 20:34:55 +01:00
Klaus Basan
301eb79eca Renamings and adjustments of developer flag 2018-01-30 20:34:50 +01:00
Klaus Basan
5829917694 Ref T89, signal when server (flight network) connects
* server contains the ecosystem
* connect server signal with web data services (so ecosystem is available)
2018-01-30 20:34:38 +01:00
Klaus Basan
81ea636bc0 Assert / formatting 2018-01-30 20:31:41 +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
a3bbb72185 Simplify (remove duplicate spaces) text messages 2018-01-30 20:30:46 +01:00
Klaus Basan
c1ee159ff9 Ref T232, some formatting
* made "private slots" -> "slots"
* cross context slots marked with "xCtx" prefix
2018-01-30 20:30:14 +01:00
Roland Winklmeier
704068d299 Add methods to receive and write raw FSD messages
This commit adds methods to register for live FSD message reception. The
amount of traffic can be quite high, therefore no normal signal is used -
which would be available via DBus. Instead one has to connect manually
by passing a functor. This guarantees that we communicate only in-process.
If someone tries to connect on the proxy side, the connection will fail.
This needs to be handled properly in client code.
This commit also adds a method to write the FSD message to a selected file.

Maniphest Tasks: T222
2018-01-26 12:40:36 +01:00
Roland Winklmeier
7edcc02f15 Return the plugin info of the emulated simulator rather than emulated itself 2018-01-22 14:07:02 +01:00
Klaus Basan
8bb47a555c Formatting comments and "private slots" -> "private" 2018-01-15 22:50:26 +01:00
Roland Winklmeier
de4fe44156 Fix sending the correct pressure altitude for a pilot position
* Before this commit, only the true altitude was known for an aircraft situation. The pressure altitude was not available anywhere yet.
* This caused a wrong altitude in radar clients.
* We fix this reading the pressure altitude from the simulators and set it in the own aircraft situation.
* MS Flight Simulators have the pressure altitude in the APIs available.
* For X-Plane and emulated simulator, we need to calculate it from the pressure at sea level.
* Finally, we use the new available pressure altitude to send it to the FSD server.

Maniphest Tasks: Ref T223
2018-01-15 22:49:08 +01:00
Klaus Basan
728b3c0473 Formatting 2018-01-14 18:46:21 +01:00
Klaus Basan
9f79923848 Ref T219, removed unused signal webServiceDataRead
Remark: Can be directly used from web data services
2018-01-14 18:46:19 +01:00
Klaus Basan
2c5a6c0a3a Ref T218, renamed some functions of CIdentifier 2018-01-14 18:45:48 +01:00
Klaus Basan
23f48a866d Display VATLIB version in "about swift" 2018-01-14 18:45:45 +01:00
Klaus Basan
26b5a6ce28 Found during T215, rectify CIdentifier issues
* null/anonymous identifier
* CIdentifier can be linked with QObject and
* CIdentifier reflects name changes of QObject (UI components change name after ctor call)
2018-01-13 05:04:27 +01:00
Roland Winklmeier
d68f678cc5 Upgrade to vatlib v0.9.7 2018-01-13 05:04:21 +01:00
Klaus Basan
0f8bbbbfc2 Ref T210, adjusting classes to use new functions 2017-12-21 19:49:52 +01:00
Klaus Basan
93909171b6 Ref T192, init for P2P via CDBusServer::coreServiceName(connection) 2017-12-21 19:47:03 +01:00
Klaus Basan
cc35619bbe Ref T192, onConnectionTerminated was never fired and hence removed 2017-12-21 19:46:57 +01:00
Klaus Basan
63fbeecc00 Ref T192, formatting and minor tweaks 2017-12-21 19:46:33 +01:00
Klaus Basan
1386fcd0db Ref T192, fqn for status enum 2017-12-21 19:46:29 +01:00
Klaus Basan
8103df18f7 Ref T195, formatting 2017-12-21 19:45:46 +01:00
Klaus Basan
31237b758e Ref T195, audio utility function 2017-12-21 19:45:41 +01:00
Klaus Basan
d01893a18a Ref T192, formatting 2017-12-21 19:45:32 +01:00
Klaus Basan
22c34f4e23 Ref T189, "private slot" -> "private" 2017-12-21 19:44:52 +01:00
Mathew Sutcliffe
c28d9702f4 Fixed failing test, that was caused by T180 formatting change.
DBus registered objects need fully qualified type names in method signatures.
2017-11-12 21:18:35 +00:00
Klaus Basan
89db83f3c7 Ref T182, use enum instead of int in ps_networkConnectionStatusChanged 2017-11-09 04:42:15 +01:00
Klaus Basan
822ef11c02 Ref T180, formatting 2017-11-09 04:42:11 +01:00
Klaus Basan
482023b2c0 Ref T180, dot commands to set rendering setup
* enable parts/debug messages via dot command
* allow to log to console via application context
2017-11-06 22:20:59 +01:00
Klaus Basan
62b859347b Ref T180, minor message change 2017-11-05 20:02:35 +01:00
Klaus Basan
93a29b2b11 Ref T180, formatting 2017-11-05 20:02:06 +01:00
Klaus Basan
ecc4789855 Ref T171, Ref T136, renaming "swift driver" -> "emulated driver" 2017-10-18 22:58:37 +02:00
Klaus Basan
bc5f431953 Ref T171, simulator context formatting 2017-10-18 22:58:29 +02:00
Klaus Basan
c882c64824 Ref T171, count of aircraft supporting parts
* added functions in providers, aware class
* some utility functions in aircraft list
2017-10-18 22:58:27 +02:00
Klaus Basan
b1795c77d8 Ref T129, formatting, removed namespace from signatures when "using namespace" 2017-10-10 00:27:41 +01:00
Klaus Basan
27ebf3e43d Ref T168, relay kicked message thru context to UI
* new signal in context, connected with VATLIB
* display in UI
2017-10-10 00:27:23 +01:00
Klaus Basan
7a87f986e2 Ref T167, renaming LocalInDBusServer and verifyModelSet 2017-10-10 00:27:17 +01:00
Klaus Basan
9748b5a442 Formatting, comments, Doxygen, minor tweaks 2017-10-10 00:27:03 +01:00
Mathew Sutcliffe
efe5419e9a Refs T159 Context method to get unsaved settings keys with their human readable descriptions. 2017-09-24 20:29:30 +01:00
Mathew Sutcliffe
91f6652072 DBus registered objects need fully-qualified type names in method declarations. 2017-09-24 20:29:29 +01:00
Klaus Basan
0117558ea7 Formatting 2017-09-24 19:52:04 +01:00
Klaus Basan
71fa0fc7b8 Ref T111, handle SELCAL in simulator context (fix, was missing so far) 2017-09-24 19:51:59 +01:00
Klaus Basan
1387573e5b Ref T112, moved simulator settings in subdir/settings namespace 2017-09-24 19:51:46 +01:00
Klaus Basan
c066ffcd28 Ref T111, emit signal simulatorPluginChanged after function completes 2017-09-24 19:51:24 +01:00
Klaus Basan
52805965cd Ref T111, swift driver plugin 2017-09-24 19:51:16 +01:00
Klaus Basan
654c35f666 Ref T111, use Q_DECLARE_FLAGS SimulatorStatus instead of int
* changed emitSimulatorCombinedStatu
* changed connected slots/functions
2017-09-24 19:51:10 +01:00
Klaus Basan
b423a62626 Ref T111, access to own aircraft`s situation 2017-09-24 19:51:06 +01:00