Commit Graph

485 Commits

Author SHA1 Message Date
Klaus Basan
92d53a4077 [FG] Do not send modelstring or a shorter livery string for FG
* FG does not support modelstrings for "flyable" planes
* remove unused setSimInfo functions, consolidated, cleanup
* simulator dependent "getSwiftLiveryString"
* encapsulated in getConfiguredLiveryString, getConfiguredModelString
* see https://discordapp.com/channels/539048679160676382/567091362030419981/698124094482415616
2020-06-12 18:42:45 +01:00
Klaus Basan
e13dcd7d7d Fix for graceful shutdown to avoid "nullptr" issue
see https://discordapp.com/channels/539048679160676382/539925070550794240/694331123643187232
2020-06-12 18:42:42 +01:00
Klaus Basan
2cb10c1835 Minor fix to avoid issues 2020-06-12 18:42:42 +01:00
Klaus Basan
dab907df8c Graceful shutdown of SELCAL player with audio context 2020-06-12 18:42:41 +01:00
Klaus Basan
7d4e897b88 [AFV] Displayed sync. (integrated with COM unit) flag in cockpit 2020-06-12 18:42:40 +01:00
Klaus Basan
f8d59e7b04 [Worker] Use "m_validator->quitAndWait()" as validator now can "stop" long lasting functions 2020-06-12 18:42:40 +01:00
Klaus Basan
7f4a68eb45 [WASAPI] another WASAPI fix trial
* disabled the initWindowsAudioDevices call as it seems to be pointless
* changed the order in CContextAudioBase::initVoiceClient
* init CAudioDeviceInfoList::allDevices BEFORE CAfvClient

see https://discordapp.com/channels/539048679160676382/539925070550794240/687769623827185671
2020-06-12 18:42:37 +01:00
Klaus Basan
2999aebf37 Ref T773, allow to update CG per model string
* needed if CG is overridden by "dot command"
* update all existing aircraft (in range) if changing CG per modelstring
* made "overriddenCGorDefault" public so it can be checked if overridden
* use overridden value in CContextSimulator::xCtxAddedRemoteAircraftReadyForModelMatching
* allow to clear overridden values
2020-06-12 18:42:36 +01:00
Klaus Basan
ec92b6dc46 Ref T773, use closest positions for average height/elevation values
Testing with XPlane:

* even in EDDF the field elevations vary from 353-368ft, which means a difference of 15ft or 4m
* that means it is important to use the closest values
2020-06-12 18:42:36 +01:00
Klaus Basan
33b1e26460 Ref T773, cache ground elevations for "on ground" planes separately
Rational:

* Those values represent taxiways and runways
* we cache those longer and keep more

It is much more likely we need/can use these values
2020-06-12 18:42:33 +01:00
Klaus Basan
33b3cd5461 Ref T773, elevation handling style and minor improvements 2020-06-12 18:42:32 +01:00
Klaus Basan
4d5e3ee0ae Init context devices deferred as the settings are ONLY available after DBus is initialized
* we init in a context constructor
* a this time it is not clear:
** if we will use a DBus scenario
** or standalone scenario
2020-01-22 19:46:14 +01:00
Klaus Basan
5542fcd7d3 Unified how settings are read in audio context 2020-01-18 02:46:56 +01:00
Klaus Basan
f8e8318902 Log.category for FSD and minor style changes 2020-01-07 19:57:27 +00:00
Klaus Basan
30036b6b82 Dot command "help" 2020-01-07 19:57:24 +00:00
Klaus Basan
b9ea40e8d1 [FSD] wallop message sending incomplete fixed 2020-01-07 19:57:22 +00:00
Klaus Basan
64b17b787c Ref T761, relay original sender AND recipient
* display sent messages of partner callsing as send by myself
* allow PMs from partner as normal PMs
2020-01-07 19:57:21 +00:00
Klaus Basan
a54f804cf1 Ref T761, display partner callsign in adv.login screen
* added context functions
* UI readonly fields
2020-01-07 19:57:21 +00:00
Klaus Basan
4e2a47fc41 Ref T761, use "preset" callsign if available
Avoids issue with partner callsign
2020-01-07 19:57:20 +00:00
Klaus Basan
f07ca09424 Ref T761, partner callsign message relay (swift with co-pilot)
* handle server error messages correctly as "error"
* (relayed) sender can be ATC or aircraft
* relay private messages correctly
2020-01-07 19:57:20 +00:00
Klaus Basan
34f9fb89d6 [FSD] Start FSD client in own thread (CContinuousWorker) 2020-01-07 19:57:20 +00:00
Klaus Basan
928a76a042 Minor tweaks for METAR info 2020-01-07 19:57:20 +00:00
Klaus Basan
efee7968dc [AFV] Using the aliased frequencies can be enabled/disabled
* flag
* "dot command"
* register audio "dot commands" for audio
2020-01-07 19:57:20 +00:00
Klaus Basan
f6f719a67e [FSD] "dot" command to restrict max. range for FSD positions
Allows to limit the range in which we handle FSD positions
(This also means FSD planes range)
2020-01-07 19:57:19 +00:00
Klaus Basan
59c6a7ad93 [FSD] Avoid that all matchings are triggered "at the same time"
* the signal from CAirspaceMonitor is connected internally
* this signal is closely related to receive the FSD ICAO data
* and then it is emitted from the context again but staggered
2020-01-07 19:57:19 +00:00
Klaus Basan
441ca41ee3 [FS9] Log. messages 2020-01-07 19:46:18 +00:00
Klaus Basan
d8ec308a3b [DBus] DBus related fixes
* use INT in CAudioDeviceInfo (minimum trouble)
* register metatype
* removed getSimulatorStatusEnum from DBus slots
2020-01-07 19:46:17 +00:00
Klaus Basan
0a1835f1a5 [AFV] Ref T739, register used AFV callsigns
For core/GUI we need to register with 2 different callsigns
2020-01-07 19:46:17 +00:00
Klaus Basan
53de0d56b9 Style 2020-01-07 19:46:17 +00:00
Klaus Basan
87f078a698 [AFV] Ref T731, Ref T739 register devices so we can also obtain remote devices 2020-01-07 19:46:15 +00:00
Klaus Basan
8a89b8f261 [AFV] Ref T739, context function to unregister per identifier 2020-01-07 19:46:15 +00:00
Klaus Basan
209c00b430 Style 2020-01-07 19:46:14 +00:00
Klaus Basan
275173c383 [Doxygen] workaround to silence audio context Doxygen error, no idea why this was wrong 2020-01-07 19:05:43 +00:00
Klaus Basan
a9a772c929 [AFV] Ref T739, audio context default device handling 2020-01-07 19:05:42 +00:00
Klaus Basan
5150fb4e86 [AFV] Ref T739, cmd.line args for "no audio" 2020-01-07 19:05:42 +00:00
Klaus Basan
0fa9bcb520 Doxygen, style 2020-01-07 19:05:42 +00:00
Klaus Basan
9447db00bc [AFV] Ref T739, audio can now be disabled from UI 2020-01-07 19:05:41 +00:00
Klaus Basan
767b999330 [AFV] Ref T739, start/stop audio improvements
* signals
* "restart" without devices
2020-01-07 19:05:40 +00:00
Klaus Basan
5032e7fbd5 [AFV] Ref T739, fix for tuned in/out sounds
see https://discordapp.com/channels/539048679160676382/568904623151382546/636639367804485643
2019-10-24 02:34:40 +02:00
Klaus Basan
cde18d23aa [AFV] Style, Doxygen 2019-10-24 01:22:56 +02:00
Klaus Basan
6e42889ecb [AFV], Ref T730 only use AFV with VATSIM ecosystem 2019-10-23 00:38:26 +02:00
Klaus Basan
a63fe0dc21 [AFV] Ref T739, unified callsign functions in CAfvClient
* improved CallsignSet from QStringList
* renamed the functions which just return a string
* added functions for CCallsignSet
2019-10-23 00:38:26 +02:00
Klaus Basan
164e9a3306 [AFV] Ref T730, fixed some FSD client issues
* socket error signal (can be used for further actions)
* socket error logs as CLogMessage::error
* handle socket errors in own function, disconnect for severe error
* send homebase at login
2019-10-23 00:38:26 +02:00
Klaus Basan
7428cb0819 [AFV], Ref T730 play audio "tuned in"/"out"
Replaces the former voice room connected sounds
2019-10-23 00:38:26 +02:00
Klaus Basan
be99911372 Style, minor adjustments 2019-10-23 00:38:26 +02:00
Klaus Basan
afe72b029f Doxygen/style 2019-10-23 00:38:24 +02:00
Klaus Basan
aaa5fc259a Doxygen 2019-10-18 12:10:55 +02:00
Klaus Basan
35cdaf09bf Style 2019-10-18 10:36:25 +02:00
Klaus Basan
2dbe8464f4 [AFV] Ref T739, CoInitializeEx main thread of CAfvClient 2019-10-18 10:36:24 +02:00
Roland Rossgotterer
2362e25593 [AFV] Add client version to API auth 2019-10-18 10:36:24 +02:00