Files
pilotclient/tests/blackmisc/testaviation.h
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

59 lines
1.3 KiB
C++

/* Copyright (C) 2013
* swift Project Community / Contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
* including this file, may be copied, modified, propagated, or distributed except according to the terms
* contained in the LICENSE file.
*/
#ifndef BLACKMISCTEST_TESTAVIATIONBASE_H
#define BLACKMISCTEST_TESTAVIATIONBASE_H
//! \cond PRIVATE_TESTS
/*!
* \file
* \ingroup testblackmisc
*/
#include <QObject>
namespace BlackMiscTest
{
/*!
* Aviation classes basic tests
*/
class CTestAviation : public QObject
{
Q_OBJECT
public:
//! Standard test case constructor
explicit CTestAviation(QObject *parent = nullptr);
private slots:
//! Basic unit tests for physical units
void headingBasics();
//! COM and NAV units
void comAndNav();
//! Transponder
void transponder();
//! Callsigns and callsign containers
void callsignWithContainers();
//! Testing copying and equality of objects
void copyAndEqual();
//! CAltitude tests
void altitude();
};
} // namespace
//! \endcond
#endif // guard