Commit Graph

209 Commits

Author SHA1 Message Date
Klaus Basan
b1c0712f6f Fixed FS9/FSX message handling as reported here: https://discordapp.com/channels/539048679160676382/567139633964646411/612104936574156870 2019-08-17 21:01:11 +02:00
Klaus Basan
eb67310b04 Improved logging of "adding aircraft" so we can see details such as the model string 2019-08-14 00:25:31 +02:00
Klaus Basan
3d8bc7b8c7 Ref T609, renamed to Transmit/Receive for COM sync. 2019-08-11 23:15:58 +01:00
Klaus Basan
3dcdd7b2a6 Ref T554, changed signature to pass model (object) and not only modelstring
Allows to test if data have changed before "remembering them for auto publish"
2019-07-16 20:22:39 +02:00
Klaus Basan
c893e0fa2b Ref T683, moved m_skipCockpitUpdateCycles to FS common so it can be used with P3D/FSX and FS9 2019-06-13 17:37:29 +02:00
Klaus Basan
bf8de29762 Ref T683, "updateOwnSituationAndGroundElevation"
* function to use own positions "on ground" to calculate ground elevation
* use this based on settings
* adjusted simulators code
2019-06-13 17:37:28 +02:00
Klaus Basan
24e9ffb398 Ref T683, style 2019-06-13 01:18:09 +02:00
Klaus Basan
1a9ec78bb3 Ref T681, renamed to rememberElevationAndSimulatorCG and style 2019-06-13 01:18:07 +02:00
Klaus Basan
d6ac08c4ee Ref T650, using FSX SimulatedObject type decrease exeption counter when successfully added
* normally adding the SimObject fails first,
* then the workaround is used (but exception counter is 1)
* this means a 2nd time the object cannot be changed, as there is already a counter number > 0
2019-05-25 17:10:35 +02:00
Klaus Basan
0690750d16 No ASSERT when missing callsign/ids, VERIFY is enough 2019-05-25 03:35:49 +02:00
Klaus Basan
4cdbb1f831 Slow parts update and using event for flaps, as sim. variable sets the flaps, but then always retracts it.
https://swift-project.slack.com/archives/G96QTUBEG/p1558454646002200
2019-05-23 13:13:01 +02:00
Klaus Basan
69d33eae75 Renamed FSX data definition 2019-05-23 13:13:01 +02:00
Klaus Basan
03fce676be Ref T669, also interpolation Ref T668, remove last sent values if aircraft is removed 2019-05-23 13:13:00 +02:00
Klaus Basan
2e6d415c14 Allow to enable trace for P3D/FSX SB offsets 2019-05-13 11:21:09 +02:00
Klaus Basan
2c4133316a Minor FSX/P3D style changes 2019-05-13 11:21:07 +02:00
Klaus Basan
dd7930337a Better detect simExit on FSX, dispatch error just warning in that case 2019-05-13 11:21:03 +02:00
Klaus Basan
669402c7e0 Log simulator status for dispatch errors (FSX/P3D) 2019-05-13 11:21:02 +02:00
Klaus Basan
da2b3e05fd Minor interpolator improvements, display 2nd invalid version instead of first 2019-05-13 11:21:02 +02:00
Klaus Basan
7d025c6293 Ref T650, also remember SB offset setting 2019-05-13 11:21:01 +02:00
Klaus Basan
b9634f9927 Minor FSX driver updates 2019-05-13 11:21:00 +02:00
Klaus Basan
cbf5c1c445 Ref T650, save FSX/P3D specific settings 2019-05-13 11:20:56 +02:00
Klaus Basan
680c47074f Ref T650, driver class support for SimulatedObject type AI aircraft
* use SimulatedObject object if NON ATC type failed (for helicopters)
* SimObject can handle SimulatedObject type (compared to NonATC)
* Send ATC data to simulator
2019-05-13 11:20:56 +02:00
Klaus Basan
9f8f70c22a Ref T609, set send/receive COM1/2 from P3D/FSK 2019-05-13 11:20:38 +02:00
Klaus Basan
daf39a9835 Ref T554, FSX/P3D use "rememberElevationAndCG" for CG, so also auto publish info is written 2019-04-11 22:11:44 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Mat Sutcliffe
077fd8c35a Ref T525 Avoid directly calling getLogCategories. 2019-02-22 20:35:52 +00:00
Klaus Basan
6470c61d0a Ref T515, added failover flag for addingRemoteModelFailed
* adjusted signatures
* renamings and minor style adjustments
2019-02-22 20:35:41 +00:00
Mat Sutcliffe
5a17f43a5b Ref T488 Update cppcheck suppressions. 2019-02-22 20:34:56 +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
Mat Sutcliffe
d6b5dca6b2 Return a default-constructed QString instead of implicitly converting an empty string literal. 2019-02-22 20:23:49 +00:00
Mat Sutcliffe
6c05c5249d When calling arg() on a QString constructed from a literal, use QStringLiteral. 2019-02-22 20:23:47 +00:00
Mat Sutcliffe
ace7650ebe Ref T480 No need for QStringLiteral when concatenating with %, use UTF-16 string literals. 2019-02-22 20:23:46 +00:00
Mat Sutcliffe
462172a87f Fixed clazy warnings: unnecessary containers and containers being detached in range-for loops. 2019-02-22 20:23:37 +00:00
Klaus Basan
07eac1d46f Ref T436, used interpolated situation if possible for new FSX/P3D aircraft 2018-11-30 22:02:04 +01:00
Klaus Basan
d6fad99474 Ref T437, renamed CFsuipc functions to align with FSUIPC code 2018-11-22 19:55:04 +01:00
Klaus Basan
7f7cf2e031 Ref T436, underflow detection for FSX
* utility functions
* force gnd flag to avoid underflow
2018-11-22 19:55:04 +01:00
Klaus Basan
f6e04d4488 Ref T437, skip updates for FSUIPC and SB area for some cycles 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
7bd3d2793e Ref T437, FSX common improvements
* some SB area fixes like SIMCONNECT_CLIENT_DATA_SET_FLAG_DEFAULT
* use either SB area or FSUIPC
* also write XPDR via FSUIPC
2018-11-22 19:55:03 +01:00
Klaus Basan
10b242cec8 Ref T437, update cockpit from FSUIPC 2018-11-22 19:55:03 +01:00
Klaus Basan
22f17bec44 Ref T437, renamed SB4 to SB3 (as the extension was already available in SB3) 2018-11-22 19:55:02 +01:00
Klaus Basan
cb422d72cf Misc. style issues interpolation/model adding 2018-11-22 19:55:02 +01:00
Klaus Basan
b452cd7530 Ref T410, show number of SB4 packets received under simulator/information 2018-11-16 02:49:55 +01:00
Klaus Basan
b9e388ee97 Ref T429, style 2018-11-16 02:49:53 +01:00
Klaus Basan
64b0ec87b1 Ref T423, changed strategy to force position updates
* force update for "some time", and remove all sent information
* no longer update some cycles, but for some time
* updated FSX/P3D/XPlane drivers
2018-11-16 02:49:52 +01:00
Roland Winklmeier
f63008dd3f Load P3D 64 bit SimConnect shared library at runtime
This aligns the behavior and concept with the 32 bit FSX version. SimConnect
is loaded at runtime, depending on the version being selected.
It also adds a featuren to change the P3D SimConnect version at runtime by
unloading the previous and loading a new one.

ref T349
2018-11-16 02:49:51 +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
4d7ca00324 Ref T421, interpolation log message follow up, deprecated "clampedLog" 2018-11-05 01:39:51 +01:00
Klaus Basan
212460f676 Ref T410, simConnectProc / FsxCommon SB area
* count number of received data
* set network and SB running flag
2018-11-05 01:39:51 +01:00
Klaus Basan
e98a420d5d Improved FSX/P3D time sync 2018-11-05 01:39:51 +01:00