mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 04:25:42 +08:00
Fixed all issues detected by the test cases under MinGW - such as usage of abs() -> changed to qAbs(), rounding issues detected during calculations, and changed streaming methods with qDebug() (QDebug vs &QDebug issue).
This commit is contained in:
@@ -46,7 +46,7 @@ private:
|
||||
*/
|
||||
static const double &Flattening()
|
||||
{
|
||||
static double f = 1 / 298.257223563;
|
||||
static double f = 1.0 / 298.257223563;
|
||||
return f;
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ private:
|
||||
*/
|
||||
static const double &e2abs()
|
||||
{
|
||||
static double e2abs = abs(e2());
|
||||
static double e2abs = qAbs(e2());
|
||||
return e2abs;
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ private:
|
||||
*/
|
||||
static const double &e2m()
|
||||
{
|
||||
static double e2m = BlackMisc::Math::CMath::square(1 - Flattening());
|
||||
static double e2m = BlackMisc::Math::CMath::square(1.0 - Flattening());
|
||||
return e2m;
|
||||
}
|
||||
|
||||
@@ -95,7 +95,6 @@ private:
|
||||
*/
|
||||
CCoordinateTransformation() {}
|
||||
|
||||
|
||||
public:
|
||||
/*!
|
||||
* \brief NED to ECEF
|
||||
|
||||
Reference in New Issue
Block a user