Commit Graph

110 Commits

Author SHA1 Message Date
Lars Toenning
18d0b1eefc refactor(fs): Move FSUIPC from fscommon to FS9
With default settings, FSUIPC was not really used
by FS simulators (except FS9) as the transponder
mode readout was done with SB offsets through SimConnect.
For simplification, this removes FSUIPC from fscommon and moves it to FS9.
Therefor this also removes the option for FSX/P3D users to toggle FSUIPC.
2024-04-16 21:23:08 +02:00
Lars Toenning
eaca06711b refactor(fs9): Remove unused code 2024-04-16 21:23:07 +02:00
tzobler
9f63157642 fix(fs9): Remove COM sync between sim and swift
Fixes #278

Co-authored-by: Lars Toenning <dev@ltoenning.de>
2024-04-16 21:23:04 +02:00
Lars Toenning
6cf9dfaecf refactor: Remove aircraft highlighting/blinking functionality
This functionality was not documented. Further, this feature likely does
not work great in all simulators because adding and removing aircrafts
might take longer than a second.
2024-03-21 22:48:29 +01:00
oktal3700
2f3dc5a4a1 Don't let FS9 overwrite an 8.33 kHz frequency 2023-11-12 21:36:27 +01:00
Lars Toenning
bcc4bdd31e Add SPDX identifiers for REUSE compliance
Co-authored-by: Mat Sutcliffe <oktal3700@gmail.com>
2023-10-03 09:29:49 +02:00
Lars Toenning
970b7c3650 clang-format src 2023-04-18 16:07:19 +02:00
Mat Sutcliffe
57d32da826 Use nested namespaces (C++17 feature) 2021-09-18 15:07:48 +01:00
Mat Sutcliffe
802576eda9 Issue #77 Rename 2020-08-29 14:16:11 +01:00
Klaus Basan
083742b4ca [FS9] Minor style fixes 2020-06-12 18:42:56 +01:00
Klaus Basan
53b22f62a9 [CPP check] Fixed minor FS9 CPP check issue (+ small style adjustment) 2020-06-12 18:42:54 +01:00
Roland Rossgotterer
2c3c9a123a [FS9] Finalize aircraft parts animations
This change implements very basic parts animation including
- Gear up & down
- Flaps up & down
- Engine on & off
2020-06-12 18:42:54 +01:00
Klaus Basan
41f28ea858 [FS9] Fixes
* guards like "if (!m_fs9Host.data()) return"
* bogus function "sendMultiplayerParts" (at least ot have it in place)
* fixed "testSendSituationAndParts"
2020-06-12 18:42:51 +01:00
Klaus Basan
17cebfb8d3 Ref T786, further checks (shutdown, empty values) 2020-06-12 18:42:51 +01:00
Klaus Basan
026e19add0 Ref T786, use identifier based requestWeatherGrid in simulator plugins 2020-06-12 18:42:50 +01:00
Klaus Basan
fbf63457c1 Ref T786, make sure injectWeather is called in the correct thread 2020-06-12 18:42:49 +01:00
Klaus Basan
933fb2d758 [FS9], timer guard "myself" 2020-06-12 18:42:46 +01:00
Klaus Basan
90e77ac9f1 [FS9] Weather grid checks 2020-06-12 18:42:45 +01:00
Klaus Basan
a0b8fbd158 [FS9] Style 2020-06-12 18:42:45 +01:00
Roland Rossgotterer
f60a44ea1e [FS9] Fix double deletion of CFs9Host
CFs9Host was guarded by a QSharedPointer plus it had a QObject parent.
2020-06-12 18:42:29 +01:00
Klaus Basan
6b6a6e0d8e [emulated driver] minor fixes
* dialog size
* update sim.value UI fields if emulated simulator changes
* renamed function
2020-06-12 18:42:25 +01:00
Roland Rossgotterer
d29dec81d7 [FS9] Test connection via FSUIPC in listener
Checking whether the FS2004 host is connected is not enough since we rely
on FSUIPC. Do not activate the simulator if FSUIPC is not available (e.g.
not installed).
2020-01-07 19:57:23 +00:00
Roland Rossgotterer
b7c2775ea2 [FS9] Let IDirectPlay8Client::Connect process request asynchronously 2020-01-07 19:57:23 +00:00
Klaus Basan
22d8b52fe8 [FS9] Minor style fixes 2020-01-07 19:57:20 +00:00
Klaus Basan
441ca41ee3 [FS9] Log. messages 2020-01-07 19:46:18 +00:00
Roland Rossgotterer
5efa52cba6 Update aircraft parts in FS9 plugin 2019-10-18 10:36:24 +02:00
Roland Rossgotterer
84248fc1b0 Fix double deletion of CLobbyClient during shutdown 2019-10-18 10:36:24 +02:00
Klaus Basan
b408c8ffed Style 2019-09-16 22:41:38 +01:00
Klaus Basan
f80e093a0a Ref T717, function to send parts/situation for testing and in the model browser 2019-09-16 22:41:37 +01:00
Klaus Basan
25532497d6 Fixed FS9/FSX message handling as reported here: https://discordapp.com/channels/539048679160676382/567139633964646411/612104936574156870 2019-09-16 22:41:22 +01:00
Klaus Basan
26afc5160d Improved logging of "adding aircraft" so we can see details such as the model string 2019-09-16 22:41:17 +01:00
Klaus Basan
718221b90e Ref T683, moved m_skipCockpitUpdateCycles to FS common so it can be used with P3D/FSX and FS9 2019-09-16 22:39:51 +01:00
Klaus Basan
fa6101d02b Ref T683, use slow updates in FS9 for thins not to be updated every cycle 2019-09-16 22:39:51 +01:00
Klaus Basan
0360704b0b Ref T683, "updateOwnSituationAndGroundElevation"
* function to use own positions "on ground" to calculate ground elevation
* use this based on settings
* adjusted simulators code
2019-09-16 22:39:50 +01:00
Klaus Basan
daeea07090 Ref T683, style 2019-09-16 22:39:49 +01:00
Klaus Basan
a86e98ca3a Ref T669, also interpolation Ref T668, remove last sent values if aircraft is removed 2019-09-16 20:29:35 +01:00
Roland Rossgotterer
3e6b7b07f4 [FS9] Shutdown driver if connection to FSUIPC is lost 2019-04-11 22:12:07 +01:00
Roland Rossgotterer
6a5e59b76a [FS9] Implement time synchronisation 2019-04-11 22:11:51 +01:00
Roland Rossgotterer
e0fe7ab1d0 [FS9] Ignore DirectPlay position updates
Those position updates to not contain pressure altitude.
2019-04-11 22:11:51 +01:00
Roland Rossgotterer
b0fd4e03b2 Implement CSimulatorFs9::updateOwnSimulatorCockpit 2019-04-11 22:11:49 +01:00
Klaus Basan
0e916864cb Ref T546, disable provider for FS9 2019-04-11 22:11:31 +01:00
Klaus Basan
bfc7ac97c0 Ref T546, style 2019-04-11 22:11:31 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Roland Rossgotterer
d6d2c0cc80 [FS9] Stop using Fs9Host and Fs9Client as CContinuousWorkers
Both were continuous workers since a blocking IDirectPlay8Peer::SendTo()
method was used. Since we use the default async method now, we don't need
the threaded implementation any longer. It still could happen that GUI
blocks for too long, but that would happen also for other simulator drivers.

ref T433
2019-02-22 20:36:21 +00:00
Roland Rossgotterer
fa08c6bf15 [FS9] Enable FSUIPC by default for FS9 2019-02-22 20:36:21 +00:00
Mat Sutcliffe
225ff81252 Ref T485 Adjust CLogMessage and CStatusMessage call sites to use the new API. 2019-02-22 20:34:55 +00:00
Klaus Basan
d6fad99474 Ref T437, renamed CFsuipc functions to align with FSUIPC code 2018-11-22 19:55:04 +01:00
Klaus Basan
034525316e Ref T437, fixed missing update of "m_simTransponder" which caused SB area changes to be ignored
* also added SELCAL hints
* sync m_simTransponder
2018-11-22 19:55:04 +01:00
Klaus Basan
2b8e388ba1 Ref T423, force update if simulator was paused or interrupted before
* force full updates for some cycles "m_updateAllRemoteAircraftCycles"
* only use "emitSimulatorCombinedStatus" to emit changed simulator status
* renamed to "finishUpdateRemoteAircraftAndSetStatistics"
* override "forced" in "getInterpolationSetupConsolidated"

This addresses the issue that aircraft appear below ground after moving the aircraft
2018-11-06 01:41:47 +01:00
Klaus Basan
93bcbc0755 Ref T421, function to get interpolation messages from the simulator drivers 2018-11-04 17:42:47 +01:00