mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
OP-191: Merge from full-calibration branch. Scale the reference magnetic field vector to units of milliguass.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3054 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
44e3466e0a
commit
8aef515456
@ -293,7 +293,9 @@ int WMM_GetMagVector(float Lat, float Lon, float AltEllipsoid, uint16_t Month, u
|
||||
Ellip = NULL;
|
||||
}
|
||||
|
||||
// ***********
|
||||
B[0] = GeoMagneticElements->X * 1e-2;
|
||||
B[1] = GeoMagneticElements->Y * 1e-2;
|
||||
B[2] = GeoMagneticElements->Z * 1e-2;
|
||||
|
||||
return returned;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user