mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
Avionics classes for Transponder, ADF, changed namespace to 2ndlevel
This commit is contained in:
@@ -1,8 +1,20 @@
|
||||
/* Copyright (C) 2013 VATSIM Community / authors
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#ifndef AVTRACK_H
|
||||
#define AVTRACK_H
|
||||
#include "blackmisc/pqangle.h"
|
||||
|
||||
namespace BlackMisc {
|
||||
using BlackMisc::PhysicalQuantities::CAngle;
|
||||
using BlackMisc::PhysicalQuantities::CAngleUnit;
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
|
||||
namespace Aviation
|
||||
{
|
||||
|
||||
/*!
|
||||
* \brief Track as used in aviation, can be true or magnetic Track
|
||||
@@ -74,14 +86,20 @@ public:
|
||||
* \brief Magnetic Track?
|
||||
* \return
|
||||
*/
|
||||
bool isMagneticTrack() const { return this->m_magnetic; }
|
||||
bool isMagneticTrack() const {
|
||||
return this->m_magnetic;
|
||||
}
|
||||
/*!
|
||||
* \brief True Track?
|
||||
* \return
|
||||
*/
|
||||
bool isTrueTrack() const { return !this->m_magnetic; }
|
||||
bool isTrueTrack() const {
|
||||
return !this->m_magnetic;
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif // AVTRACK_H
|
||||
|
||||
Reference in New Issue
Block a user