Commit Graph

1033 Commits

Author SHA1 Message Date
Klaus Basan
bddbc1a690 Ref T683, use slow updates in FS9 for thins not to be updated every cycle 2019-06-13 17:37:28 +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
85eae8c8cb Ref T683, move "m_ownAircraftUpdateCycles" one level up so it can be used in FS9 2019-06-13 01:18:10 +02:00
Klaus Basan
43f3ac8a4e Ref T683, FSUIPC calculate CG 2019-06-13 01:18:09 +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
86431a46c7 Ref T681, preparations to use CG from DB
* renamed to "getSimulatorCG" ...
* pass simulator settings to sim.env.provider to decide what CG to use
* store DB CG and init it when aircraft is added
* style
2019-06-13 01:18:05 +02:00
Klaus Basan
b898846352 Emulated driver UI/situation form size 2019-06-09 01:02:46 +02:00
Klaus Basan
b07488c732 fixup! Avoid ASSERT from emulated driver 2019-05-26 00:23:45 +02:00
Klaus Basan
f33ffc32be Avoid ASSERT from emulated driver
* not all plugins are installed
* use default simulator if there is no simulator info
2019-05-25 23:14:33 +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
8409ac19d6 Added P3D v4.5 SimConnect 2019-05-25 03:35:48 +02:00
Klaus Basan
a1af715868 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-25 03:35:38 +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
8e22bc0ced FlightGear, applied agreed style 2019-05-23 13:13:00 +02:00
Roland Rossgotterer
8943db5b2b Revert "[xSwiftBus] Automatically find and load CSL packages"
This reverts commit 61adfefa7a.
2019-05-15 17:19:56 +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
Roland Rossgotterer
61adfefa7a [xSwiftBus] Automatically find and load CSL packages
ref T657
2019-05-13 11:21:05 +02:00
Roland Rossgotterer
99bcee87aa [FS9] Properly set onground flag when converting situation to FS9 2019-05-13 11:21:04 +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
0cefe1d1e4 Ref T650, simulator setting UI of SimulatedObject can be used 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
4522cb5fe5 Ref T650, SimObject can handle SimulatedObject type (compared to NonATC) 2019-05-13 11:20:55 +02:00
Klaus Basan
6d936dc1cc Ref T650, added FSX SimConnect symbols (funtion names) 2019-05-13 11:20:55 +02:00
Klaus Basan
af0b6a925d Typo 2019-05-13 11:20:54 +02:00
Lars Toenning
e42a205f5e Ref T632, porting fix to FG driver 2019-05-13 11:20:50 +02:00
Lars Toenning
d61814f8e9 FG: Add version number check 2019-05-13 11:20:50 +02:00
Lars Toenning
a34b222c3e Adjusting var names to used units 2019-05-13 11:20:49 +02:00
Lars Toenning
6eeba19f37 Ref T646 Directly getting pressure altitude from FG 2019-05-13 11:20:49 +02:00
Klaus Basan
c56775e815 Ref T637, allow 3 letter ICAOs in FP
* strict or lenient airport check
* allow to enter 3 letter ICAO codes in FP
2019-05-13 11:20:48 +02:00
Roland Rossgotterer
d21e9e60e8 Don't stop connection to xswiftbus if versions do not match
Keep the version error to bring it to the users attenion and convince him
to upgrade. But let the connection proceed since the interface changes so
rarely.
This also adds version information for swift and xswiftbus sides.

Reviewers: #gatekeepers, msutcliffe

Subscribers: msutcliffe

Maniphest Tasks: T628

Differential Revision: https://dev.swift-project.org/D104
2019-05-13 11:20:47 +02:00
Klaus Basan
6a9de7389a Guards in emulated driver 2019-05-13 11:20:44 +02:00
Klaus Basan
2519241da8 Ref T632, remove invalid callsigns 2019-05-13 11:20:43 +02:00
Klaus Basan
94a5741537 Ref T632, verify empty callsign
THis is the fix:
"if (!simulatedAircraft.hasCallsign()) { continue; } // removed in provider"
2019-05-13 11:20:42 +02:00
Klaus Basan
52ef14b24d Simulated driver, update rendered aircraft 2019-05-13 11:20:41 +02:00
Klaus Basan
599064fe6c Use models from centralized model cache
* no copy needed
* cache is synchronized when loading models
2019-05-13 11:20:40 +02:00
Klaus Basan
a553dfc708 Ref T632, minor improvements for no callsign 2019-05-13 11:20:40 +02:00
Klaus Basan
9fd3925238 Style 2019-05-13 11:20:40 +02:00
Klaus Basan
927903ec53 XSwiftBus spelling 2019-05-13 11:20:39 +02:00
Klaus Basan
b093d02f49 Bring a modal window back to front when opening a dialog
Otherwise it can happen the modal window in background blocks the other UI.
2019-05-13 11:20:39 +02:00
Klaus Basan
9f8f70c22a Ref T609, set send/receive COM1/2 from P3D/FSK 2019-05-13 11:20:38 +02:00