Commit Graph

104 Commits

Author SHA1 Message Date
Klaus Basan
c760f1d424 refs #445, encapsulated web service based reading in CWebDataReader
* the reader will be used in context, but can also be used standalone (ie mapping GUI) GUI
* adjustments in context/airspace as required
** for web reader
** livery
* base class for database based reading (via JSON/web)
* model data reader for models
2015-11-19 20:57:22 +00:00
Mathew Sutcliffe
6688a87ece refs #297, #50 Added network setting for FSD wire text codec. 2015-11-19 20:51:32 +00:00
Roland Winklmeier
7bc7b72c68 Dont assert on external data 2015-05-21 01:37:39 +02:00
Mathew Sutcliffe
b65232b202 MS & KB workshop: ICAO class renamings. 2015-05-12 22:47:54 +01:00
Mathew Sutcliffe
c136724cd0 MS & KB workshop: removed CAvionicsBase. 2015-05-12 22:47:52 +01:00
Klaus Basan
3c15f2ad89 refs #395, refs #411 fixes found in course of DBus testing
* set infobar status correctly when GUI connects after the core has been started
* more detailed information in information statusbar
* allow to obtain currently connected server in network context
* made many network vatlib slots normal member functions
* fixed rendered aircraft flag setting in FSX driver
2015-05-12 21:03:30 +01:00
Klaus Basan
3ecf37dda4 refs #395, changed own aircraft provider to thread safe member functions
(similar to remote aircraft provider)
* removed references
* made own aircraft context thread safe (reg. own aircrat data)
* removed the read only versions of the provider
* adjusted consuming methods
* renamed some functions ("ownAircraft...") to avoid ambiguity (with remote aircraft)
2015-05-12 20:46:48 +01:00
Klaus Basan
085edc82cb refs #395, post merge and rebase adjustments plus further testing fixes:
* adjusted iterim position updates
* removed deadlocks (thread safe values in airspace monitor)
* resolved some merge issues
* some smaller fixes in airspace monitor (style, finders)
2015-05-12 20:46:46 +01:00
Klaus Basan
7b1beaf02d Introduced hint for callsign to specify callsign type (aircraft? ATC?) by context.
Background: Pilots can login in with virtually any callsign like XXX_OBS, resulting in wrong interpretations (as OBS here is no ATC station).
2015-05-12 20:46:36 +01:00
Roland Winklmeier
f878b77f0b Don't assert on external data. 2015-04-23 22:06:35 +02:00
Roland Winklmeier
c77c0e484f refs #375 finish sending of interim positions
Airspace monitor knows all remote aircrafts and which have interim
positions enabled. It passes the list of receivers to INetwork
and INetwork sends it to FSD.
2015-04-23 22:06:32 +02:00
Roland Winklmeier
78bc9e8769 refs #375 Rename CNetworkVatlib::update to sendPositionUpdate 2015-04-23 22:06:29 +02:00
Roland Winklmeier
9079824ab9 refs #375 finished handling of interim packets
Interim packets are very close to normal position updates. It is
only missing transponder and speed information. On reception
of a interim packet, the information is added to a new
CAircraftSituation. The missing speed information is retrieved
from the last update.
2015-04-23 22:06:26 +02:00
Roland Winklmeier
b7b91d8d5b Set host application name for vatlib to "None".
The idea is if you are an addon and running inside the simulator process
you can put his name there. Since swift does (not yet) run as an addon,
set it to "None" instead.
2015-04-23 22:06:23 +02:00
Roland Winklmeier
e87556a753 Send default model string if model is empty
For a strange reason swift was sending its own name and
version instead.
2015-04-23 22:06:20 +02:00
Roland Winklmeier
952deb3922 vatlib API adaptions to v0.9.4 2015-04-23 22:06:17 +02:00
Roland Winklmeier
6ab2abcf1a refs #377 Refactor custom FSinn packet handling
The names were a bit misleading, hence this patch does rename
the methods to something more obvious. It also changes the behaviour
of CNetworkVatlib to automatically answer a custom FSinn query.
In both cases the important details are extracted and signaled to
airspace monitor.
The airspace monitor will send FSinn queries only if the exact model
is not yet known. This would be the case when another client had
sent a FSinn query already.
2015-04-23 21:23:18 +02:00
Klaus Basan
aafee8eafd refs #402, post merge feedback by MS 2015-04-11 02:09:10 +02:00
Klaus Basan
6634260970 refs #398, removed fix after RW has fixed it in vatlib 2015-04-08 23:04:36 +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
Michał Garapich
4d4acb20bc refs #366 cleanup
* Removed obsolete signal from IContextSimulator
* Removed connectToSimulator() method from IContextSimulator as it is no
longer relevant
* CSimulatorComponent updates automatically when simulator disconnects
* FS9 & FSX drivers update (including FSCommon)
2015-04-01 01:21:28 +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
Klaus Basan
f95504a2c8 refs #398, asserts for frequency
the line
if (frequencyKHz < 100000) { frequencyKHz += 100000; }
might be removed after the fix
2015-03-29 20:15:21 +02:00
Roland Winklmeier
afed33dbbf Adaptions to latest vatlib
The latest vatlib fixes some ambigious methods in the interface and
makes them more clear. Additional it adds a severity level to the
log handlers. Both causing the header to be source incompatible and
therefore need smaller changes in swift.
2015-03-20 17:11:35 +01:00
Klaus Basan
fb12c608b1 As a result of the RW/KB workshop.
Prepared functions for interim position updates
* isFastPositionSendingEnabled(), enableFastPositionSending(bool enable)
* setFastPositionEnabledCallsigns ,  getFastPositionEnabledCallsigns()
2015-03-20 17:11:06 +01:00
Klaus Basan
269c65b578 As of workshop RW/KB, improved / fixed text messages
Also refs #351
* messages can be formatted with style sheet
* fixed: removed command from message
* added originator to command line
* msg parsing now in core
* using ITimestampBased for text messages and status messages
* allow to resize rows to content (view base)
* model / views for text messages
* removed old qt stylesheets
2015-03-20 17:10:58 +01:00
Klaus Basan
3560508154 Set simulator info when connecting to network 2015-03-20 17:10:51 +01:00
Klaus Basan
eca8c5b637 Reflecting discussed changes for interpolation performance refs #386
(based on FSX testing)
* Only send changed situation to SIM
* Split sending of parts / situations
* Only send parts with a reduced frequency (means slower as positions)
* Mark geodetic height as null for default values (the value is usually unavailable)
* Fixed altitude to MSL for network data
* Trace which aircrafts support aircraft parts via network
* Renamed insert_fron push_front (as proposed by Roland)

Status quo / lessons learnt
* On slower PCs jitter is still noticed for interpolated aircraft.
* Running interpolation in an independent process (aka core, not in GUI) reduced load dependencies
  => it seems to make sense to run driver in own thread
* The onGround flag in parts seems clumsy as it required to retrieve parts for position updates
* In interpolation performance really matters
2015-03-20 17:00:41 +01:00
Klaus Basan
c55681fce5 refs #375, prepared flag to enable / disable sending interim positions 2015-03-20 16:34:29 +01:00
Roland Winklmeier
afea320a2e refs #321 Handle aircraft config client capability 2015-03-20 16:33:07 +01:00
Roland Winklmeier
466a9a24ef refs #321 Methods to read/write aircraft config packets from/to network 2015-03-20 16:31:56 +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
Roland Winklmeier
ea68170202 Add test client id and private key
Be aware this is just a test key pair. It will not work
on the live VATSIM network
2015-02-06 21:05:24 +01:00
Roland Winklmeier
526900d8b9 Fix VatAtcPosition not properly initialized 2015-02-06 21:02:42 +01:00
Klaus Basan
9910e9adb1 License 2015-01-24 01:16:58 +01:00
Roland Winklmeier
cb7ad005b0 refs #320 port Network to new vatlib
* CNetworkVatlib
* Contexts
* Samples
2014-12-27 11:08:32 +01:00
Mathew Sutcliffe
a294e8db0f refs #336 Using the new CLogMessage syntax to log messages. 2014-10-16 17:05:50 +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
2e23f2fd8d refs #246 refactored FSIPI(R) custom packet encode/decode into INetwork 2014-06-14 16:52:50 +01:00
Mathew Sutcliffe
ef1c5d0d77 refs #246 style: rename package to packet 2014-06-14 16:52:41 +01:00
Klaus Basan
63b0fac72f Some bugfixes
* Missing registration
* wrong frequency in text messages, also some minor tweaks in text message
2014-06-09 14:44:23 +02:00
Klaus Basan
dac556c6e9 refs #262, fix update of aircraft position
Described here (3): https://dev.vatsim-germany.org/boards/22/topics/1792?r=1801#message-1801

* Also renamed: setOwnAircraftAvionics -> setOwnCockpit to be consistent
* Removed outdated methods
2014-06-09 14:44:19 +02:00
Klaus Basan
226edda23b refs #219, load flight plan
* fixed issue with parsing, only default locale is used. Now user's local possible
* allow to load FP for other callsigns as well (voice capabilities)
* Improved handling of CTime, inclusive bug fixes and time formatting
* Max. lengths for FP fields as const value (so we can change it if required)
* Load FP from GUI component
* Samples for PQ classes
* Adjusted depending classes (e.g. client)
2014-06-09 14:43:57 +02:00
Mathew Sutcliffe
356f134ab8 refs #218 enable retreiving user's flightplan from the network
after it was potentially amended by a controller
2014-05-16 13:44:24 +01:00
Mathew Sutcliffe
2effc2873f fixed truncation of flightplan remarks string 2014-05-16 13:44:23 +01:00
Klaus Basan
57b3a0bcb8 refs #171, added support for custom packages 2014-05-06 21:47:25 +02:00
Klaus Basan
61affc3d88 Added sendUserInfoQuery for experimental reasons. Can only be used by supervisors, but interesting for some tests.
Maybe removed again later, but does not harm anything.
2014-05-06 21:47:22 +02:00
Klaus Basan
580ec3d8c8 Formatting, comments, typos, or minor tweaks
* Aircraft ICAO class: hasXX methods (hasAircraftCombinedType(), ..)
* Index Variant map, contains(index)
* Deleted context_network_textmessages.cpp and moved it into impl.cpp (this was only 1 method)
* Fixed bug refs#228
2014-05-06 21:47:10 +02:00
Klaus Basan
36dbcc6b57 refs #217, Project class providing information for compile configuration
* changed .pro / .pri as required
* Used info from project class in network_vatlib
* Checks / info in GUI/core (e.g. console)
* const * versions of systemNameAndVersion / simulators, as mentioned in https://dev.vatsim-germany.org/issues/217#note-4
2014-04-29 01:53:09 +02:00
Klaus Basan
82baf72721 refs #216, adjusted vatlib for ICAO class 2014-04-28 20:35:47 +02:00