Browse Source

AP_Math: fixed the value LATLON_TO_CM

it didn't have enough digits of precision, and was inconsistent with
LOCATION_SCALING_FACTOR
c415-sdk
Andrew Tridgell 4 years ago committed by Randy Mackay
parent
commit
978ea307b0
  1. 5
      libraries/AP_Math/definitions.h

5
libraries/AP_Math/definitions.h

@ -51,8 +51,9 @@ static const double RAD_TO_DEG_DOUBLE = 1 / DEG_TO_RAD_DOUBLE; @@ -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;

Loading…
Cancel
Save