1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

OP-364 OP-191: Convert the OPMap setting of HomeLocation to mGau to match the

changes in flight code

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3083 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
peabody124 2011-03-28 10:40:26 +00:00 committed by peabody124
parent 9b8494e9f6
commit 4120937391
2 changed files with 5 additions and 5 deletions

View File

@ -384,8 +384,8 @@ static void setHomeLocation(GPSPositionData * gpsData)
// range of altitude (say, weather balloons) may need to update this during the
// flight.
home.g_e = GravityAccel(LLA[0], LLA[1], LLA[2]);
home.Set = HOMELOCATION_SET_TRUE;
HomeLocationSet(&home);
home.Set = HOMELOCATION_SET_TRUE;
HomeLocationSet(&home);
}
}
}

View File

@ -192,9 +192,9 @@ namespace Utils {
return -6; // error
// set the returned values
Be[0] = GeoMagneticElements.X;
Be[1] = GeoMagneticElements.Y;
Be[2] = GeoMagneticElements.Z;
Be[0] = GeoMagneticElements.X * 1e-2;
Be[1] = GeoMagneticElements.Y * 1e-2;
Be[2] = GeoMagneticElements.Z * 1e-2;
// ***********