Commit Graph

220 Commits

Author SHA1 Message Date
Klaus Basan
9235f3232e Improvements during shutdown
* stop listeners
* check if airspace monitor and FSD still exist
* stop listeners on "aboutToShutdown()"
* check for processEventsFor(500)
2020-06-12 18:42:52 +01:00
Klaus Basan
58583d3ffa Ref T786, simulator context
* use identifier based "requestWeatherGrid"
* injectWeatherGrid now public
* clean m_lastWeatherPosition if weather is de-activated
* inject weather CContextSimulator::onWeatherGridReceived

1) this automatically injects the weather, the callback is not needed
2) the callback was the part which crashed
2020-06-12 18:42:50 +01:00
Mat Sutcliffe
22ebf6c5ea Ref T778 XSwiftBus traffic service prodives water/land flag for elevations 2020-06-12 18:42:44 +01:00
Klaus Basan
829777bf3a Ref T778, added "likelyOnGroundElevation" as parameter for "ememberElevationAndSimulatorCG" 2020-06-12 18:42:43 +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
60b556f118 Ref T773, allow to set test elevation (from log.display) 2020-06-12 18:42:31 +01:00
Klaus Basan
5f1bd14fcf Ref T773, style 2020-06-12 18:42:31 +01:00
Klaus Basan
b4a7d59b7b Ref T773, allow to "fake" elevations for testing purposes and improved elevation logging in the interpolation log. display
* history of requested elevations
* bogus elevations for testing if needed (mostly to test the display)
2020-06-12 18:42:28 +01:00
Mat Sutcliffe
e50bb6d5c7 [xplane] Add monitoring of the number of minutes behind due to low FPS 2020-06-12 18:42:23 +01:00
Mat Sutcliffe
377b2f6a3e [xplane] Add monitoring of the number of track miles lost due to low FPS 2020-06-12 18:42:23 +01:00
Mat Sutcliffe
35cfaebc7d [xplane] Added display of simulation time ratio in simulator component 2020-01-13 18:53:30 +00:00
Klaus Basan
72c3abb1e7 [xswiftbus] display FPS in simulator data window
* added driver getAverageFPS function
* display in simulator component
2020-01-07 19:57:28 +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
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
a3959ffbea Ref T717, unify test aircraft callsign 2019-09-16 22:41:37 +01:00
Klaus Basan
838e41051c Ref T717, simulator adjustments to support "TEST AIRCRAFT" 2019-09-16 22:41:35 +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
fab65c23b1 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-09-16 22:40:34 +01:00
Klaus Basan
7b03ed5aec Ref T554, signal if auto publish data are written 2019-09-16 22:40:07 +01:00
Klaus Basan
16e19ad6d3 Fixed typo, style 2019-09-16 22:40:07 +01:00
Mat Sutcliffe
f95df7455b Improved doxygen comments for CSimulatorInternals. 2019-09-16 22:40:07 +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
71e09b008f Ref T681, renamed to rememberElevationAndSimulatorCG and style 2019-09-16 22:38:08 +01:00
Klaus Basan
6d490e9a49 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-09-16 22:38:07 +01:00
Klaus Basan
d8729cea1e Ref T668, CG override per "dot" command 2019-05-23 13:00:26 +02:00
Klaus Basan
275006dad4 Ref T632, more detailled entry check for adding a remote aircraft (finds empty callsign) 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
9fd3925238 Style 2019-05-13 11:20:40 +02:00
Klaus Basan
6ca6d12851 Added "isWeatherActivated" based on the discussion with LT 2019-04-11 22:11:34 +01:00
Klaus Basan
961afa531b Ref T554, collect auto-publish data in simulator 2019-04-11 22:11:33 +01:00
Klaus Basan
35039b7482 Ref T554, style 2019-04-11 22:11:33 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +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
e32ea65a27 Fixed clazy warnings: fully-qualified signal parameter types. 2019-02-22 20:23:34 +00: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
b452cd7530 Ref T410, show number of SB4 packets received under simulator/information 2018-11-16 02:49:55 +01:00
Klaus Basan
3eb46690c0 Removed clamped messages 2018-11-16 02:49:55 +01:00
Klaus Basan
839c75effc Ref T429, style and CLANG warnings 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
Klaus Basan
dfd33e40c1 Detect emulated driver before casting to avoid crashs 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
93bcbc0755 Ref T421, function to get interpolation messages from the simulator drivers 2018-11-04 17:42:47 +01:00
Klaus Basan
a871579479 Ref T370, added public removeAllRemoteAircraft
* protected clearAllRemoteAircraftData
* ISimulator::clearAllRemoteAircraftData no longer calls clearAllRemoteAircraftData (circular)
2018-09-25 02:14:00 +02:00
Klaus Basan
da2a7f6506 Ref T348, get specialized settings
Related: Ref T317 Ref T247 Ref T335
2018-09-17 18:28:08 +02:00
Klaus Basan
409cc6c164 Ref T335, FSX/P3D improvements
- eceptions for an added object will be handled, retry once, then disable
- add/directly remove agains tried twice, then disabled
- disable aircraft in severe cases
- adjusted signal, indicate aircraft was enabled
2018-09-12 20:28:55 +02:00
Klaus Basan
7e9f3a6c7f Ref T342, distance of airport can be recalculated 2018-09-12 17:40:38 +02:00
Roland Winklmeier
3804612bed Fix the initial weather request in case last position is null
calculateGreatCircleDistance returns false immediately if any of the
arguments was null.

ref T324
2018-09-12 17:01:51 +02:00
Klaus Basan
55690846fe Ref T312, ignore not running listeners checking again via button 2018-09-08 15:36:25 +02:00
Klaus Basan
2c1055cc2e Ref T312, fixed thread safety of listeners start/stop/check 2018-08-27 18:58:23 +02:00