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:
Klaus Basan
2013-04-05 02:29:52 +02:00
parent 943872ff67
commit eb102372f1
18 changed files with 622 additions and 98 deletions

View File

@@ -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

View File

@@ -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