mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Individual (per object) conversion as well as per unit (class) now possible, this is required for sexagesimal conversion (degrees) and will be required for geo-positions. Further classed for avionics.
This commit is contained in:
@@ -44,4 +44,16 @@ void CTestAviationBase::verticalPosition()
|
||||
QVERIFY2(vp1== vp2, "Values shall be equal");
|
||||
}
|
||||
|
||||
/**
|
||||
* COM and NAV units
|
||||
*/
|
||||
void CTestAviationBase::comAndNav()
|
||||
{
|
||||
CComSystem c1 = CComSystem::getCom1Unit(122.8);
|
||||
CComSystem c2 = CComSystem::getCom2Unit(122.8);
|
||||
QVERIFY2(c1 != c2, "COM units shall not be equal");
|
||||
c1 = c2;
|
||||
QVERIFY2(c1 == c2, "COM units shall be equal");
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
@@ -5,6 +5,8 @@
|
||||
#include "blackmisc/pqconstants.h"
|
||||
#include "blackmisc/avheading.h"
|
||||
#include "blackmisc/avverticalpositions.h"
|
||||
#include "blackmisc/aviocomsystem.h"
|
||||
|
||||
using namespace BlackMisc;
|
||||
|
||||
namespace BlackMiscTest {
|
||||
@@ -34,6 +36,11 @@ private slots:
|
||||
*/
|
||||
void verticalPosition();
|
||||
|
||||
/*!
|
||||
* \brief COM and NAV units
|
||||
*/
|
||||
void comAndNav();
|
||||
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user