Commit Graph

12 Commits

Author SHA1 Message Date
Mat Sutcliffe
6c05c5249d When calling arg() on a QString constructed from a literal, use QStringLiteral. 2019-02-22 20:23:47 +00:00
Klaus Basan
ec6b7ed37d Ref T437, some FSUIPC style/message adjustments 2018-12-01 05:17:41 +01:00
Klaus Basan
9292b63be6 Ref T437, FSUIPC thread assert check 2018-11-22 19:55:04 +01:00
Klaus Basan
d6fad99474 Ref T437, renamed CFsuipc functions to align with FSUIPC code 2018-11-22 19:55:04 +01:00
Klaus Basan
410d77330f Ref T437, extern C and use normal pointer 2018-11-22 19:55:04 +01:00
Klaus Basan
39e4b2a61d Style
* CLANG
* #ifdef
2018-11-22 19:55:04 +01:00
Klaus Basan
33116d3b21 Ref T437, adjusted CFsuipc class 2018-11-22 19:55:03 +01:00
Klaus Basan
3f8ea99d14 FSUIPC Clang fixes 2018-11-22 19:55:02 +01:00
Roland Winklmeier
de4fe44156 Fix sending the correct pressure altitude for a pilot position
* Before this commit, only the true altitude was known for an aircraft situation. The pressure altitude was not available anywhere yet.
* This caused a wrong altitude in radar clients.
* We fix this reading the pressure altitude from the simulators and set it in the own aircraft situation.
* MS Flight Simulators have the pressure altitude in the APIs available.
* For X-Plane and emulated simulator, we need to calculate it from the pressure at sea level.
* Finally, we use the new available pressure altitude to send it to the FSD server.

Maniphest Tasks: Ref T223
2018-01-15 22:49:08 +01:00
Roland Winklmeier
574d4056ce Initialize NewVis::Spare member variable
Summary: This struct variable is not used yet, but initializing it fixes a warning in cppcheck.

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Subscribers: msutcliffe, kbasan, jenkins

Differential Revision: https://dev.swift-project.org/D32
2017-09-24 19:49:17 +01: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
a00108af35 Make FSUIPC optional
Summary:
If FSUIPC is configured, its support will be enabled in swift
and disabled otherwise.

Ref T91

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Subscribers: msutcliffe, jenkins, kbasan

Maniphest Tasks: T91

Differential Revision: https://dev.swift-project.org/D28
2017-06-27 13:28:01 +02:00