Commit Graph

227 Commits

Author SHA1 Message Date
Klaus Basan
29e1d54e05 Ref T111, some fixes in the vicinity of plugin / drivers
* mostly style / doxygen / formatting
* assert/verify
2017-09-24 19:51:02 +01:00
Mathew Sutcliffe
1400f38aa9 Add missing PRE_TARGETDEPS in simulator plugin projects
Summary:
This fixes issue reported by Klaus in Slack:
> when I change something in the plugin driver, I always have to rebuild the plugins before I can debug again.

Also refactored `libraries.pri` to remove duplication.

Reviewers: #swift_pilot_client, rwinklmeier

Reviewed By: #swift_pilot_client, rwinklmeier

Subscribers: kbasan, jenkins

Tags: #swift_pilot_client

Differential Revision: https://dev.swift-project.org/D31
2017-09-24 19:49:18 +01:00
Roland Winklmeier
984b30aef3 Enable P3D-v4 64 bit build
Summary:
This commit enables P3D-v4 for 64 bit including all dependent libraries.
Those binaries are not yet installed, since they are considered
experimental.

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Differential Revision: https://dev.swift-project.org/D30
2017-09-24 19:49:16 +01:00
Klaus Basan
6d26c96569 Ref T27, preparation for refactoring, turned private slots into normal member functions
* Motivation: slots no longer required, and in the driver the (small) slot overhead might matter
* renamed some members to better reflect future use
* timer intervals as constexpr
* fixed some typos and comments
2017-06-27 20:50:26 +02:00
Roland Winklmeier
5a40e86ecf Add 32 and 64 bit FSUIPC library projects
Summary:
So far we were linking against the prebuilt FSUIPC user library,
compiled with VS2010 many years ago. The source of this user library is
part of the FSUIPC SDK, so we can benefit from modern compilers and
include it into our source tree.
This version contains some very small wide char fixes compared to the
official FSUIPC SDK source.
It also includes the new 64 bit version.

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Differential Revision: https://dev.swift-project.org/D29
2017-06-27 13:37:52 +02:00
Roland Winklmeier
79556260bd Remove QtConcurrent from list of Qt modules
Summary:
QtConcurrent isn't used any longer in swift code, so we can remove it
from the list of enabled modules. Disabling it causes the QtConcurrent
header path to be removed from the include paths and we no longer
unnecessarily link against it.

Reviewers: msutcliffe

Reviewed By: msutcliffe

Subscribers: jenkins

Differential Revision: https://dev.swift-project.org/D25
2017-06-09 12:29:59 +02:00
Klaus Basan
4a984ea1de refs #908, formatting 2017-04-17 23:59:28 +01:00
Klaus Basan
5d8ed66931 refs #891, FSX using common base class 2017-04-17 23:57:16 +01:00
Mathew Sutcliffe
04ddd3bfa5 refs #863 Move interpolator logging into a separate class.
A single logger instance can be shared between multiple interpolator instances.
2017-02-24 15:22:34 +00:00
Mathew Sutcliffe
e67b5fccc4 refs #863 Change callsign parameter to be a member instead. 2017-02-24 15:22:32 +00:00
Mathew Sutcliffe
9c918b8799 refs #863 Interpolator inheritance based on CRTP rather than virtual methods. 2017-02-24 15:22:26 +00:00
Mathew Sutcliffe
1c2533f5d2 refs #863 Moved nested status classes to namespace scope. 2017-02-24 15:22:25 +00:00
Mathew Sutcliffe
a167cc8e43 refs #863 Each aircraft gets its own interpolator instance,
so each one can cache calculations from one frame to the next.
The recent situations and parts are members of the interpolator.
2017-02-24 15:22:22 +00:00
Mathew Sutcliffe
2181702c5c refs #863 Change interpolation setup member to be a method parameter instead. 2017-02-24 15:22:21 +00:00
Klaus Basan
2a0d0e1d84 refs #873, sendToggledLightsToSimulator as own function
* better resending of lights when light state in simulator is not yet known
* support for cabin/recognition light
2017-02-24 15:20:34 +00:00
Klaus Basan
bcb42b0f0d Formatting 2017-02-24 15:20:33 +00:00
Klaus Basan
b6ac5cbb45 refs #873, added cabin and recognition light plus anyEngineOn 2017-02-24 15:20:32 +00:00
Klaus Basan
e3ab9d08c3 Do not show tiny airfields of FSX 2017-02-24 15:20:31 +00:00
Klaus Basan
01b79a76a6 refs #873, better guessing of parts (clients without aircraft config) 2017-02-24 15:20:29 +00:00
Klaus Basan
a61abfcb8b refs #873, use events for lights
* added members for sim objects
* receive lights for (remote) aircraft from simulator
* update lights
* utility functions for request ids
2017-02-24 00:20:01 +00:00
Klaus Basan
9c2682f386 refs #873, own data definition for lights
(as events will be used)
2017-02-24 00:19:57 +00:00
Klaus Basan
5f701e7547 refs #873, define events for lights 2017-02-24 00:19:47 +00:00
Klaus Basan
f701d6ad4a refs #873, FSX: do not send parts if they are equal
* == operator for struct
* do not send when equal
* fixed missing init of guessed parts struct
2017-02-24 00:19:45 +00:00
Klaus Basan
1d967b08e8 refs #865, based on discussion https://dev.vatsim-germany.org/issues/865#note-12
* do not call XP`s elevation provider if not needed in interpolator
* some renaming/utility functions
2017-02-24 00:19:41 +00:00
Klaus Basan
085f25fa86 refs #865, FSX: changed how elevation/CG is updated 2017-02-24 00:19:28 +00:00
Klaus Basan
1967c82221 Formatting 2017-02-24 00:19:19 +00:00
Klaus Basan
62d4a94106 refs #865, further improved logging
* set log flag in hints, so no lock for each aircraft is needed
* as a result log functions have a bool log parameter now
* highlight situation and parts changed
2017-02-24 00:19:18 +00:00
Klaus Basan
0488b4b5ea refs #865, adjusted FSX part to use parts in interpolation hints
* split update of aircraft parts in guessing/sending
* pass hints to interpolator
2017-02-24 00:19:06 +00:00
Klaus Basan
68dccbefa6 Formatting, renaming, Doxygen, minor UI adjustments 2017-02-24 00:18:51 +00:00
Klaus Basan
7ddb69825a refs #865, FSX: use onGround from CAircraftSituation 2017-02-24 00:18:49 +00:00
Klaus Basan
daab5eed49 refs #865, adjusted interpolator to use elevation or elevation provider
* adjusted IInterpolator::setGroundElevationFromHint
* removed cgAboveGround from getCorrectedAltitude
2017-02-24 00:18:43 +00:00
Klaus Basan
0a99c82ddc refs #865, FSX: added altitude above ground and CG for own aircraft 2017-02-24 00:18:38 +00:00
Mathew Sutcliffe
3f5139d717 refs #852 IInterpolator::getPartsBeforeTime renamed to getInterpolatedParts
and returns a single CAircraftParts object, not a list.
2017-02-24 00:17:55 +00:00
Roland Winklmeier
1032379773 [FSX] Inject weather via SimConnect instead of FSUIPC
refs #851
2017-02-24 00:09:18 +00:00
Klaus Basan
61e7f23847 refs #858, todo review (demoted, commented) 2017-02-24 00:09:00 +00:00
Roland Winklmeier
1a6c7fa192 Add control button to activate and deactivate swift weather
- GUI changes
- Context and ISimulator APIs
- Refactored settings and static weather injection in CSimulatorCommon

refs #807
2017-01-10 23:47:39 +00:00
Klaus Basan
4f1dc00d67 refs #848, check flags for FSUIPC parts before using them 2017-01-10 23:46:22 +00:00
Klaus Basan
c20b54466f refs #848, some upfront cleanup 2017-01-10 23:46:17 +00:00
Klaus Basan
93a18f433c refs #840, FSX driver: get ground elevation from simulator
* fixed wrong request id
* made functions private where possible
* added data definitions for simobject data
2017-01-10 23:45:30 +00:00
Roland Winklmeier
58c816197e Use onGround flag only when ground speed is low
OnGround flag is not synchronized with positions and causes jumps
during right before takeoff and after landing. By adding a threshold
currently being 20 kts, we move the jump into an area when the aircraft
is still leveled.
2017-01-10 23:45:06 +00:00
Roland Winklmeier
d46318be5e Use interpolated timestamp in order to get corresponding parts
So far the current timestamp was used to get the aircraft parts. This
caused aircraft jumps during takeoff and landing as soon as the on ground
flag changed.
2017-01-10 23:45:04 +00:00
Klaus Basan
1a500340f0 refs #836, elevation for own FSX/P3D aircraft in driver
plus some minor improvements such as const where applicable
2017-01-10 23:44:52 +00:00
Klaus Basan
b69008e0b3 refs #829, consolidated settings for simulator/messages
* move traits from blackcore to blackmisc
* renamed CSimulatorSettings/Messages
2016-12-13 19:02:13 +01:00
Klaus Basan
364725548d refs #823, always gear down on ground 2016-12-13 19:01:55 +01:00
Klaus Basan
add3aa5a74 Minor formatting/tweaks 2016-12-13 19:01:47 +01:00
Klaus Basan
df2073e5e6 refs #814, allow to disable aircraft parts updates, mostly for testing
* added flag in setup
* and UI
* plus some formatting in driver classes, removed unused member
2016-12-13 19:01:38 +01:00
Klaus Basan
20b4044d29 Minor UI and style fixes
* completer for airports in ATC component
* log messages
* style fixes
2016-12-13 19:01:18 +01:00
Klaus Basan
10d43798b0 refs #811, airports default implementation
* if no sim data are available use reader data
* merge airport data for FSX
* Added "network" in .pro (needed for network classes such as readers)
2016-12-13 19:01:15 +01:00
Klaus Basan
26cc77ebab refs #810, using DWORD instead of int to avoid possible issues (signed vs. unsigned)
Requires flags as negative flags do not indicate invalid
2016-12-13 19:01:11 +01:00
Roland Winklmeier
c1d8438ab7 Use '%lu' format when printing DWORD
Acoording th MSDN, DWORD is a typedef to unsigned long.
2016-12-13 19:01:07 +01:00