Klaus Basan
08ba4d8f65
Ref T709, review points
...
* overload "normalize"
* renamed to CSettingsProvider
2019-08-11 23:16:09 +01:00
Klaus Basan
4830bbc646
Ref T709, improved normalization and space pressed handling, unit test
2019-08-11 23:16:08 +01:00
Klaus Basan
9cb9556d87
Ref T715, use "night texture mode" in traffic class
2019-08-11 23:16:07 +01:00
Klaus Basan
2fc01bc568
Ref T709, style
2019-08-11 23:16:07 +01:00
Klaus Basan
3260209ca5
Ref T709, static "ownAircraftString" and improved logging
2019-08-11 23:16:06 +01:00
Klaus Basan
60ea80301e
Ref T709, further checks and voodoo as "follow aircraft still crashes
2019-08-11 23:16:06 +01:00
Klaus Basan
d090295471
Ref T709, check on screen w/h and report warning instead of info. Also log missing traffic object.
2019-08-11 23:15:56 +01:00
Klaus Basan
6be0586fbc
Ref T709, normalize degrees to +/i180degs
2019-08-11 23:15:56 +01:00
Klaus Basan
5e9be9e96e
Ref T709, return 0 if there is no camera position (nullptr)
2019-08-11 23:15:55 +01:00
Klaus Basan
917d9bb3e7
Ref T709, style
2019-08-11 23:15:55 +01:00
Klaus Basan
cd06c52cb7
Ref T709, only update settings if changed
2019-08-11 23:15:55 +01:00
Klaus Basan
761c45c547
Ref T709, further aircraft camera pos. checks and init zoom to 1.0
...
Attempts to avoid the follow aircraft crash
2019-08-11 23:15:54 +01:00
Klaus Basan
972cca9fed
Ref T709, update labels every n-th frame
2019-08-11 23:15:53 +01:00
Klaus Basan
034cd0c8f3
Ref T709, check position for "follow aircraft"
2019-08-11 23:15:53 +01:00
Klaus Basan
384b50ff80
Ref T709, changed to settings provider
...
* CPlugin is the provider
* it is "kept" in DBus object for traffic, service, weather
2019-08-11 23:15:52 +01:00
Klaus Basan
4f08fd1083
Ref T709, changed to "static" settings as it needs to be used in static functions such as "CTraffic::preferences"
2019-08-11 23:15:49 +01:00
Klaus Basan
a5cefcf18c
Ref T709, style
2019-08-11 23:15:47 +01:00
Klaus Basan
81577d29c5
Ref T709, style
2019-08-11 23:15:45 +01:00
Klaus Basan
44d8e043e0
Ref T709, added DBus signatures and use CSettings class in service class
...
* CSettings objects will be shared among all services (traffic, weather, service)
* It is "global" for plugin
2019-08-11 23:15:44 +01:00
Mat Sutcliffe
eaa24952d1
Ref T710 Propagate libxplanemp CSL load error messages as swift validation errors.
2019-07-29 23:36:58 +01:00
Roland Rossgotterer
8943db5b2b
Revert "[xSwiftBus] Automatically find and load CSL packages"
...
This reverts commit 61adfefa7a .
2019-05-15 17:19:56 +02:00
Roland Rossgotterer
aebf07511e
[XSwiftBus] Allocate big memory buffers on the heap instead of stack
2019-05-14 11:37:54 +02:00
Roland Rossgotterer
61adfefa7a
[xSwiftBus] Automatically find and load CSL packages
...
ref T657
2019-05-13 11:21:05 +02:00
Mat Sutcliffe
e9a4c49d68
Ref T547 Update license masthead in all source code files.
2019-02-22 20:36:43 +00:00
Mat Sutcliffe
acdbf9d43d
Ref T470 CTraffic::getRemoteAircraftData uses NaN to represent
...
an unknown vertical offset.
2019-02-22 20:23:30 +00:00
Roland Rossgotterer
901cf34bc8
Fix X-Plane follow aircraft
...
This commit fixes two bugs:
- The camera position was never initialized until space was pressed. The camera position was therefore random
- Instead of saving the camera position, we actually want to save the delta camera position.
ref T465
2018-12-11 17:42:49 +01:00
Roland Rossgotterer
49bd38d722
[XSwiftBus] Add hasMultiplayerPlanesAquired() DBus API
...
This function will return whether X-Plane multiplayer planes have been acquired by XSwiftBus or if not, who else acquired them.
2018-11-29 20:54:26 +01:00
Roland Rossgotterer
ec8245ea53
[XSwiftBus] Give PQ variables a unit
...
ref T313
2018-11-29 20:54:26 +01:00
Roland Winklmeier
9bb75a6f2e
Rotate camera in follow plane view only if space key is pressed
...
This commits merges the two orbit plane functions together in CTraffic.
The separation was necessary since XSwiftBus needed to be started manually
and until started, the pointer to CTraffic was invalid. Since XSwiftBus
is started automatically, it can be merged into one function again.
This commit also adds the feature to rotate the camera only if the space key
is pressed. This is equal to how FSX/P3D do it. Using the right mouse was
not possible, since X-Plane SDK does not offer that option.
ref T360
2018-11-04 17:42:42 +01:00
Roland Winklmeier
f3f3ebc306
Cleanup aircraft in X-Plane after DBusConnection drops
...
ref T392
2018-10-07 16:17:25 +02:00
Roland Winklmeier
ebe23a694b
Fix GCC7 fallthrough warnings
2018-10-05 17:39:58 +02:00
Roland Winklmeier
616cc241f4
[XSwiftBus] Convert setPlanesTransponders to list setter
...
ref T374
2018-10-03 03:03:41 +02:00
Roland Winklmeier
65d00dca6e
[XSwiftBus] Fix plural in CTraffic::setPlanesSurfaces
2018-10-03 03:03:41 +02:00
Roland Winklmeier
cfc9c3166e
Decouple flightloop processing from DBus
...
There are needs to not only run DBus tasks, but also different generic
tasks during the processing loop.
2018-10-03 03:03:40 +02:00
Roland Winklmeier
f637b2996d
Fix floating point comparison
2018-08-07 20:40:59 +02:00
Roland Winklmeier
05e0480bb4
Move XPlane gnd flag handling from parts to situation
...
ref T276
2018-08-07 20:40:57 +02:00
Roland Winklmeier
59da68da5e
Delay setting the DBusConnection for a DBusObject
...
Previously, the DBusconnection had to be set at construction time and could
not be changed over the DBusObject life time. Now a new connection can be
set anytime and as often as required.
The shared ownership is now also properly implemented by shared pointers.
ref T291
2018-08-07 20:40:40 +02:00
Roland Winklmeier
ef8c7d7d1c
Fix rare crash and swift not being notified about a failed plane adding
...
This fixes are rare case, that no XPMP plane could be created (no model
was found) and this was not signaled to swift.
2018-08-07 20:40:36 +02:00
Roland Winklmeier
dc9b2a42f7
Fix the correct naming of altitude and elevation
2018-08-07 20:40:34 +02:00
Klaus Basan
52513db63f
Ref T290, XPlane refactoring
...
* typo getRemoteAircraftsData -> getRemoteAircraftData (no "s")
* typo getEelevationAtPosition (double "Ee")
* get functions "const"
* added unit for some variables such as latitudeDeg
2018-07-17 19:04:50 +02:00
Roland Winklmeier
128edcd118
Update libxplanemp
2018-06-18 03:04:27 +02:00
Roland Winklmeier
87ba7183cc
Add new command to jump to previous plane in follow plane view
...
ref T269
2018-06-18 03:04:25 +02:00
Roland Winklmeier
e55103ccdf
Rename all variables and functions to be similar to followPlaneView
2018-06-18 03:04:24 +02:00
Roland Winklmeier
10b8cf5fea
Add new command to jump to next plane in follow plane view
...
ref T269
2018-06-18 03:04:22 +02:00
Roland Winklmeier
0b607f9e0b
Add own aircraft to X-Plane plane view menu
...
ref T269
2018-06-13 13:59:17 +02:00
Roland Winklmeier
654cc1621e
Align the position and surface variable names to plural
2018-06-13 13:59:16 +02:00
Roland Winklmeier
33963041cc
Implement followAircraft for X-Plane
...
ref T266
2018-06-13 13:59:13 +02:00
Roland Winklmeier
dab41045d3
[xswiftbus] Check if plane exists already before adding a new one
2018-05-12 21:40:02 +02:00
Roland Winklmeier
2fd4d286d6
Refactor retrieving remote aircraft data
...
Instead of requesting it individually for each callsign and waiting for a
signal from xswiftbus, pass in a list of callsigns and use async callback
to read the data.
2018-05-08 16:06:57 +02:00
Roland Winklmeier
bf8ed5c006
Load X-Plane remote aircrafts one by one sequentially
2018-05-08 16:06:57 +02:00