Commit Graph

165 Commits

Author SHA1 Message Date
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
Lars Toenning
748bfcdc15 refactor: Clean up ISimulator 2024-03-21 22:48:29 +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
33209fa1eb Use std::as_const (C++17 feature) 2021-07-13 17:56:31 +01:00
Mat Sutcliffe
63e8de8f00 Issue #77 getLogCategories returns a simple QStringList instead of our own class 2020-12-19 18:50:34 +00:00
Mat Sutcliffe
802576eda9 Issue #77 Rename 2020-08-29 14:16:11 +01:00
Klaus Basan
3099464668 Message texts 2020-06-12 18:42:56 +01:00
Klaus Basan
fccaf1fae1 Fixing some bugs in simulator, use CCrashHandler::instance()->crashAndLogAppendInfo IF NOT shutting down 2020-06-12 18:42:54 +01:00
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
17cebfb8d3 Ref T786, further checks (shutdown, empty values) 2020-06-12 18:42:51 +01:00
Klaus Basan
70766beea8 Ref T786, make sure to request weather if scenario/settings have changed and/or weather was activated 2020-06-12 18:42:50 +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
Klaus Basan
148368ca0c Some fixes for interpolation setups
* added missing signal
* refresh list on reload button press
* display pitch value
* list ctor for single object
2020-06-12 18:42:48 +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
cc887ea0f8 Ref T778, also update sim.data if elevation did change
Use ISimulator::isEqualLastSent in equalPbhVectorAltitudeElevation
2020-06-12 18:42:43 +01:00
Klaus Basan
46d417c5a2 Ref T778, style and comments, debug hints 2020-06-12 18:42:43 +01:00
Klaus Basan
829777bf3a Ref T778, added "likelyOnGroundElevation" as parameter for "ememberElevationAndSimulatorCG" 2020-06-12 18:42:43 +01:00
Klaus Basan
373e45e958 Ref T778, some smaller style fixes/improvements
for the "underground" airplanes as reported by AK

This does NOT fix the issue, but minor shortcomings
found during the investigation

* style
* checks for "developer" env.
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
53d08384da Ref T773, use complete string as modelstring for "cg" dot command
Example: "B773 B773_RR SDM"
2020-06-12 18:42:36 +01:00
Klaus Basan
a5f4705bb1 Ref T773, style (simulator) 2020-06-12 18:42:35 +01:00
Klaus Basan
fe1e976093 Ref T773, style 2020-06-12 18:42:34 +01:00
Klaus Basan
f2096bd826 Ref T773, style 2020-06-12 18:42:34 +01:00
Klaus Basan
4120a2c77d Ref T773, use "on ground" cached elevations for situations in simulator and airspace monitor 2020-06-12 18:42:33 +01:00
Klaus Basan
70e08fdf8b Ref T773, allow to clear/write log. from interpolation UI via buttons 2020-06-12 18:42:33 +01:00
Klaus Basan
287d96afea Ref T773, added "hasMeanSeaLevelValue" and consistently use it 2020-06-12 18:42:32 +01:00
Klaus Basan
a629b70724 Ref T773, clear log when written, set object name for logger 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
Klaus Basan
812619470b Ref T773, style and comments 2020-06-12 18:42:28 +01:00
Klaus Basan
481833b003 BLACK_AUDIT_X for killTimer, trace Qt killTimer warnings in "our" code 2020-06-12 18:42:24 +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
4bfa5d5f40 Fix assert due to NaN in CXSwiftBusTrafficProxy::getElevationAtPosition 2020-01-25 16:55:51 +00: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
11187870de Fixed missing compare index, message placeholder, and minor style fixes 2020-01-07 19:57:17 +00: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
902d18339a Improved manual changing of aircraft and reset
* deferred adding and reset
* HTML overlay messages
* debug code for DBus messages
2019-09-16 22:41:32 +01:00
Klaus Basan
009719a7be Ref T681, fixed handling of CG from DB
* consider settings
* remember DB CG data correctly
2019-09-16 22:41:28 +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
08d7cddfe5 Style 2019-09-16 22:40:40 +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
Klaus Basan
6cefb5175d Avoid issues if simulator is NOT yet set in emulateed driver 2019-09-16 22:39:54 +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
71e09b008f Ref T681, renamed to rememberElevationAndSimulatorCG and style 2019-09-16 22:38:08 +01:00