AP_Math: fixed the value LATLON_TO_CM

it didn't have enough digits of precision, and was inconsistent with
LOCATION_SCALING_FACTOR
This commit is contained in:
Andrew Tridgell 2021-06-29 16:18:14 +10:00
parent 982b044d00
commit 0e37a44942

View File

@ -51,8 +51,9 @@ static const double RAD_TO_DEG_DOUBLE = 1 / DEG_TO_RAD_DOUBLE;
// convert a longitude or latitude point to meters or centimeters.
// Note: this does not include the longitude scaling which is dependent upon location
#define LATLON_TO_M 0.01113195f
#define LATLON_TO_CM 1.113195f
#define LATLON_TO_M 0.011131884502145034
#define LATLON_TO_M_INV 89.83204953368922
#define LATLON_TO_CM 1.1131884502145034
// Semi-major axis of the Earth, in meters.
static const double WGS84_A = 6378137.0;