mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-21 11:54:15 +01:00
Changed the main function parameter format.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2542 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
0579de11e3
commit
0a2a59baa4
@ -154,8 +154,12 @@ namespace Utils {
|
||||
Initialize();
|
||||
}
|
||||
|
||||
int WorldMagModel::GetMagVector(double Lat, double Lon, double AltEllipsoid, int Month, int Day, int Year, double *X, double *Y, double *Z)
|
||||
int WorldMagModel::GetMagVector(double LLA[3], int Month, int Day, int Year, double Be[3])
|
||||
{
|
||||
double Lat = LLA[0];
|
||||
double Lon = LLA[1];
|
||||
double AltEllipsoid = LLA[2];
|
||||
|
||||
// ***********
|
||||
// range check supplied params
|
||||
|
||||
@ -188,9 +192,9 @@ namespace Utils {
|
||||
return -6; // error
|
||||
|
||||
// set the returned values
|
||||
*X = GeoMagneticElements.X;
|
||||
*Y = GeoMagneticElements.Y;
|
||||
*Z = GeoMagneticElements.Z;
|
||||
Be[0] = GeoMagneticElements.X;
|
||||
Be[1] = GeoMagneticElements.Y;
|
||||
Be[2] = GeoMagneticElements.Z;
|
||||
|
||||
// ***********
|
||||
|
||||
|
@ -134,7 +134,8 @@ namespace Utils {
|
||||
{
|
||||
public:
|
||||
WorldMagModel();
|
||||
int GetMagVector(double Lat, double Lon, double AltEllipsoid, int Month, int Day, int Year, double *X, double *Y, double *Z);
|
||||
|
||||
int GetMagVector(double LLA[3], int Month, int Day, int Year, double Be[3]);
|
||||
|
||||
private:
|
||||
WMMtype_Ellipsoid Ellip;
|
||||
|
Loading…
x
Reference in New Issue
Block a user