mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-07 18:15:51 +08:00
Initial structure for refactoring, some conversions still missing. Especially required further test cases.
This commit is contained in:
@@ -46,6 +46,10 @@ int CSamplesPhysicalQuantities::samples()
|
||||
l3 *= 1.5;// 3km now
|
||||
qDebug() << l2 << l3;
|
||||
|
||||
l3 = l3 * 2;
|
||||
qDebug() << "doubled l3:" << l3;
|
||||
|
||||
|
||||
CFrequency f1(1E6, CFrequencyUnit::Hz()); // 1MHz
|
||||
qDebug() << f1 << f1.valueRoundedWithUnit(CFrequencyUnit::MHz()) << f1.valueRoundedWithUnit(CFrequencyUnit::GHz(), 3);
|
||||
|
||||
|
||||
@@ -11,15 +11,15 @@ namespace BlackMiscTest
|
||||
*/
|
||||
int CSamplesGeo::samples()
|
||||
{
|
||||
CGeoLatitude lat1(20.0, CAngleUnit::deg());
|
||||
CGeoLatitude lat2 = lat1;
|
||||
CGeoLatitude lat3 = lat1 - lat2;
|
||||
CLatitude lat1(20.0, CAngleUnit::deg());
|
||||
CLatitude lat2 = lat1;
|
||||
CLatitude lat3 = lat1 - lat2;
|
||||
|
||||
qDebug() << lat1 << lat2 << lat3;
|
||||
qDebug() << (lat1 + lat2) << (lat1 - lat2);
|
||||
|
||||
lat3 += lat1;
|
||||
CGeoLongitude lon1(33.0, CAngleUnit::deg());
|
||||
CLongitude lon1(33.0, CAngleUnit::deg());
|
||||
qDebug() << lon1 << lat3;
|
||||
|
||||
// lat3 += lon1; // must not work
|
||||
|
||||
Reference in New Issue
Block a user